16.08.2015, 01:10
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch(dialogid) { case 1: { if(response) { new Float:HP; GetPlayerHealth(playerid, HP); switch(listitem) { case 0: { GivePlayerMoney(playerid, -4); SetPlayerHealth(playerid, HP + 5); GivePlayerMoney(playerid, -4); } case 1: { GivePlayerWeapon(playerid, 5, 100); GivePlayerMoney(playerid, -10); } case 2: { SetPlayerSpecialAction(playerid, 20); GivePlayerMoney(playerid, -3); SetTimer("beer",25000,false, "i", playerid); } } } } } return 1; }