Locker command
#1

I'm working on this command that is used by the PD/FD but open different dialog.
I cant get it to work tough. What am I doing wrong?
Thanks in advance.
PHP код:
CMD:locker(playeridparams[])
{
    if(
PlayerInfo[playerid][pFaction] == 2)
    {
        if(
IsPlayerInRangeOfPoint(playerid6.0, -2655.72632242.805415.2350))
        {
            
ShowPlayerDialog(playeridDIALOG_SDLOCKERDIALOG_STYLE_LIST"PD locker""Armour\nNightstick\nPepper-Spray\nDeagle\nShotgun\nMP5\nM4\nUniform""Choose""Cancel");
        }
        else return 
SCM(playeridCOLOR_LIGHTRED"You're not by the lockers.");
    } else return 
SCM(playeridCOLOR_LIGHTRED"You're not a police officer.");
    if (
PlayerInfo[playerid][pFaction] == 3)
    {
        if(
IsPlayerInRangeOfPoint(playerid6.0, -2655.72632242.805415.2350))
        {
            
ShowPlayerDialog(playeridDIALOG_FDLOCKERDIALOG_STYLE_LIST"FD locker""Armour\nFirst Aid\nShovel\nChainsaw\nUniform""Choose""Cancel");
        }
        else return 
SCM(playeridCOLOR_LIGHTRED"You're not by the lockers.");
    } else return 
SCM(playeridCOLOR_LIGHTRED"You're not a Firefighter.");
    return 
1;

Reply


Messages In This Thread
Locker command - by Cubie - 14.09.2017, 14:32
Re: Locker command - by Kane - 14.09.2017, 21:53
Respuesta: Locker command - by Cothect - 14.09.2017, 22:31
Re: Respuesta: Locker command - by Cubie - 15.09.2017, 11:43

Forum Jump:


Users browsing this thread: 2 Guest(s)