Započeo L U K A
•28. Maj 2022.proxdetector
420
pregleda
3
postova
Street Runner
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
12
Postovi:
5
Teme:
Pridružio se:Nov. 2021
28. Maj 2022.
Pitanje/savjet: Kako da iskoristim ProxDetector?
Opširnije: Pozdrav, u skriptu sam ubacio ProxDetector koji sam nasao na netu.
Ne znam kako da iskoristiti da napravim ic chat i osnovne komande kao npr. /me, /do, /b...
Koristim ovaj prox:
Dodatno: //
Opširnije: Pozdrav, u skriptu sam ubacio ProxDetector koji sam nasao na netu.
Ne znam kako da iskoristiti da napravim ic chat i osnovne komande kao npr. /me, /do, /b...
Koristim ovaj prox:
stock ProxDetector(playerid, Float:max_range, color, const string[], Float:max_ratio = 1.6)
{
new
Float:pos_x,
Float:pos_y,
Float:pos_z,
Float:range,
Float:range_ratio,
Float:range_with_ratio,
clr_r, clr_g, clr_b,
Float:color_r, Float:color_g, Float:color_b;
if (!GetPlayerPos(playerid, pos_x, pos_y, pos_z)) {
return 0;
}
color_r = float(color >> 24 & 0xFF);
color_g = float(color >> 16 & 0xFF);
color_b = float(color >> 8 & 0xFF);
range_with_ratio = max_range * max_ratio;
#if defined foreach
foreach (new i : Player) {
#else
for (new i = GetPlayerPoolSize(); i != -1; i--) {
#endif
if (!IsPlayerStreamedIn(i, playerid)) {
continue;
}
range = GetPlayerDistanceFromPoint(i, pos_x, pos_y, pos_z);
if (range > max_range) {
continue;
}
range_ratio = (range_with_ratio - range) / range_with_ratio;
clr_r = floatround(range_ratio * color_r);
clr_g = floatround(range_ratio * color_g);
clr_b = floatround(range_ratio * color_b);
SendClientMessage(i, (color & 0xFF) | (clr_b << 8) | (clr_g << 16) | (clr_r << 24), string);
}
SendClientMessage(playerid, color, string);
return 1;
}
Dodatno: //
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,086
Postovi:
58
Teme:
Pridružio se:Feb. 2022
28. Maj 2022.
ProxDetector : https://github.com/montreycommunity/montrey-script-modules/blob/main/gamemodes/%5Bmodules%5D/%5Bserver%5D/proxdetect.pwn
Example Usage : https://github.com/montreycommunity/montrey-script-modules/blob/main/gamemodes/%5Bmodules%5D/%5Bserver%5D/chat.pwn
Colors : https://github.com/montreycommunity/montrey-script-modules/blob/main/gamemodes/%5Bmodules%5D/%5Bserver%5D/colors.pwn
This
promeni samo u
Example Usage : https://github.com/montreycommunity/montrey-script-modules/blob/main/gamemodes/%5Bmodules%5D/%5Bserver%5D/chat.pwn
Colors : https://github.com/montreycommunity/montrey-script-modules/blob/main/gamemodes/%5Bmodules%5D/%5Bserver%5D/colors.pwn
This
return Y_HOOKS_CONTINUE_RETURN_1;promeni samo u
return 1;Street Runner
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
12
Postovi:
5
Teme:
Pridružio se:Nov. 2021
28. Maj 2022.
neshallon wrote on May 28, 2022, 8:40 pm:
ProxDetector : https://github.com/montreycommunity/montrey-script-modules/blob/main/gamemodes/%5Bmodules%5D/%5Bserver%5D/proxdetect.pwn
Example Usage : https://github.com/montreycommunity/montrey-script-modules/blob/main/gamemodes/%5Bmodules%5D/%5Bserver%5D/chat.pwn
Colors : https://github.com/montreycommunity/montrey-script-modules/blob/main/gamemodes/%5Bmodules%5D/%5Bserver%5D/colors.pwn
This
promeni samo u
Example Usage : https://github.com/montreycommunity/montrey-script-modules/blob/main/gamemodes/%5Bmodules%5D/%5Bserver%5D/chat.pwn
Colors : https://github.com/montreycommunity/montrey-script-modules/blob/main/gamemodes/%5Bmodules%5D/%5Bserver%5D/colors.pwn
This
return Y_HOOKS_CONTINUE_RETURN_1;promeni samo u
return 1;Hvala!! Lock.
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava