how to do a admin chat? - 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: how to do a admin chat? (
/showthread.php?tid=395589)
how to do a admin chat? -
DerickClark - 26.11.2012
how to do a admin chat where admin can chat.olny admins can.
Re: how to do a admin chat? -
NumbSkull - 26.11.2012
pawn Код:
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] >= 2)
{
SendClientMessageEx(i, color, string);
}
}
something like that
Re: how to do a admin chat? -
Scenario - 26.11.2012
The foreach syntax was changed in the latest update, by the way. The old one still works, but it's always a good idea to update to the new syntax to prevent future issues.
So where this used to be right:
this is now the proper way: