03.02.2012, 13:47
pawn Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '#' && PInfo[playerid][Level] <= 1) {
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"[ADMIN]%s: %s",string,text[1]);
SendAdminMessage(red,string);
return 0; // this will stop the callback, and wont show the message in the public chat
}
return 1;
}