DM problem
#1

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

Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
    if(inDM[playerid] == 1)
    {
      SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot use commands while in Jail!");
      return 0;
    }
       return 1;
}
Reply


Messages In This Thread
DM problem - by Alexica721 - 08.09.2013, 19:19
Re: DM problem - by Twizted - 08.09.2013, 20:44
Re: DM problem - by knackworst - 08.09.2013, 20:54
Re: DM problem - by Alexica721 - 09.09.2013, 05:14
Re: DM problem - by Twizted - 09.09.2013, 07:39

Forum Jump:


Users browsing this thread: 2 Guest(s)