/arrest problem!
#6

Код:
 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.");
to

Код:
 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.");
Also like Vincent mentioned, you're judging how far a player is by their wanted level? That's stupid.
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!");
to this

Код:
 if(GetPlayerWantedLevel(targetid) <= 3) return SendClientMessage(playerid, red, "{FF0000}ERROR: {FFFFFF}No nearby players are wanted highly enough to receive a ticket.");
Because I have no clue why you add the second line if you are already checking if they are wanted, the second line just checks if they are wanted at all..
Reply


Messages In This Thread
/arrest problem! - by Man43 - 04.09.2017, 09:10
Re: /arrest problem! - by JasonRiggs - 04.09.2017, 09:12
Re: /arrest problem! - by Man43 - 05.09.2017, 10:45
Re: /arrest problem! - by JasonRiggs - 05.09.2017, 10:48
Re: /arrest problem! - by Vince - 05.09.2017, 11:13
Respuesta: /arrest problem! - by m1kas - 05.09.2017, 15:05
Re: /arrest problem! - by Man43 - 06.09.2017, 13:14
Re: /arrest problem! - by Man43 - 06.09.2017, 16:51
Re: /arrest problem! - by Sew_Sumi - 06.09.2017, 23:54

Forum Jump:


Users browsing this thread: 2 Guest(s)