05.09.2017, 15:05
Код:
GetPlayerPos(playerid, targetidpos[0], targetidpos[1], targetidpos[2]); if (!IsPlayerInRangeOfPoint(playerid, 5.0, targetidpos[0], targetidpos[1], targetidpos[2])) return SendClientMessage(playerid, -1, "Nobody close enough to arrest.");
Код:
GetPlayerPos(targetid, targetidpos[0], targetidpos[1], targetidpos[2]); if (!IsPlayerInRangeOfPoint(playerid, 5.0, targetidpos[0], targetidpos[1], targetidpos[2])) return SendClientMessage(playerid, -1, "Nobody close enough to arrest.");
Change these:
Код:
if(GetPlayerWantedLevel(targetid) <= 3) return SendClientMessage(playerid, red, "{FF0000}ERROR: {FFFFFF}No eligible players are in range to receive a ticket."); if(GetPlayerWantedLevel(targetid) > 0) return SendClientMessage(playerid, red, "{ff0000}[ERROR]: {FFFFFF}You are not close enough to the player!");
Код:
if(GetPlayerWantedLevel(targetid) <= 3) return SendClientMessage(playerid, red, "{FF0000}ERROR: {FFFFFF}No nearby players are wanted highly enough to receive a ticket.");