SendAdminCommand
#2

You can use foreach or for to iterate through players and send a message if they meet the requested criteria. Example:
pawn Код:
foreach(new i: Player)
{
       if(DatosUsuario[i][Nivel] >=1)
            SendClientMessage(i, color, message);
}
If you use the for version like in the command below, make sure you validate that the player is connected before doing anything else(hint: use IsPlayerConnected).
Reply


Messages In This Thread
SendAdminCommand - by karoliko - 20.05.2016, 19:05
Re: SendAdminCommand - by Abagail - 20.05.2016, 19:09
Re: SendAdminCommand - by F1N4L - 20.05.2016, 19:09
Re: SendAdminCommand - by karoliko - 20.05.2016, 19:16
Re: SendAdminCommand - by F1N4L - 20.05.2016, 19:40
Re: SendAdminCommand - by karoliko - 20.05.2016, 19:52
Re: SendAdminCommand - by F1N4L - 20.05.2016, 20:05
Re: SendAdminCommand - by karoliko - 20.05.2016, 21:29

Forum Jump:


Users browsing this thread: 3 Guest(s)