22.09.2010, 08:36
A better method than commands,
OnPlayerText
Anything after '#' will be sent to admins
OnPlayerText
pawn Код:
if(text[0] == '#' && Pinfo[playerid][Admin] >= 1)
{
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"Admin Chat: %s: %s",string,text[1]);
for(new i; i < MAX_PLAYERS; i++)
{
if(Pinfo[i][Admin] >= 1)
{
SendClientMessage(i, ADMIN_COLOR, string);
}
}
return 0;
}