Ne koristim skripe nikakve, ovo je filterscripta od 0
Detaljan opis problema:
Znaci, skriptao sam si komandu /armour, napravio sam pickup. Cilj je da komanda radi samo kad se stane na pickup, range je 2.
Ali imam problem. Kad god i bilo gdje na serveru napisem /armour, dobijem pancirku makar nisam kod pickup-a.
Dio skripte:
if (strcmp("/armour", cmdtext, true, 10) == 0)
{
IsPlayerInRangeOfPoint(playerid,2, -2167.3972,3306.8318,95.5800);
SendClientMessage(playerid, COLOR_ORANGE, "Armour PickUP");
SetPlayerArmour(playerid,100);
}Probao sam ovako:
if (strcmp("/armour", cmdtext, true, 10) == 0)
{
IsPlayerInRangeOfPoint(playerid,2, -2167.3972,3306.8318,95.5800); return SendClientMessage(playerid, COLOR_ORANGE, "Moras biti kod Armour Pickup-a");
SendClientMessage(playerid, COLOR_ORANGE, "Armour PickUP");
SetPlayerArmour(playerid,100);
return 1;
}Ali onda ne radi /armour uopce, samo daje SendClientMessage "Moras biti kod Armour Pickup-a".