pawn Код:
if(strcmp(cmd, "/help",true)==0)
{
new string[64];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string)," %s used /help");
SendClientMessage(playerid, COLOR," you used /help");
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdmin] >= 1)
{
SendClientMessage(i, COLOR, string);
}
return 1;
}
Change pAdmin to how your script detects if a players an admin
Mkae sure you have
new sendername[MAX_PLAYER_NAME];
at the top of onplayercommandtext
This sends a message to all the admins online telling them that the player used /help..
_______________________________________
Please rep+ me!!!
hit the little star under my name