/exitdm
#1

pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
    //--------------------------------------------------------------------------
    if(GetPVarInt(playerid, "PlayerInDM") == 1 || GetPVarInt(playerid, "PlayerInRace") == 1 || GetPVarInt(playerid, "PlayerInGifts") == 1)
    {
        //----------------------------------------------------------------------
        if(strcmp(cmdtext,  "/exitdm",  true   ) == 0)          return 0;
        if(strcmp(cmdtext,  "/ad",      true   ) == 0)          return 0;
        if(strcmp(cmdtext,  "/myskin",  true   ) == 0)          return 0;
        if(strcmp(cmdtext,  "/cmds",    true   ) == 0)          return 0;
        if(strcmp(cmdtext,  "/skin",    true   ) == 0)          return 0;
        //----------------------------------------------------------------------
        else GameTextForPlayer(playerid, "~w~Use ~r~/exitdm~w~ to leave!", 6000, 4);
        return 1;
    }
    //--------------------------------------------------------------------------
    if(GetPVarInt(playerid, "Jailed") == 1)
    {
        SendClientMessage(playerid, red, "ERROR: You cannot use commands in Jail!");
        return 1;
    }
    //--------------------------------------------------------------------------
    else return 0;
}
Well, all commands aren't working. I want to block commands only in a DM arena. How can I do that?
Reply


Messages In This Thread
/exitdm - by [Ro]DuReX - 08.05.2013, 04:46
Re: /exitdm - by Jefff - 08.05.2013, 11:19
Re: /exitdm - by [Ro]DuReX - 08.05.2013, 12:33
Re: /exitdm - by [Ro]DuReX - 08.05.2013, 13:18

Forum Jump:


Users browsing this thread: 1 Guest(s)