29.12.2013, 13:51
pawn Код:
forward SendAdminMessage(color,const string[],level); // We are forwarded it
// This down is to send message to admins when someone do something
format(string, 256, "[ADMIN] %s is now spectating %s",spectator , spectating);
SendAdminMessage(-1,string,1);
// We need to make public command now
public SendAdminMessage(color,const string[],level)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if (PlayerInfo[i][pAdmin] >= level)
{
SendClientMessage(i, color, string);
printf("%s", string);
}
}
}
return 1;
}

