Blocking a CMD
#1

Well, I have another question, I think this is related to /god. In a DM, you can use /god, but I want it to be blocked in DM, how to do it?

pawn Код:
CMD:god(playerid,params[])
{
    if(God[playerid] == false)
    {
        SetPlayerHealth(playerid, 100000.0);
        God[playerid] = true;
        return SendClientMessage(playerid, yellow, "Godmode has been enabled!");
    }
    else
    if(God[playerid] == true)
    {
        God[playerid] = false;
        SetPlayerHealth(playerid, 100.0);
        return SendClientMessage(playerid, red, "Godmode has been disabled!");
    }
   
    if(InDM[playerid] == 1) //I've no idea how to do it here
    {
   
    }
    return 1;
}
Reply


Messages In This Thread
Blocking a CMD - by LeeXian99 - 27.03.2013, 09:39
Re: Blocking a CMD - by RajatPawar - 27.03.2013, 09:40
Re: Blocking a CMD - by Neil. - 27.03.2013, 09:44

Forum Jump:


Users browsing this thread: 1 Guest(s)