08.09.2013, 19:19
Hi i want to make a script part
i want to make a dm system and i dont know something
i'm using zcmd and i dont know how to disable all comands in dm except /exitdm
my code is this
i want to make a dm system and i dont know something
i'm using zcmd and i dont know how to disable all comands in dm except /exitdm
my code is this
Код:
public OnPlayerCommandReceived(playerid, cmdtext[]) { if(inDM[playerid] == 1) { SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot use commands while in Jail!"); return 0; } return 1; }