25.01.2014, 15:58 
	
	
	
		Hi all I made a spawn with a menu and when I return his kick me
	
	
	
	
PHP код:
                }
               // bla bla bla
            }
        }
    }
    if(dialogid == DIALOG_WEAPONS)
    {
        if(response) // If they clicked 'Select' or double-clicked a weapon
        {
            // Give them the weapon
            switch(listitem)
            {
                case 0: GivePlayerWeapon(playerid, WEAPON_DEAGLE, 14); // Give them a desert eagle
                case 1: GivePlayerWeapon(playerid, WEAPON_AK47, 120); // Give them an AK-47
                case 2: GivePlayerWeapon(playerid, WEAPON_SHOTGSPA, 28); // Give them a Combat Shotgun
            }
        }
        return SendClientMessage(playerid,-1,""); // We handled a dialog, so return 1. Just like OnPlayerCommandText.
    }
    return 0;
} 

