Looping
#4

continue; skips it and it goes to the next i. If the player is not (!) connected OR the player is not (!) cop, then skip it.

Else.. do your code - send the message.

NOTE: You may use something like gTeam[playerid] for cops, it depends on your script. Let's say, it's that case and the team is 2 for cops. It'd be: if( !IsPlayerConnected( i ) || gTeam[ i ] != 2 ) continue;
Reply


Messages In This Thread
Looping - by AnonScripter - 05.10.2013, 17:46
Re: Looping - by Konstantinos - 05.10.2013, 17:49
Re: Looping - by AnonScripter - 05.10.2013, 18:34
Re: Looping - by Konstantinos - 05.10.2013, 18:59
Re: Looping - by TomatoRage - 05.10.2013, 23:49
Re: Looping - by DanishHaq - 05.10.2013, 23:58
Re: Looping - by AnonScripter - 07.10.2013, 21:01

Forum Jump:


Users browsing this thread: 1 Guest(s)