How To Disable Command? IN DM
#2

Just add a extra variable at the top of the command

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/v", true))
    {
        if(DMVARIABLE[playerid] == 1) return SendClientMessage(playerid, 0xDEEE20FF, "You cannot use this command in a deathmatch");
        return 1;
    }
    return 0;
}
Hope you kinda get what I mean.
Reply


Messages In This Thread
How To Disable Command? IN DM - by SmileyForCheat - 02.07.2011, 01:08
Re: How To Disable Command? IN DM - by [HiC]TheKiller - 02.07.2011, 01:29
Re: How To Disable Command? IN DM - by SmileyForCheat - 02.07.2011, 01:33
Re: How To Disable Command? IN DM - by [HiC]TheKiller - 02.07.2011, 01:36
Re: How To Disable Command? IN DM - by Lorenc_ - 02.07.2011, 01:40

Forum Jump:


Users browsing this thread: 1 Guest(s)