06.08.2012, 05:27
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_WEAPONS)
{
if(response == 0)
{
SendClientMessage(playerid,COLOR_YELLOW,"You Have Canceled The Dialog");
}
else if(listitem == 0)
{
GivePlayerWeapon(playerid, WEAPON_DEAGLE, 14);
}
/*else if(listitem == 1)
{
GivePlayerWeapon(playerid, weaponid/weaponname, ammo);
}*/
}
return 1;
}

