03.09.2017, 20:35
in Zcmd it's super easy just add this to the bottom of the script
Ycmd, This wont work, So i suggest using ZCMD
Ycmd, This wont work, So i suggest using ZCMD
PHP код:
public OnPlayerPerformCommand(playerid, cmdtext[], success) {
if(InsideDM(playerid) && !strcmp(cmdtext, "/leavedm", true)) return SendClientMessage(playerid, COLOR_RED, "You can't use commands as you are in a DM!");
//change /leavedm to the command you use to leave the dm arena
return 1;
}