24.08.2016, 03:09
Don't just use this code, but it should be something like this.
UPDATE!
Maybe this thread can help you.
https://sampforum.blast.hk/showthread.php?tid=551113
PHP код:
CMD:search(playerid, params[])
{
if (IsPlayerInRangeOfPoint(playerid, COORD1, COORD1, COORD1, COORD1))
{
//code
}
else if (IsPlayerInRangeOfPoint(playerid, COORD2, COORD2, COORD2, COORD2))
{
//code
}
else
{
SendClientMessage(playerid, 0xFFFFFFFF, "You aren't near a valid trash point!");
}
}
Maybe this thread can help you.
https://sampforum.blast.hk/showthread.php?tid=551113