TogglePlayerControllable
#2

This?

PHP код:
if(dialogid == DIALOGID)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
ShowPlayerDialog(playeridDIALOGID+1DIALOG_STYLE_LIST"Weapon Menu""Knuckle Dusters\nGolf Club\nNite Stick\nKnife\nBat\nShovel\nPool Cue\nKatana\nDildo\nSpray Can\n""Select""Cancel");
            }
            if(
listitem == 1)
            {
                
ShowPlayerDialog(playeridDIALOGID+2DIALOG_STYLE_LIST"Weapon Menu""9mm\nSilenced 9mm\nDesert Eagle""Get""Cancel");
            }
            if(
listitem == 2)
            {
                
ShowPlayerDialog(playeridDIALOGID+3DIALOG_STYLE_LIST"Weapon Menu""Uzi\nSMG\nTec9""Get""Cancel");
            }
            if(
listitem == 3)
            {
                
ShowPlayerDialog(playeridDIALOGID+4DIALOG_STYLE_LIST"Weapon Menu""Country Rifle\nSniper Rifle""Get""Cancel");
            }
            if(
listitem == 4)
            {
                
ShowPlayerDialog(playeridDIALOGID+5DIALOG_STYLE_LIST"Weapon Menu""AK-47\nM4""Get""Cancel");
            }
            if(
listitem == 5)
            {
                
ShowPlayerDialog(playeridDIALOGID+6DIALOG_STYLE_LIST"Weapon Menu""Standard Shotgun\nSawnoff Shotgun\nCombat Shotgun""Get""Cancel");
            }
            if(
listitem == 6)
            {
                
ShowPlayerDialog(playeridDIALOGID+7DIALOG_STYLE_LIST"Weapon Menu""Rocket Laucher\nHeat Seake\nChain Saw""Get""Cancel");
            }
            if(
listitem == 7)
            {
                
ShowPlayerDialog(playeridDIALOGID+8DIALOG_STYLE_LIST"Weapon Menu""Granade\nTear Gas""Get""Cancel");
            }
            if(
listitem == 8)
            {
                
ShowPlayerDialog(playeridDIALOGID+9DIALOG_STYLE_LIST"Weapon Menu""Fire Extinguisher\nSatchel Charge\nParachute\nNightvision Goggles\nFlowers""Get""Cancel");
            }
        }
        else
        {
            
TogglePlayerControllable(playerid,1);
        }
    } 
Reply


Messages In This Thread
TogglePlayerControllable - by Beljulji - 19.10.2012, 13:56
Re: TogglePlayerControllable - by gtakillerIV - 19.10.2012, 14:01

Forum Jump:


Users browsing this thread: 1 Guest(s)