Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new pName[MAX_PLAYER_NAME];
- new string [128];
- GetPlayerName(playerid, pName, sizeof(pName));
- if(dialogid == TELES) // Teleport Dialog
- {
- if(response)
- {
- if(listitem == 0) // Stunt Paradise Points of Intrest
- {
- ShowPlayerDialog(playerid, TELES+1, DIALOG_STYLE_LIST, "Teleport to", "Abandon Airport\nLos Santos Airport\nSan Fierro Airport\nLas Venturas Airport\nMount Chilliad\nArea51\nBack", "Select", "Cancel");
- }
- if(listitem == 1) // Airports/Aeroplane's
- {
- ShowPlayerDialog(playerid, TELES+2, DIALOG_STYLE_LIST, "Teleport to", "Francis Intn'l Airport - Ticket sales\nFrancis Intn'l Airport - Baggage claim\nShamal cabin\nAndromada cargo hold\nBack", "Select", "Cancel");
- }
- if(listitem == 2) // Ammunation's
- {
- ShowPlayerDialog(playerid, TELES+3, DIALOG_STYLE_LIST, "Teleport to", "Ammunation 1\nAmmunation 2\nAmmunation 3\nAmmunation 4\nAmmunation 5\nBooth\nRange\nBack", "Select", "Cancel");
- }
- if(listitem == 3) // Burglary Houses
- {
- ShowPlayerDialog(playerid, TELES+4, DIALOG_STYLE_LIST, "Teleport to", "House 1\nHouse 2\nHouse 3\nHouse 4\nHouse 5\nHouse 6\nHouse 7\nBack", "Select", "Cancel");
- }
- if(listitem == 4) // Interiors from Missions/Cutscenes
- {
- ShowPlayerDialog(playerid, TELES+5, DIALOG_STYLE_LIST, "Teleport to", "Atrium\nBig Smoke's Crack Palace\nBloodbowl Stadium\nBurning Desire House\nColonel Furhberger's\nDillimore Gas Station\nFrancis International Airport\nJefferson Motel\nKickstart Stadium\nLiberty City\nLS Airport, Baggage Reclaim\nJizzy's\nRC Battlefield\nRyders House\nSan Fierro Garage Interior\nSweets House\nWelcome Pump\nWoozies Apartment\n8 Track Stadium\nDirt Bike Stadium\nCrack Den\nBack", "Select", "Cancel");
- }
- if(listitem == 5) // Safe Houses
- {
- ShowPlayerDialog(playerid, TELES+6, DIALOG_STYLE_LIST, "Teleport to", "Golden Bed Motel Room\nHashbury House\nJohnsons House\nMadd Doggs Mansion\nRed Bed Motel Room\nVerdant Bluffs Safehouse\nZeros RC Shop\nBack", "Select", "Cancel");
- }
- if(listitem == 6) // Unused Interiors
- {
- ShowPlayerDialog(playerid, TELES+7, DIALOG_STYLE_LIST, "Teleport to", "SF Police Department\nUnused Safe House\nBack", "Select", "Cancel");
- }
- if(listitem == 7) // Shops, Casinos
- {
- ShowPlayerDialog(playerid, TELES+8, DIALOG_STYLE_LIST, "Teleport to", "Tattoos\nBurger Shot\nWell Stacked Pizza\nCluckin' Bell\nCaligulas Casino\nFour Dragons Casino\nRusty Brown's Donuts\nBack", "Select", "Cancel");
- }
- if(listitem == 8) // Modding shops
- {
- ShowPlayerDialog(playerid, TELES+9, DIALOG_STYLE_LIST, "Teleport to", "Loco Low\nWheel Arch Angels\nTransfender\nBack", "Select", "Cancel");
- }
- if(listitem == 9) // Respawn
- {
- SetPlayerInterior(playerid, 0);
- SpawnPlayer(playerid);
- }
- }
- return 1;
- }
- if(dialogid == TELES+1) // 24/7's
- {
- if(response)
- {
- if(listitem == 0) // Abandon Airport
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 398.6381,2442.1099,16.5000);
- format(string, sizeof(string), "[TELEPORT] %s [/AA]", pName);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- if(listitem == 1) // Los Santos Airport
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 1406.1482,-2454.5088,13.5547);
- format(string, sizeof(string), "[TELEPORT] %s [/LSA]", pName);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- if(listitem == 2) // 24/7 3
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, -30.9466, -89.6095, 1003.5499);
- format(string, sizeof(string), "[TELEPORT] %s [/SFA]", pName);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- if(listitem == 3) // 24/7 4
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, -25.1325, -139.0669, 1003.5499);
- format(string, sizeof(string), "[TELEPORT] %s [/LVA]", pName);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- if(listitem == 4) // 24/7 5
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, -27.3123, -29.2775, 1003.5499);
- format(string, sizeof(string), "[TELEPORT] %s [/MC]", pName);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- if(listitem == 5) // 24/7 6
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 201.7911,1868.0065,17.8377);
- format(string, sizeof(string), "[TELEPORT] %s [/AREA51]", pName);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- if(listitem == 6) // Back
- {
- ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "24/7's\nAirports/Aeroplane's\nAmmunation's\nBurglary Houses\nInteriors from Missions/Cutscenes\nSafe Houses\nUnused Interiors\nShops, Casinos\nModding shops\nRespawn", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == TELES+2) // Airports/Aeroplane's
- {
- if(response)
- {
- if(listitem == 0) // Francis Intn'l Airport - Ticket sales
- {
- SetPlayerInterior(playerid, 14);
- SetPlayerPos(playerid, -1827.1473, 7.2074, 1061.1435);
- }
- if(listitem == 1) // Francis Intn'l Airport - Baggage claim
- {
- SetPlayerInterior(playerid, 14);
- SetPlayerPos(playerid, -1855.5687, 41.2631, 1061.1435);
- }
- if(listitem == 2) // Shamal cabin
- {
- SetPlayerInterior(playerid, 1);
- SetPlayerPos(playerid, 2.3848, 33.1033, 1199.8499);
- }
- if(listitem == 3) // Andromada cargo hold
- {
- SetPlayerInterior(playerid, 9);
- SetPlayerPos(playerid, 315.8561, 1024.4964, 1949.7973);
- }
- if(listitem == 4) // Back
- {
- ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "24/7's\nAirports/Aeroplane's\nAmmunation's\nBurglary Houses\nInteriors from Missions/Cutscenes\nSafe Houses\nUnused Interiors\nShops, Casinos\nModding shops\nRespawn", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == TELES+3) // Ammunation's
- {
- if(response)
- {
- if(listitem == 0) // Ammunation 1
- {
- SetPlayerInterior(playerid, 1);
- SetPlayerPos(playerid, 286.1489, -40.6443, 1001.5699);
- }
- if(listitem == 1) // Ammunation 2
- {
- SetPlayerInterior(playerid, 4);
- SetPlayerPos(playerid, 286.8009, -82.5476, 1001.5399);
- }
- if(listitem == 2) // Ammunation 3
- {
- SetPlayerInterior(playerid, 6);
- SetPlayerPos(playerid, 296.9199, -108.0719, 1001.5699);
- }
- if(listitem == 3) // Ammunation 4
- {
- SetPlayerInterior(playerid, 7);
- SetPlayerPos(playerid, 314.8209, -141.4319, 999.6619);
- }
- if(listitem == 4) // Ammunation 5
- {
- SetPlayerInterior(playerid, 6);
- SetPlayerPos(playerid, 316.5249, -167.7069, 999.6619);
- }
- if(listitem == 5) // Booth
- {
- SetPlayerInterior(playerid, 7);
- SetPlayerPos(playerid, 302.2928, -143.1390, 1004.0625);
- }
- if(listitem == 6) // Range
- {
- SetPlayerInterior(playerid, 7);
- SetPlayerPos(playerid, 280.7951, -135.2033, 1004.0625);
- }
- if(listitem == 7) // Back
- {
- ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "24/7's\nAirports/Aeroplane's\nAmmunation's\nBurglary Houses\nInteriors from Missions/Cutscenes\nSafe Houses\nUnused Interiors\nShops, Casinos\nModding shops\nRespawn", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == TELES+4) // Burglary Houses
- {
- if(response)
- {
- if(listitem == 0) // House 1
- {
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, 235.5089, 1189.1698, 1080.3399);
- }
- if(listitem == 1) // House 2
- {
- SetPlayerInterior(playerid, 2);
- SetPlayerPos(playerid, 225.7569, 1240.0000, 1082.1499);
- }
- if(listitem == 2) // House 3
- {
- SetPlayerInterior(playerid, 1);
- SetPlayerPos(playerid, 223.0439, 1289.2598, 1082.1999);
- }
- if(listitem == 3) // House 4
- {
- SetPlayerInterior(playerid, 7);
- SetPlayerPos(playerid, 225.6309, 1022.4799, 1084.0699);
- }
- if(listitem == 4) // House 5
- {
- SetPlayerInterior(playerid, 15);
- SetPlayerPos(playerid, 295.1389, 1474.4699, 1080.5198);
- }
- if(listitem == 5) // House 6
- {
- SetPlayerInterior(playerid, 15);
- SetPlayerPos(playerid, 328.4939, 1480.5899, 1084.4499);
- }
- if(listitem == 6) // House 7
- {
- SetPlayerInterior(playerid, 15);
- SetPlayerPos(playerid, 385.8039, 1471.7698, 1080.2099);
- }
- if(listitem == 7) // Back
- {
- ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "24/7's\nAirports/Aeroplane's\nAmmunation's\nBurglary Houses\nInteriors from Missions/Cutscenes\nSafe Houses\nUnused Interiors\nShops, Casinos\nModding shops\nRespawn", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == TELES+5) // Interiors from Missions/Cutscenes
- {
- if(response)
- {
- if(listitem == 0) // Atrium
- {
- SetPlayerInterior(playerid, 18);
- SetPlayerPos(playerid, 1726.18, -1641.00, 20.23);
- }
- if(listitem == 1) // Big Smoke's Crack Palace
- {
- SetPlayerInterior(playerid, 2);
- SetPlayerPos(playerid, 2567.52, -1294.59, 1063.25);
- }
- if(listitem == 2) // Bloodbowl Stadium
- {
- SetPlayerInterior(playerid, 15);
- SetPlayerPos(playerid, -1394.20, 987.62, 1023.96);
- }
- if(listitem == 3) // Burning Desire House
- {
- SetPlayerInterior(playerid, 5);
- SetPlayerPos(playerid, 2338.32, -1180.61, 1027.98);
- }
- if(listitem == 4) // Colonel Furhberger's
- {
- SetPlayerInterior(playerid, 8);
- SetPlayerPos(playerid, 2807.63, -1170.15, 1025.57);
- }
- if(listitem == 5) // Dillimore Gas Station
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 664.19, -570.73, 16.34);
- }
- if(listitem == 6) // Francis International Airport
- {
- SetPlayerInterior(playerid, 14);
- SetPlayerPos(playerid, -1830.81, 16.83, 1061.14);
- }
- if(listitem == 7) // Jefferson Motel
- {
- SetPlayerInterior(playerid, 15);
- SetPlayerPos(playerid, 2220.26, -1148.01, 1025.80);
- }
- if(listitem == 8) // Kickstart Stadium
- {
- SetPlayerInterior(playerid, 14);
- SetPlayerPos(playerid, -1410.72, 1591.16, 1052.53);
- }
- if(listitem == 9) // Liberty City
- {
- SetPlayerInterior(playerid, 1);
- SetPlayerPos(playerid, -750.80, 491.00, 1371.70);
- }
- if(listitem == 10) // Los Santos Airport, Baggage Reclaim
- {
- SetPlayerInterior(playerid, 14);
- SetPlayerPos(playerid, -1870.80, 59.81, 1056.25);
- }
- if(listitem == 11) // Jizzy's
- {
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, -2637.69, 1404.24, 906.46);
- }
- if(listitem == 12) // RC Battlefield
- {
- SetPlayerInterior(playerid, 10);
- SetPlayerPos(playerid, -1079.99, 1061.58, 1343.04);
- }
- if(listitem == 13) // Ryders House
- {
- SetPlayerInterior(playerid, 2);
- SetPlayerPos(playerid, 2451.77, -1699.80, 1013.51);
- }
- if(listitem == 14) // San Fierro Garage Interior
- {
- SetPlayerInterior(playerid, 1);
- SetPlayerPos(playerid, -2042.42, 178.59, 28.84);
- }
- if(listitem == 15) // Sweets House
- {
- SetPlayerInterior(playerid, 1);
- SetPlayerPos(playerid, 2535.83, -1674.32, 1015.50);
- }
- if(listitem == 16) // Welcome Pump
- {
- SetPlayerInterior(playerid, 1);
- SetPlayerPos(playerid, 681.66, -453.32, -25.61);
- }
- if(listitem == 17) // Woozies Apartment
- {
- SetPlayerInterior(playerid, 1);
- SetPlayerPos(playerid, -2158.72, 641.29, 1052.38);
- }
- if(listitem == 18) // 8 Track Stadium
- {
- SetPlayerInterior(playerid, 7);
- SetPlayerPos(playerid, -1395.958, -208.197, 1051.170);
- }
- if(listitem == 19) // Dirt Bike Stadium
- {
- SetPlayerInterior(playerid, 4);
- SetPlayerPos(playerid, -1424.9319, -664.5869, 1059.8585);
- }
- if(listitem == 20) // Crack Den
- {
- SetPlayerInterior(playerid, 5);
- SetPlayerPos(playerid, 318.565, 1115.210, 1082.98);
- }
- if(listitem == 21) // Back
- {
- ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "24/7's\nAirports/Aeroplane's\nAmmunation's\nBurglary Houses\nInteriors from Missions/Cutscenes\nSafe Houses\nUnused Interiors\nShops, Casinos\nModding shops\nRespawn", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == TELES+6) // Safe Houses
- {
- if(response)
- {
- if(listitem == 0) // Golden Bed Motel Room
- {
- SetPlayerInterior(playerid, 9);
- SetPlayerPos(playerid, 2251.85, -1138.16, 1050.63);
- }
- if(listitem == 1) // Hashbury House
- {
- SetPlayerInterior(playerid, 10);
- SetPlayerPos(playerid, 2260.76, -1210.45, 1049.02);
- }
- if(listitem == 2) // Johnsons House
- {
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, 2496.65, -1696.55, 1014.74);
- }
- if(listitem == 3) // Madd Doggs Mansion
- {
- SetPlayerInterior(playerid, 5);
- SetPlayerPos(playerid, 1299.14, -794.77, 1084.00);
- }
- if(listitem == 4) // Red Bed Motel Room
- {
- SetPlayerInterior(playerid, 10);
- SetPlayerPos(playerid, 2262.83, -1137.71, 1050.63);
- }
- if(listitem == 5) // Verdant Bluffs Safehouse
- {
- SetPlayerInterior(playerid, 9);
- SetPlayerPos(playerid, 2365.42, -1131.85, 1050.88);
- }
- if(listitem == 6) // Zeros RC Shop
- {
- SetPlayerInterior(playerid, 6);
- SetPlayerPos(playerid, -2240.00, 131.00, 1035.40);
- }
- if(listitem == 7) // Back
- {
- ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "24/7's\nAirports/Aeroplane's\nAmmunation's\nBurglary Houses\nInteriors from Missions/Cutscenes\nSafe Houses\nUnused Interiors\nShops, Casinos\nModding shops\nRespawn", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == TELES+7) // Unused Interiors
- {
- if(response)
- {
- if(listitem == 0) // SF Police Department
- {
- SetPlayerInterior(playerid, 10);
- SetPlayerPos(playerid, 246.40, 110.84, 1003.22);
- }
- if(listitem == 1) // Unused Safe House
- {
- SetPlayerInterior(playerid, 12);
- SetPlayerPos(playerid, 2324.33, -1144.79, 1050.71);
- }
- if(listitem == 2) // Back
- {
- ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "24/7's\nAirports/Aeroplane's\nAmmunation's\nBurglary Houses\nInteriors from Missions/Cutscenes\nSafe Houses\nUnused Interiors\nShops, Casinos\nModding shops\nRespawn", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == TELES+8) // Shops, Casinos
- {
- if(response)
- {
- if(listitem == 0) // Tattoos
- {
- SetPlayerInterior(playerid, 16);
- SetPlayerPos(playerid, -203.0764, -24.1658, 1002.2734);
- }
- if(listitem == 1) // Burger Shot
- {
- SetPlayerInterior(playerid, 10);
- SetPlayerPos(playerid, 363.4129, -74.5786, 1001.5078);
- }
- if(listitem == 2) // Well Stacked Pizza
- {
- SetPlayerInterior(playerid, 5);
- SetPlayerPos(playerid, 372.3520, -131.6510, 1001.4922);
- }
- if(listitem == 3) // Cluckin' Bell
- {
- SetPlayerInterior(playerid, 9);
- SetPlayerPos(playerid, 365.7158, -9.8873, 1001.8516);
- }
- if(listitem == 4) // Caligulas Casino
- {
- SetPlayerInterior(playerid, 1);
- SetPlayerPos(playerid, 2233.8032, 1712.2303, 1011.7632);
- }
- if(listitem == 5) // Four Dragons Casino
- {
- SetPlayerInterior(playerid, 10);
- SetPlayerPos(playerid, 2016.2699, 1017.7790, 996.8750);
- }
- if(listitem == 6) // Rusty Brown's Donuts
- {
- SetPlayerInterior(playerid, 17);
- SetPlayerPos(playerid, 378.026, -190.5155, 1000.6328);
- }
- if(listitem == 7) // Back
- {
- ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "24/7's\nAirports/Aeroplane's\nAmmunation's\nBurglary Houses\nInteriors from Missions/Cutscenes\nSafe Houses\nUnused Interiors\nShops, Casinos\nModding shops\nRespawn", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == TELES+9) // Modding shops
- {
- if(response)
- {
- if(listitem == 0) // Loco Low
- {
- SetPlayerInterior(playerid, 2);
- SetPlayerPos(playerid, 616.7820, -74.8151, 997.6350);
- }
- if(listitem == 1) // Wheel Arch Angels
- {
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, 615.2851, -124.2390, 997.6350);
- }
- if(listitem == 2) // Transfender
- {
- SetPlayerInterior(playerid, 1);
- SetPlayerPos(playerid, 617.5380, -1.9900, 1000.6829);
- }
- if(listitem == 3) // Back
- {
- ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "24/7's\nAirports/Aeroplane's\nAmmunation's\nBurglary Houses\nInteriors from Missions/Cutscenes\nSafe Houses\nUnused Interiors\nShops, Casinos\nModding shops\nRespawn", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == WEAPONS)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, WEAPONS+1, DIALOG_STYLE_LIST, "Pistols", "9mm (200$)\nSilenced 9mm (600$)\nDesert Eagle (1200$)", "Select", "Cancel");
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid, WEAPONS+2, DIALOG_STYLE_LIST, "Sub-Machine Gun", "Tec9 (300$)\nMicro SMG (500$)", "Select", "Cancel");
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, WEAPONS+3, DIALOG_STYLE_LIST, "Shotguns", "Shotgun (600$)\nSawnoff Shotgun (800$)\nCombat Shotgun (1000$)", "Select", "Cancel");
- }
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, WEAPONS+4, DIALOG_STYLE_LIST, "Armours", "Armour (200$)", "Select", "Cancel");
- }
- if(listitem == 4)
- {
- ShowPlayerDialog(playerid, WEAPONS+5, DIALOG_STYLE_LIST, "SMG", "MP5 (2000$)", "Select", "Cancel");
- }
- if(listitem == 5)
- {
- ShowPlayerDialog(playerid, WEAPONS+6, DIALOG_STYLE_LIST, "Assault", "AK47 (3500$)\nM4 (4500$)", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == WEAPONS+1)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerMoney(playerid) <200)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -200);
- GivePlayerWeapon(playerid,22,30);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a 9mm! ($200)");
- ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
- }
- if(listitem == 1)
- {
- if(GetPlayerMoney(playerid) <600)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -600);
- GivePlayerWeapon(playerid,23,30);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Silenced 9mm! ($600)");
- ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
- }
- if(listitem == 2)
- {
- if(GetPlayerMoney(playerid) <1200)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -1200);
- GivePlayerWeapon(playerid,24,30);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Desert Eagle! ($1200)");
- ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == WEAPONS+2)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerMoney(playerid) <300)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -300);
- GivePlayerWeapon(playerid,32,30);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Tec9! ($300)");
- ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
- }
- if(listitem == 1)
- {
- if(GetPlayerMoney(playerid) <500)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -500);
- GivePlayerWeapon(playerid,28,30);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Micro SMG! ($500)");
- ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == WEAPONS+3)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerMoney(playerid) <600)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -600);
- GivePlayerWeapon(playerid,25,15);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Shotgun! ($600)");
- ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
- }
- if(listitem == 1)
- {
- if(GetPlayerMoney(playerid) <800)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -800);
- GivePlayerWeapon(playerid,26,15);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Sawnoff Shotgun (800$)");
- ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
- }
- if(listitem == 2)
- {
- if(GetPlayerMoney(playerid) <1000)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -1000);
- GivePlayerWeapon(playerid,27,15);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Combat Shotgun (1000$)");
- ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == WEAPONS+4)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerMoney(playerid) <200)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -200);
- SetPlayerArmour(playerid, 100);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Armour! ($200)");
- ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == WEAPONS+5)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerMoney(playerid) <2000)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -2000);
- GivePlayerWeapon(playerid,29,30);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a MP5 (2000$)");
- ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == WEAPONS+6)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerMoney(playerid) <3500)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -3500);
- GivePlayerWeapon(playerid,30,120);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a AK47 (3500$)");
- ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
- }
- if(listitem == 1)
- {
- if(GetPlayerMoney(playerid) <4500)
- return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
- GivePlayerMoney(playerid, -4500);
- GivePlayerWeapon(playerid,31,120);
- SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a M4 (4500$)");
- ShowPlayerDialog(playerid, WEAPONS, DIALOG_STYLE_LIST, "AmmuNation", "Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
- }
- }
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment