DM[playerid] = 1;
#4

If you want only one command to work, you could check out this:

Код:
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;
}
only an Example
Reply


Messages In This Thread
DM[playerid] = 1; - by xplor09edy - 23.10.2012, 05:21
Re: DM[playerid] = 1; - by newbienoob - 23.10.2012, 05:31
Re: DM[playerid] = 1; - by xplor09edy - 23.10.2012, 05:53
Re: DM[playerid] = 1; - by denNorske - 23.10.2012, 06:02

Forum Jump:


Users browsing this thread: 1 Guest(s)