Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerModelSelection(playerid, response, listid, modelid)
- {
- if(listid == gun)
- {
- if(!response)
- {
- return SendClientMessage(playerid, PREV_BG_COLOR, "Você saiu do menu de itens !");
- }
- if(response)
- {
- if(modelid == 346)
- {
- if(GetPlayerMoney(playerid) <200) return GameTextForPlayer(playerid, "~r~ No Money", 200, 1);
- GivePlayerMoney(playerid, -200), GivePlayerWeapon(playerid, 22, 30);
- GameTextForPlayer(playerid, "~r~9 mm", 200, 1);
- ShowModelSelectionMenu(playerid, gun, "Weapons menu", DIALOG_BG_COLOR, PREV_BG_COLOR, PREV_BG_COLOR2);
- }
- if(modelid == 347)
- {
- if(GetPlayerMoney(playerid) <600) return GameTextForPlayer(playerid, "~r~ No Money", 200, 1);
- GivePlayerMoney(playerid, -600), GivePlayerWeapon(playerid, 23, 30), GameTextForPlayer(playerid, "~r~Silinced 9mm", 200, 1);
- ShowModelSelectionMenu(playerid, gun, "Weapons menu", DIALOG_BG_COLOR, PREV_BG_COLOR, PREV_BG_COLOR2);
- }
- if(modelid == 348)
- {
- if(GetPlayerMoney(playerid) <1200) return GameTextForPlayer(playerid, "~r~ No Money", 200, 1);
- GivePlayerMoney(playerid, -1200), GivePlayerWeapon(playerid, 24, 30), GameTextForPlayer(playerid, "~r~Desert Eagle", 200, 1);
- ShowModelSelectionMenu(playerid, gun, "Weapons menu", DIALOG_BG_COLOR, PREV_BG_COLOR, PREV_BG_COLOR2);
- }
- if(modelid == 372)
- {
- if(GetPlayerMoney(playerid) <300) return GameTextForPlayer(playerid, "~r~ No Money", 200, 1);
- GivePlayerMoney(playerid, -300), GivePlayerWeapon(playerid, 32, 30), GameTextForPlayer(playerid, "~r~TEC-9", 200, 1);
- ShowModelSelectionMenu(playerid, gun, "Weapons menu", DIALOG_BG_COLOR, PREV_BG_COLOR, PREV_BG_COLOR2);
- }
- if(modelid == 352)
- {
- if(GetPlayerMoney(playerid) <500) return GameTextForPlayer(playerid, "~r~ No Money", 200, 1);
- GivePlayerMoney(playerid, -500), GivePlayerWeapon(playerid, 28, 30), GameTextForPlayer(playerid, "~r~Uzi", 200, 1);
- ShowModelSelectionMenu(playerid, gun, "Weapons menu", DIALOG_BG_COLOR, PREV_BG_COLOR, PREV_BG_COLOR2);
- }
- if(modelid == 349)
- {
- if(GetPlayerMoney(playerid) <600) return GameTextForPlayer(playerid, "~r~No Money", 200, 1);
- GivePlayerMoney(playerid, -600), GivePlayerWeapon(playerid, 25, 15), GameTextForPlayer(playerid, "~r~Shotgun", 200, 1);
- ShowModelSelectionMenu(playerid, gun, "Weapons menu", DIALOG_BG_COLOR, PREV_BG_COLOR, PREV_BG_COLOR2);
- }
- if(modelid == 350)
- {
- if(GetPlayerMoney(playerid) <800) return GameTextForPlayer(playerid, "~r~No Money", 200, 1);
- GivePlayerMoney(playerid, -800), GivePlayerWeapon(playerid, 26, 15), GameTextForPlayer(playerid, "~r~Sawnoff Shotgun", 200, 1);
- ShowModelSelectionMenu(playerid, gun, "Weapons menu", DIALOG_BG_COLOR, PREV_BG_COLOR, PREV_BG_COLOR2);
- }
- if(modelid == 351:
- {
- if(GetPlayerMoney(playerid) <1000) return GameTextForPlayer(playerid, "~r~No Money", 200, 1);
- GivePlayerMoney(playerid, -1000), GivePlayerWeapon(playerid, 27, 15), GameTextForPlayer(playerid, "~r~Combat Shotgun", 200, 1);
- ShowModelSelectionMenu(playerid, gun, "Weapons menu", DIALOG_BG_COLOR, PREV_BG_COLOR, PREV_BG_COLOR2);
- }
- if(modelid == 353:
- {
- if(GetPlayerMoney(playerid) <2000) return GameTextForPlayer(playerid, "~r~No Money", 200, 1);
- GivePlayerMoney(playerid, -2000), GivePlayerWeapon(playerid, 29, 30), GameTextForPlayer(playerid, "~r~MP5", 200, 1);
- ShowModelSelectionMenu(playerid, gun, "Weapons menu", DIALOG_BG_COLOR, PREV_BG_COLOR, PREV_BG_COLOR2);
- }
- if(modelid == 355)
- {
- if(GetPlayerMoney(playerid) <3500) return GameTextForPlayer(playerid, "~r~No Money", 200, 1);
- GivePlayerMoney(playerid, -3500), GivePlayerWeapon(playerid, 30, 120), GameTextForPlayer(playerid, "~r~AK-47", 200, 1);
- ShowModelSelectionMenu(playerid, gun, "Weapons menu", DIALOG_BG_COLOR, PREV_BG_COLOR, PREV_BG_COLOR2);
- }
- if(modelid == 356)
- {
- if(GetPlayerMoney(playerid) <4500) return GameTextForPlayer(playerid, "~r~No Money", 200, 1);
- GivePlayerMoney(playerid, -4500), GivePlayerWeapon(playerid, 31, 120), GameTextForPlayer(playerid, "~r~M4", 200, 1);
- ShowModelSelectionMenu(playerid, gun, "Weapons menu", DIALOG_BG_COLOR, PREV_BG_COLOR, PREV_BG_COLOR2);
- }
- if(modelid == 357)
- {
- if(GetPlayerMoney(playerid) <1000) return GameTextForPlayer(playerid, "~r~No Money", 200, 1);
- GivePlayerMoney(playerid, -1000), GivePlayerWeapon(playerid, 33, 20), GameTextForPlayer(playerid, "~r~Country Rifle", 200, 1);
- ShowModelSelectionMenu(playerid, gun, "Weapons menu", DIALOG_BG_COLOR, PREV_BG_COLOR, PREV_BG_COLOR2);
- }
- if(modelid == 358)
- {
- if(GetPlayerMoney(playerid) <5000) return GameTextForPlayer(playerid, "~r~No Money", 200, 1);
- GivePlayerMoney(playerid, -5000), GivePlayerWeapon(playerid, 34, 10), GameTextForPlayer(playerid, "~r~Sniper Rifle", 200, 1);
- ShowModelSelectionMenu(playerid, gun, "Weapons menu", DIALOG_BG_COLOR, PREV_BG_COLOR, PREV_BG_COLOR2);
- }
- }
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement