23.10.2012, 06:02
If you want only one command to work, you could check out this:
only an Example
Код:
public OnPlayerCommandReceived(playerid, cmdtext[]) { if(DM[playerid] == 1 && strfind(cmdtext,"exitdm",true) == -1) //That will make only "/exitdm" to work, and none of the other commands. { SendClientMessage(playerid,-1,EMBED_RED"[ERROR]: "EMBED_WHITE"You can not use commands inside of a DM, please use "EMBED_RED"/exitdm"EMBED_WHITE"."); return 0; } return 1; }