14.03.2014, 10:30
@Flake here
ah how if he choose list item no. 2 he will get armor ? i'am curious why your code doesn't have any list item etc..
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == VIP_DIALOG)
{
if(response) // If they clicked 'Yes' or pressed enter
{
SendClientMessage(playerid, COLOR_GREEN, "You've healed yourself");
SetPlayerHealth(playerid, 100.0);
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "You've added VIP armor to yourself");
SetPlayerArmour(playerid, 100.0);
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "You've got a weaponset");
GivePlayerWeapon(playerid, 31, 100); //M4 with 100 bullts
//Add the rest of your guns here blah blah
}
return 1;
}
return 0;
}