how to make a command check for some thing
#1

Hi, i need this command:
pawn Код:
CMD:fun(playerid, params[])
{
    if(PlayerInfo[playerid][AdminLevel] >= 2)
    {
gPaceMode = false;
GivePlayerWeapon(playerid,24,100000);
GivePlayerWeapon(playerid,31,100000);
GivePlayerWeapon(playerid,29,100000);
    }
    else
    {
        SendClientMessage(playerid, -1, "{FF3300}Must be an Admin level 2 or higher to use this command.");
    }
    return 1;
}
to check if pace mode is true:
pawn Код:
gPaceMode = true;
If yes, then do what the command is supposed to do. But if not send a message saying: Pace Mode is not ON.

__________________________________________

I already tried this but didn't work:
pawn Код:
CMD:fun(playerid, params[])
{
    if(PlayerInfo[playerid][AdminLevel] >= 2)
    gPaceMode = true;
    {
gPaceMode = false;
GivePlayerWeapon(playerid,24,100000);
GivePlayerWeapon(playerid,31,100000);
GivePlayerWeapon(playerid,29,100000);
    }
    SendClientMessage(playerid, -1, "{FF3300}Pace Mode is not ON.");
    {
        SendClientMessage(playerid, -1, "{FF3300}Must be an Admin level 2 or higher to use this command.");
    }
    return 1;
}
Reply


Messages In This Thread
how to make a command check for some thing - by RiChArD_A - 10.06.2013, 00:15
Re: how to make a command check for some thing - by ViruZz - 10.06.2013, 00:22
Re: how to make a command check for some thing - by Goldilox - 10.06.2013, 00:29
Re: how to make a command check for some thing - by RiChArD_A - 10.06.2013, 00:42
Re: how to make a command check for some thing - by Kirollos - 10.06.2013, 01:26
Re: how to make a command check for some thing - by ViruZz - 10.06.2013, 01:29

Forum Jump:


Users browsing this thread: 1 Guest(s)