25.01.2014, 16:07
Try this:
pawn Код:
if(dialogid == DIALOG_WEAPONS)
{
if(!response) return 1;
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.
}

