SA-MP Forums Archive
Message just for Police. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Message just for Police. (/showthread.php?tid=431860)



Message just for Police. - z3r0w1zard - 20.04.2013

Hello, i need help with Message Example if i use /holdup and Send Message just for Police Z3r0w1zard its rob.


Re: Message just for Police. - Faisal_khan - 20.04.2013

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerPolice(i) == 1)
    {
        SendClientMessage(i, -1, "Your text!");
    }
}
Change IsPlayerPolice() to the desired function to check if the player is police.