03.09.2010, 04:07
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[]) { if(PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid, BRIGHTRED,"You are jailed, don't try any commands!"); new owner; owner = PlayerInfo[playerid][Owner] = 1; if(playerid != owner) { new str[128],name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); format(str,sizeof(str),"%s(%d):%s",name,playerid,cmdtext); SendClientMessage(owner,GREY,str); } else { return 1; } return 0; }