09.03.2015, 11:15
Or make it like this:
Greekz
Код:
public OnPlayerCommandReceived(playerid, cmdtext[]) { new cmd[32],pos=strfind(cmdtext," "); strmid(cmd,cmdtext,0,(pos == -1)?strlen(cmdtext):pos,32); if(Info[playerid][Jailed]==1) { if(!strcmp(cmd,"/pm") || !strcmp(cmd,"/a")) return 1; SendClientMessage(playerid,COLOR_RED,"ERROR, You are in jail."); return 0; } }