26.06.2013, 14:52
pawn Code:
stock AdminMsg(color,msg[])
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerAdmin(i))
SendClientMessage(i,color,msg);
}
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[128],
Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
format(string,sizeof(string),"%s Has used the command : %s",Name,cmdtext);
AdminMsg(-1,string);
return 1;
}