09.01.2012, 16:44
Put this some where in the script :
color - message color
string[] - the string wich will show
alevel - the level from wich level will show to admins
pawn Код:
forward SendClientMessageToAdmins(color, string[], alevel);
pawn Код:
public SendClientMessageToAdmins(color, string[], alevel)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (PlayertInfo[i][pAdmin] >= alevel || IsPlayerAdmin(i))
{
SendClientMessage(i, color, string);
}
}
printf("%s", string);
return 1;
}
string[] - the string wich will show
alevel - the level from wich level will show to admins
![Smiley](images/smilies/smile.png)