04.08.2011, 20:28
PHP код:
if(dialogid == 1425) {
if(response) {
if(listitem == 0) {
SetPlayerHealth(playerid, 100);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(listitem == 1) {
SetPlayerArmour(playerid, 100);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(listitem == 2) {
GivePlayerWeapon(playerid, 24, 999);
GivePlayerMoney(playerid, -1500);
return 1;
}
if(listitem == 3) {
GivePlayerWeapon(playerid, 22, 999);
GivePlayerMoney(playerid, -1500);
return 1;
}
if(listitem == 4) {
GivePlayerWeapon(playerid, 31, 999);
GivePlayerMoney(playerid, -2000);
return 1;
}
if(listitem == 5) {
GivePlayerWeapon(playerid, 30, 999);
GivePlayerMoney(playerid, -2200);
return 1;
}
if(listitem == 6) {
GivePlayerWeapon(playerid, 4, 999);
GivePlayerMoney(playerid, -2500);
return 1;
}
if(listitem == 7) {
GivePlayerWeapon(playerid, 26, 999);
GivePlayerMoney(playerid, -3000);
return 1;
}
if(listitem == 8) {
GivePlayerWeapon(playerid, 34, 999);
GivePlayerMoney(playerid, -4000);
return 1;
}
if(listitem == 9) {
GivePlayerWeapon(playerid, 10, 999);
GivePlayerMoney(playerid, -500);
return 1;
}
if(listitem == 10) {
GivePlayerWeapon(playerid, 28, 999);
GivePlayerMoney(playerid, -2300);
return 1;
}
if(listitem == 11) {
GivePlayerWeapon(playerid, 27, 999);
GivePlayerMoney(playerid, -3000);
return 1;
}
if(listitem == 12) {
GivePlayerWeapon(playerid, 25, 999);
GivePlayerMoney(playerid, -2000);
return 1;
}
if(listitem == 13) {
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
GivePlayerMoney(playerid, -8000);
return 1;
}
return 1;
}
return 0;
}