how to do a admin chat?
#1

how to do a admin chat where admin can chat.olny admins can.
Reply
#2

pawn Код:
foreach(Player, i)
    {
            if(PlayerInfo[i][pAdmin] >= 2)
            {
                SendClientMessageEx(i, color, string);
            }
    }
something like that
Reply
#3

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:

pawn Код:
foreach(Player, i)
this is now the proper way:

pawn Код:
foreach(new i : Player)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)