06.05.2015, 19:13
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[128];
if(text[0] == '#' && PlayerInfo[playerid][Admin] >= 1)
{
GetPlayerName(playerid, string, sizeof(string));
format(string,sizeof(string), "Admin Chat: %s: %s", string, text[1]);
MessageToAdmins(COLORE_VERDE,string);
}
return 0;
}
MessageToAdmins(colore, string[])
{
for(new i = 0; i < GetPlayerPoolSize(); i++)
if(PlayerInfo[i][Admin] >= 1)
SendClientMessage(i, colore, string);
}