Here it is...
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 160)
{
if(response)
switch(listitem)
{
case 0:
{
GivePlayerWeapon(playerid, 1, 1);
GivePlayerMoney(playerid, -25);
}
case 1:
{
GivePlayerWeapon(playerid, 2, 1);
GivePlayerMoney(playerid, -50);
}
case 2:
{
GivePlayerWeapon(playerid, 3, 1);
GivePlayerMoney(playerid, -100);
}
case 3:
{
GivePlayerWeapon(playerid, 4, 1);
GivePlayerMoney(playerid, -200);
}
case 4:
{
GivePlayerWeapon(playerid, 5, 1);
GivePlayerMoney(playerid, -150);
}
case 5:
{
GivePlayerWeapon(playerid, 6, 1);
GivePlayerMoney(playerid, -100);
}
case 6:
{
GivePlayerWeapon(playerid, 41, 500);
GivePlayerMoney(playerid, -500);
}
case 7:
{
GivePlayerWeapon(playerid, 7, 1);
GivePlayerMoney(playerid, -30);
}
case 8:
{
GivePlayerWeapon(playerid, 8, 1);
GivePlayerMoney(playerid, -100);
}
case 9:
{
GivePlayerWeapon(playerid, 9, 1);
GivePlayerMoney(playerid, -1000);
}
case 10:
{
GivePlayerWeapon(playerid, 10, 1);
GivePlayerMoney(playerid, -500);
}
case 11:
{
GivePlayerWeapon(playerid, 11, 1);
GivePlayerMoney(playerid, -450);
}
case 12:
{
GivePlayerWeapon(playerid, 12, 1);
GivePlayerMoney(playerid, -300);
}
case 13:
{
GivePlayerWeapon(playerid, 13, 1);
GivePlayerMoney(playerid, -350);
}
case 14:
{
GivePlayerWeapon(playerid, 14, 1);
GivePlayerMoney(playerid, -10);
}
case 15:
{
GivePlayerWeapon(playerid, 15, 1);
GivePlayerMoney(playerid, -30);
}
case 16:
{
GivePlayerWeapon(playerid, 46, 1);
GivePlayerMoney(playerid, -100);
}
case 17:
{
GivePlayerWeapon(playerid, 17, 500);
GivePlayerMoney(playerid, -1000);
}
case 18:
{
GivePlayerWeapon(playerid, 22, 500);
GivePlayerMoney(playerid, -1500);
}
case 19:
{
GivePlayerWeapon(playerid, 23, 500);
GivePlayerMoney(playerid, -1600);
}
case 20:
{
GivePlayerWeapon(playerid, 24, 500);
GivePlayerMoney(playerid, -3000);
}
case 21:
{
GivePlayerWeapon(playerid, 25, 500);
GivePlayerMoney(playerid, -2800);
}
case 22:
{
GivePlayerWeapon(playerid, 27, 500);
GivePlayerMoney(playerid, -3500);
}
case 23:
{
GivePlayerWeapon(playerid, 28, 500);
GivePlayerMoney(playerid, -2500);
}
case 24:
{
GivePlayerWeapon(playerid, 29, 500);
GivePlayerMoney(playerid, -5000);
}
case 25:
{
GivePlayerWeapon(playerid, 30, 500);
GivePlayerMoney(playerid, -4500);
}
case 26:
{
GivePlayerWeapon(playerid, 31, 500);
GivePlayerMoney(playerid, -5000);
}
case 27:
{
GivePlayerWeapon(playerid, 32, 500);
GivePlayerMoney(playerid, -3000);
}
case 28:
{
GivePlayerWeapon(playerid, 33, 500);
GivePlayerMoney(playerid, -6000);
}
case 29:
{
GivePlayerWeapon(playerid, 34, 500);
GivePlayerMoney(playerid, -7000);
}
}
return 1;
}
return 0;
}