10.08.2016, 22:52
PHP Code:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) return SendClientMessage(playerid, 0xCD0000FF, "Invalid command. Please use {FFF8CF}/cmds {CD0000}to list all available commands.");
new string[100], name[25];
GetPlayerName(playerid, name, 25);
format(string,sizeof(string),"%s[%d] has used command %s",name,playerid,cmdtext);
for(new i=0;i<MAX_PLAYERS;i++) { if(pInfo[i][pLevel] > 4) SendClientMessage(i,-1,string); }
return 1;
}