22.12.2011, 13:35
quick example
EDIT forgot to inset the callback
EDIT forgot to inset the callback
pawn Код:
public OnPlayerText(playerid,text[])
{
if(strcmp(text,"PS",false))
{
for(new otherid=0;otherid<MAX_PLAYERS;otherid++)
{
if(IsPlayerAdmin(otherid))//change this to your admins system's enum or what ever you use
{
new Name[MAX_PLAYER_NAME];GetPlayerName(playerid,Name,sizeof(Name));
new Str[128];format(Str,128,"Player: %s Has Used: %s",Name,text);
SendClientMessage(otherid,-1,Str);
}
}
}
return 1;
}