04.11.2018, 17:24
(
Last edited by Longover; 06/11/2018 at 03:04 PM.
)
HI!
I have a problem with my gm,when i press '2' (key submission) i give the error "No suspects in range" but i have a suspect at 2 meters from me.
Why?
I have a problem with my gm,when i press '2' (key submission) i give the error "No suspects in range" but i have a suspect at 2 meters from me.
Why?
Code:
if((newkeys == KEY_SUBMISSION) && isLEO(playerid)) { foreach(new i : Player) { new msg[100]; if(GetDistanceBetweenPlayers(playerid, i) < 7.0 && Player[i][playerWanted] < 6 && Player[i][playerWanted] != 0) { format(msg, 100, "/ticket %d", i); return OnPlayerCommandReceived(playerid, msg); } if(GetDistanceBetweenPlayers(playerid, i) < 7.0 && Player[i][playerWanted] > 5) { format(msg, 100, "/arrest %d", i); return OnPlayerCommandReceived(playerid, msg); } else { SendClientMessage(playerid, COLOR_RED, "No supects in range."); return 1; } } }