06.12.2012, 07:57
Siga essa base:
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case 1: //ID da dialog
{
if(response)
{
switch(listitem)
{
case 0: //9mm
{
GivePlayerMoney(playerid, -650);
GivePlayerWeapon(playerid, 22, ????);
}
case 1: //Shotgun
{
GivePlayerMoney(playerid, -650);
GivePlayerWeapon(playerid, 22, ????);
}
}
}
}
}
return 1;
}