Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Sistema de Mini Shopping Center Criado Por [iPs]BrunoBernardo (BrunoTadeu)
- //Por Favor Na Retire Os Creditos
- //Use Com Sabedoria
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- #define NovoEstilo 1
- #define Vibradores 2
- #define Barraquinha1 3
- #define Barraquinha2 4
- #define Barraquinha3 5
- #define Barraquinha4 6
- #define CreditosFS 7
- new id;
- new nomedoplayer[MAX_PLAYER_NAME];
- public OnFilterScriptInit()
- {
- Create3DTextLabel("Shopping Center{FF0000}\nAperte 'F' Para Entrar",0x00F6F699,1784.6327,-1749.9993,13.5487,20,0);
- Create3DTextLabel("Shopping Center{FF0000}\nAperte 'F' Para Sair",0x00F6F699,1726.5319,-1640.1342,20.2241,20,0);
- Create3DTextLabel("Loja De Roupas{FF0000}\nAperte 'F' Para Entrar",0x00F6F699,1734.6023,-1654.2871,23.7311,20,0);
- Create3DTextLabel("Loja De Roupas{FF0000}\nAperte 'F' Para Sair",0x00F6F699,204.3511,-167.3334,1000.5234,20,0);
- Create3DTextLabel("SexShop{FF0000}\nAperte 'F' Para Entrar",0x00F6F699,1709.1573,-1654.3545,27.1953,20,0);
- Create3DTextLabel("SexShop{FF0000}\nAperte 'F' Para Sair",0x00F6F699,-103.559165,-24.225606,1000.718750,20,0);
- Create3DTextLabel("Cassino{FF0000}\nAperte 'F' Para Entrar",0x00F6F699,1734.8496,-1659.9568,23.7188,20,0);
- Create3DTextLabel("Cassino{FF0000}\nAperte 'F' Para Sair",0x00F6F699,2233.8389,1713.8701,1012.2708,20,0);
- Create3DTextLabel("Academia{FF0000}\nAperte 'F' Para Entrar",0x00F6F699,1709.1705,-1659.8090,27.1953,20,0);
- Create3DTextLabel("Academia{FF0000}\nAperte 'F' Para Sair",0x00F6F699,773.579956,-77.096694,1000.655029,20,0);
- Create3DTextLabel("Barbearia{FF0000}\nAperte 'F' Para Entrar",0x00F6F699,1734.6775,-1642.3326,27.2361,20,0);
- Create3DTextLabel("Barbearia{FF0000}\nAperte 'F' Para Sair",0x00F6F699,418.652984,-82.639793,1001.804687,20,0);
- Create3DTextLabel("Mundo Da Tatoo{FF0000}\nAperte 'F' Para Entrar",0x00F6F699,1734.7504,-1648.2072,27.2330,20,0);
- Create3DTextLabel("Mundo Da Tatoo{FF0000}\nAperte 'F' Para Sair",0x00F6F699,-204.439987,-8.469599,1002.273437,20,0);
- Create3DTextLabel("Novo Estilo De Luta{FF0000}\nAperte 'H' Para Comprar",0x00F6F699,771.1863,-66.7750,1000.6635,20,0);
- Create3DTextLabel("Comprar Vibradores{FF0000}\nAperte 'H' Para Comprar",0x00F6F699,-105.6989,-11.0847,1000.7188,20,0);
- Create3DTextLabel("Sorveteria{FF0000}\nAperte 'H' Para Comprar",0x00F6F699,1702.1229,-1663.8218,20.2196,20,0);
- Create3DTextLabel("HotDog{FF0000}\nAperte 'H' Para Comprar",0x00F6F699,1702.1553,-1656.9098,20.2196,20,0);
- Create3DTextLabel("Hamburguer{FF0000}\nAperte 'H' Para Comprar",0x00F6F699,1705.8834,-1669.7115,20.2188,20,0);
- Create3DTextLabel("Chilly's{FF0000}\nAperte 'H' Para Comprar",0x00F6F699,1702.3444,-1660.3325,20.2196,20,0);
- AddStaticPickup(19133, 23, 1784.6327,-1749.9993,13.5487);//Entrada Shopz
- AddStaticPickup(19133, 23, 1726.5319,-1640.1342,20.2241);//Saida Shopz
- AddStaticPickup(19133, 23, 1734.6023,-1654.2871,23.7311);//Entrada Loja Roupas
- AddStaticPickup(19133, 23, 204.3511,-167.3334,1000.5234);//Saida Loja Roupas
- AddStaticPickup(19133, 23, 1709.1573,-1654.3545,27.1953);//Entrada SexShop
- AddStaticPickup(19133, 23, -103.559165,-24.225606,1000.718750);//Saida SexShop
- AddStaticPickup(19133, 23, 1734.8496,-1659.9568,23.7188);//Entrada Cassino
- AddStaticPickup(19133, 23, 2233.8389,1713.8701,1012.2708);//Saida Cassino
- AddStaticPickup(19133, 23, 1709.1705,-1659.8090,27.1953);//Entrada Academia
- AddStaticPickup(19133, 23, 773.579956,-77.096694,1000.655029);//Saida Academia
- AddStaticPickup(19133, 23, 1734.6775,-1642.3326,27.2361);//Entrada Barbearia
- AddStaticPickup(19133, 23, 418.652984,-82.639793,1001.804687);//Saida Barbearia
- AddStaticPickup(19133, 23, 1734.7504,-1648.2072,27.2330);//Entrada Loja De Tatoo
- AddStaticPickup(19133, 23, -204.439987,-8.469599,1002.273437);//Saida Loja de Tatoo
- AddStaticPickup(1254, 23, 771.1863,-66.7750,1000.6635);//Novo Estilo
- AddStaticPickup(1254, 23, -105.6989,-11.0847,1000.7188);//Comprar SexShop
- AddStaticPickup(1240, 23, 1702.1229,-1663.8218,20.2196);//Barraca1
- AddStaticPickup(1240, 23, 1702.1553,-1656.9098,20.2196);//Barraca2
- AddStaticPickup(1240, 23, 1705.8834,-1669.7115,20.2188);//Barraca3
- AddStaticPickup(1240, 23, 1702.3444,-1660.3325,20.2196);//Barraca4
- //Parte de Fora
- CreateObject(4006, -1920.83, 6217.97, 4945.16, 0.00, 0.00, 0.00);
- CreateObject(4006, 1781.11, -1774.76, 32.50, 0.00, 0.00, 89.00);
- CreateObject(3850, 1786.01, -1748.72, 13.35, 0.00, 0.00, -5.00);
- CreateObject(3850, 1783.74, -1748.80, 13.35, 0.00, 0.00, -5.00);
- CreateObject(3660, 1801.93, -1742.90, 15.37, 0.00, 0.00, 0.00);
- CreateObject(3660, 1769.25, -1742.69, 15.37, 0.00, 0.00, 0.00);
- CreateObject(3657, 1805.05, -1813.57, 13.37, 0.00, 0.00, 178.00);
- CreateObject(3657, 1798.86, -1813.44, 13.37, 0.00, 0.00, 178.00);
- CreateObject(3657, 1792.68, -1813.20, 13.37, 0.00, 0.00, 178.00);
- CreateObject(3657, 1786.44, -1813.19, 13.37, 0.00, 0.00, 178.00);
- CreateObject(3511, 1810.58, -1808.37, 12.39, 0.00, 0.00, 0.00);
- CreateObject(3511, 1754.23, -1801.53, 12.39, 0.00, 0.00, 0.00);
- CreateObject(3471, 1791.62, -1742.95, 14.10, 0.00, 0.00, 91.00);
- CreateObject(3471, 1779.73, -1742.62, 14.10, 0.00, 0.00, 91.00);
- CreateObject(3934, 1801.15, -1800.20, 12.90, 0.00, 0.00, 0.00);
- CreateObject(3660, 1810.93, -1765.07, 15.37, 0.00, 0.00, 90.60);
- CreateObject(3660, 1810.86, -1791.69, 15.37, 0.00, 0.00, 90.60);
- CreateObject(3511, 1739.52, -1744.31, 12.39, 0.00, 0.00, 0.00);
- CreateObject(3554, 1750.45, -1743.94, 22.37, 0.00, 0.00, 0.00);
- CreateObject(3686, 1750.93, -1778.49, 16.37, 0.00, 0.00, 88.00);
- //Interior
- CreateObject(1775, 1707.6999511719, -1647.9000244141, 20.299999237061, 0, 0, 0);
- CreateObject(1776, 1700.9000244141, -1647.6999511719, 20.299999237061, 0, 0, 0);
- CreateObject(2420, 1704.3000488281, -1647.5, 19.200000762939, 0, 0, 0);
- CreateObject(2453, 1700.5, -1654.4000244141, 19.60000038147, 0, 0, 0);
- CreateObject(2438, 1700.3000488281, -1655.1999511719, 20.600004196167, 0, 0, 88);
- CreateObject(1340, 1701.0999755859, -1657.0999755859, 20.299999237061, 0, 0, 0);
- CreateObject(1342, 1701.0999755859, -1660.5, 20.299999237061, 0, 0, 184);
- CreateObject(1341, 1700.9000244141, -1663.3000488281, 20.200000762939, 0, 0, 0);
- CreateObject(1571, 1706.0999755859, -1672, 20.60000038147, 0, 0, 178);
- CreateObject(3743, 1717.1999511719, -1649.6999511719, 21.10000038147, 0, 0, 270);
- CreateObject(3467, 1701.5, -1658.8000488281, 19.89999961853, 0, 0, 92);
- CreateObject(1432, 1707.3000488281, -1668.4000244141, 19.299999237061, 0, 0, 0);
- CreateObject(1432, 1704.5999755859, -1665.9000244141, 19.299999237061, 0, 0, 0);
- CreateObject(1432, 1708.3000488281, -1664.6999511719, 19.299999237061, 0, 0, 0);
- CreateObject(1432, 1705.5, -1662.1999511719, 19.299999237061, 0, 0, 0);
- CreateObject(1432, 1708.6999511719, -1660.6999511719, 19.299999237061, 0, 0, 0);
- CreateObject(1432, 1704.5, -1659, 19.299999237061, 0, 0, 0);
- CreateObject(1432, 1708.0999755859, -1657.5, 19.299999237061, 0, 0, 0);
- CreateObject(1432, 1704.5, -1655.0999755859, 19.299999237061, 0, 0, 0);
- CreateObject(1432, 1707.4000244141, -1654.1999511719, 19.299999237061, 0, 0, 0);
- CreateObject(1432, 1702.9000244141, -1650.9000244141, 19.299999237061, 0, 0, 0);
- CreateObject(1432, 1707.3000488281, -1650.9000244141, 19.299999237061, 0, 0, 0);
- CreateObject(1432, 1710.1999511719, -1651.8000488281, 19.299999237061, 0, 0, 0);
- CreateObject(1432, 1702, -1671.5, 19.299999237061, 0, 0, 0);
- CreateObject(1432, 1709.4000244141, -1671.6999511719, 19.299999237061, 0, 0, 0);
- CreateObject(2837, 1709.3000488281, -1671.6999511719, 19.89999961853, 0, 0, 0);
- CreateObject(2838, 1707.3000488281, -1668.4000244141, 19.89999961853, 0, 0, 0);
- CreateObject(2839, 1704.5999755859, -1665.9000244141, 19.89999961853, 0, 0, 0);
- CreateObject(2840, 1705.5, -1662.3000488281, 19.89999961853, 0, 0, 0);
- CreateObject(2857, 1708.8000488281, -1660.5999755859, 19.89999961853, 0, 0, 0);
- CreateObject(2858, 1708.3000488281, -1664.6999511719, 19.89999961853, 0, 0, 0);
- CreateObject(2859, 1704.5999755859, -1659.0999755859, 19.89999961853, 0, 0, 0);
- CreateObject(2860, 1708.0999755859, -1657.5999755859, 19.89999961853, 0, 0, 0);
- CreateObject(2857, 1704.5999755859, -1655, 19.89999961853, 0, 0, 0);
- CreateObject(2840, 1707.3000488281, -1654.1999511719, 19.89999961853, 0, 0, 0);
- CreateObject(2839, 1710.1999511719, -1652, 19.89999961853, 0, 0, 0);
- CreateObject(2838, 1707.3000488281, -1650.9000244141, 19.89999961853, 0, 0, 0);
- CreateObject(2823, 1702.8000488281, -1650.9000244141, 19.89999961853, 0, 0, 0);
- CreateObject(2647, 1702.5999755859, -1651.1999511719, 20.10000038147, 0, 0, 0);
- CreateObject(2429, 1701.8000488281, -1661, 20, 0, 0, 0);
- CreateObject(2663, 1707, -1670.6999511719, 20.60000038147, 0, 0, 0);
- CreateObject(2663, 1706.4000244141, -1670.5999755859, 20.60000038147, 0, 0, 0);
- CreateObject(2663, 1705.4000244141, -1670.5999755859, 20.60000038147, 0, 0, 0);
- CreateObject(1523, 1704.0999755859, -1672.9000244141, 19.39999961853, 0, 0, 88);
- print("** Sistema De Shopping Center Carregado Com Sucesso ");
- print("** Feito Por Bruno Tadeu ");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- RemoveBuildingForPlayer(playerid, 4025, 1777.8359, -1773.9063, 12.5234, 0.25);
- RemoveBuildingForPlayer(playerid, 4215, 1777.5547, -1775.0391, 36.7500, 0.25);
- RemoveBuildingForPlayer(playerid, 4019, 1777.8359, -1773.9063, 12.5234, 0.25);
- return 1;
- }
- CMD:entrar(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1784.6327,-1749.9993,13.5487))
- {
- GameTextForPlayer(playerid, "~y~Shopping Center Bruno",5000,1);
- SetPlayerInterior(playerid,18);
- SetPlayerPos(playerid, 1726.5319,-1640.1342,20.2241);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1734.6023,-1654.2871,23.7311))
- {
- GameTextForPlayer(playerid, "~r~Loja De Roupas",5000,1);
- SetPlayerInterior(playerid,14);
- SetPlayerPos(playerid, 204.3511,-167.3334,1000.5234);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1709.1573,-1654.3545,27.1953))
- {
- GameTextForPlayer(playerid, "~p~SexShop",5000,1);
- SetPlayerInterior(playerid,3);
- SetPlayerPos(playerid, -103.559165,-24.225606,1000.718750);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1734.8496,-1659.9568,23.7188))
- {
- GameTextForPlayer(playerid, "~g~Cassino Clandestino",5000,1);
- SetPlayerInterior(playerid,1);
- SetPlayerPos(playerid, 2233.8389,1713.8701,1012.2708);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1709.1705,-1659.8090,27.1953))
- {
- GameTextForPlayer(playerid, "~b~Academia",5000,1);
- SetPlayerInterior(playerid,7);
- SetPlayerPos(playerid, 773.579956,-77.096694,1000.655029);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1734.6775,-1642.3326,27.2361))
- {
- GameTextForPlayer(playerid, "~y~Barbearia",5000,1);
- SetPlayerInterior(playerid,3);
- SetPlayerPos(playerid, 418.652984,-82.639793,1001.804687);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1734.7504,-1648.2072,27.2330))
- {
- GameTextForPlayer(playerid, "~b~Mundo Da Tatoo",5000,1);
- SetPlayerInterior(playerid,17);
- SetPlayerPos(playerid, -204.439987,-8.469599,1002.273437);
- }
- }
- }
- CMD:sair(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1726.5319,-1640.1342,20.2241))
- {
- GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, 1784.6327,-1749.9993,13.5487);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 204.3511,-167.3334,1000.5234))
- {
- GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, 1734.6023,-1654.2871,23.7311);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, -103.559165,-24.225606,1000.718750))
- {
- GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, 1709.1573,-1654.3545,27.1953);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2233.8389,1713.8701,1012.2708))
- {
- GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, 1734.8496,-1659.9568,23.7188);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 773.579956,-77.096694,1000.655029))
- {
- GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, 1709.1705,-1659.8090,27.1953);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 418.652984,-82.639793,1001.804687))
- {
- GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, 1734.6775,-1642.3326,27.2361);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, -204.439987,-8.469599,1002.273437))
- {
- GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, 1734.7504,-1648.2072,27.2330);
- }
- }
- }
- CMD:comprarroupa(playerid, params[])
- {
- new skin;
- if(sscanf(params, "u",id))
- {
- SendClientMessage(playerid,-1,"Use: /comprarroupa [id]");
- }
- else
- {
- SetPlayerSkin(playerid,skin);
- SendClientMessage(playerid, 0xFFFFFF99, "Você comprou novo skin por R$100");
- GivePlayerMoney(playerid,-100);
- }
- return 1;
- }
- CMD:mudarmeuestilo(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- ShowPlayerDialog(playerid, NovoEstilo, DIALOG_STYLE_LIST, "Estilos de luta", "Elbow ----> {00FF00}R$ 100,00\nBoxe ----> {00FF00}R$ 200,00\nGrab and kick ----> {00FF00}R$ 300,00\nStreet fight ----> {00FF00}R$ 400,00\nKungFu ----> {00FF00}R$ 500,00\nNormal ----> {00FF00}R$ 80,00", "Selecionar", "Cancelar");
- }
- }
- CMD:comprarvibrador(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- ShowPlayerDialog(playerid, Vibradores, DIALOG_STYLE_LIST, "Comprar Vibrador", "Double-ended Dildo ----> {00FF00}R$ 150,00\nDildo ----> {00FF00}R$ 90,00\nVibrator ----> {00FF00}R$ 120,00\nSilver Vibrator ----> {00FF00}R$ 180,00", "Selecionar", "Cancelar");
- }
- }
- CMD:lojasorvete(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1702.1229,-1663.8218,20.2196))
- {
- ShowPlayerDialog(playerid, Barraquinha1, DIALOG_STYLE_LIST, "Sorveteria Que Delicia", "Sorvete de Palito ----> {00FF00}R$ 10,00\nSorvete de Copinho ----> {00FF00} R$ 15,00\nSorvete de Casquinha ----> {00FF00} R$ 20,00\nSorvete na Taça ----> {00FF00} R$ 8,00\nÁgua com Gás ----> {00FF00} R$ 5,00\nRefrigerante ----> {00FF00} R$ 5,00", "Comprar", "Sair");
- }
- }
- CMD:lojahotdog(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1702.1553,-1656.9098,20.2196))
- {
- ShowPlayerDialog(playerid, Barraquinha2, DIALOG_STYLE_LIST, "HotDog Meu Deus", "HotDog Comum ----> {00FF00}R$ 20,00\nHotDog Com Duas Salsichas ----> {00FF00} R$ 25,00\nHotDog Completo ----> {00FF00} R$ 30,00\nPromoção Leve 2 Pague 1 ----> {00FF00} R$ 20,00", "Comprar", "Sair");
- }
- }
- CMD:lojahamburguer(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1705.8834,-1669.7115,20.2188))
- {
- ShowPlayerDialog(playerid, Barraquinha3, DIALOG_STYLE_LIST, "Hamburguer do Juarez", "Hamburguer Simples ----> {00FF00}R$ 40,00\nX Bacon ----> {00FF00} R$ 45,00\nEGG X Salada ----> {00FF00} R$ 50,00\nX Tudo ----> {00FF00} R$ 60,00", "Comprar", "Sair");
- }
- }
- CMD:lojachilly(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1702.3444,-1660.3325,20.2196))
- {
- ShowPlayerDialog(playerid, Barraquinha4, DIALOG_STYLE_LIST, "Chilly's Joana", "Chilly Pequeno ----> {00FF00}R$ 10,00\nChilly Medio ----> {00FF00} R$ 20,00\nChilly Grande ----> {00FF00} R$ 30,00", "Comprar", "Sair");
- }
- }
- CMD:creditos(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- ShowPlayerDialog(playerid, CreditosFS, DIALOG_STYLE_MSGBOX, "Creditos Do FS", "{FF0000}Sistema de Shopping Center Criado Por:\n{00F6F6}Bruno Tadeu (iPs BrunoBernardo)\n{FF0000}Agradecimentos:\n{00F6F6}Rjjj (Ken_xD) {FF0000}Me Ensinou Algumas Coisas", "Ok", "Sair");
- }
- }
- public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
- {
- if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- cmd_entrar(playerid, #);
- cmd_sair(playerid, #);
- }
- if(newkeys == 2 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- cmd_lojasorvete(playerid, #);
- cmd_lojahotdog(playerid, #);
- cmd_lojahamburguer(playerid, #);
- cmd_lojachilly(playerid, #);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 771.1863,-66.7750,1000.6635))
- {
- cmd_mudarmeuestilo(playerid, #);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, -105.6989,-11.0847,1000.7188))
- {
- cmd_comprarvibrador(playerid, #);
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new string[256];
- if(dialogid == NovoEstilo)
- {
- GetPlayerName(playerid, nomedoplayer, sizeof(nomedoplayer));
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerFightingStyle(playerid, FIGHT_STYLE_ELBOW);
- format(string, sizeof(string), "|Shopping Center| %s está mudando seu estilo de luta.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -100);
- }
- if(listitem == 1)
- {
- SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
- format(string, sizeof(string), "|Shopping Center| %s está mudando seu estilo de luta.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -200);
- }
- if(listitem == 2)
- {
- SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
- format(string, sizeof(string), "|Shopping Center| %s está mudando seu estilo de luta.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -300);
- }
- if(listitem == 3)
- {
- SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
- format(string, sizeof(string), "|Shopping Center| %s está mudando seu estilo de luta.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -400);
- }
- if(listitem == 4)
- {
- SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
- format(string, sizeof(string), "|Shopping Center| %s está mudando seu estilo de luta.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -500);
- }
- if(listitem == 5)
- {
- SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL);
- format(string, sizeof(string), "|Shopping Center| %s está mudando seu estilo de luta.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -80);
- }
- }
- return 1;
- }
- if(dialogid == Vibradores)
- {
- GetPlayerName(playerid, nomedoplayer, sizeof(nomedoplayer));
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid, 10, 1);
- format(string, sizeof(string), "|Shopping Center| %s está comprando um vibrador no sexshop.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -150);
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid, 11, 1);
- format(string, sizeof(string), "|Shopping Center| %s está comprando um vibrador no sexshop.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -90);
- }
- if(listitem == 2)
- {
- GivePlayerWeapon(playerid, 12, 1);
- format(string, sizeof(string), "|Shopping Center| %s está comprando um vibrador no sexshop.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -120);
- }
- if(listitem == 3)
- {
- GivePlayerWeapon(playerid, 13, 1);
- format(string, sizeof(string), "|Shopping Center| %s está comprando um vibrador no sexshop.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -180);
- }
- }
- return 1;
- }
- if(dialogid == Barraquinha1)
- {
- new Float:vida;
- GetPlayerName(playerid, nomedoplayer, sizeof(nomedoplayer));
- GetPlayerHealth(playerid, vida);
- if(!response) return 1;
- if (GetPlayerMoney(playerid) <= 0)
- {
- GameTextForPlayer(playerid, "~r~Você não possui dinheiro suficiente", 5000, 1);
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- format(string, sizeof(string), "|Shopping Center| %s está tomando um sorvete de palito.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -10);
- SetPlayerHealth(playerid, vida + 20);
- }
- if(listitem == 1)
- {
- format(string, sizeof(string), "|Shopping Center| %s está tomando um sorvete de copinho.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -15);
- SetPlayerHealth(playerid, vida + 50);
- }
- if(listitem == 2)
- {
- format(string, sizeof(string), "|Shopping Center| %s está tomando um sorvete de casquinha.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -20);
- SetPlayerHealth(playerid, vida + 80);
- }
- if(listitem == 3)
- {
- format(string, sizeof(string), "|Shopping Center| %s está tomando um sorvete na taça.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -8);
- SetPlayerHealth(playerid, vida + 35);
- }
- if(listitem == 4)
- {
- format(string, sizeof(string), "|Shopping Center| %s está bebendo uma água com gás.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -5);
- SetPlayerHealth(playerid, vida + 25);
- ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
- }
- if(listitem == 5)
- {
- format(string, sizeof(string), "|Shopping Center| %s está bebendo um refrigerante.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -5);
- SetPlayerHealth(playerid, vida + 10);
- ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
- }
- return 1;
- }
- return 1;
- }
- if(dialogid == Barraquinha2)
- {
- new Float:vida;
- GetPlayerName(playerid, nomedoplayer, sizeof(nomedoplayer));
- GetPlayerHealth(playerid, vida);
- if(!response) return 1;
- if (GetPlayerMoney(playerid) <= 0)
- {
- GameTextForPlayer(playerid, "~r~Você não possui dinheiro suficiente", 5000, 1);
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- format(string, sizeof(string), "|Shopping Center| %s está comendo um hotdog comum.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -20);
- SetPlayerHealth(playerid, vida + 30);
- }
- if(listitem == 1)
- {
- format(string, sizeof(string), "|Shopping Center| %s está comendo um hotdog de 2 salsichas.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -25);
- SetPlayerHealth(playerid, vida + 40);
- }
- if(listitem == 2)
- {
- format(string, sizeof(string), "|Shopping Center| %s está comendo um hotdog completo.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -30);
- SetPlayerHealth(playerid, vida + 90);
- }
- if(listitem == 3)
- {
- format(string, sizeof(string), "|Shopping Center| %s está comendo uma promoção.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -20);
- SetPlayerHealth(playerid, vida + 40);
- }
- return 1;
- }
- return 1;
- }
- if(dialogid == Barraquinha3)
- {
- new Float:vida;
- GetPlayerName(playerid, nomedoplayer, sizeof(nomedoplayer));
- GetPlayerHealth(playerid, vida);
- if(!response) return 1;
- if (GetPlayerMoney(playerid) <= 0)
- {
- GameTextForPlayer(playerid, "~r~Você não possui dinheiro suficiente", 5000, 1);
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- format(string, sizeof(string), "|Shopping Center| %s está comendo um hamburguer simples.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -40);
- SetPlayerHealth(playerid, vida + 40);
- }
- if(listitem == 1)
- {
- format(string, sizeof(string), "|Shopping Center| %s está comendo um x bacon.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -45);
- SetPlayerHealth(playerid, vida + 50);
- }
- if(listitem == 2)
- {
- format(string, sizeof(string), "|Shopping Center| %s está comendo um egg x salada.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -50);
- SetPlayerHealth(playerid, vida + 60);
- }
- if(listitem == 3)
- {
- format(string, sizeof(string), "|Shopping Center| %s está comendo um x tudo.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -60);
- SetPlayerHealth(playerid, vida + 80);
- }
- return 1;
- }
- return 1;
- }
- if(dialogid == Barraquinha4)
- {
- new Float:vida;
- GetPlayerName(playerid, nomedoplayer, sizeof(nomedoplayer));
- GetPlayerHealth(playerid, vida);
- if(!response) return 1;
- if (GetPlayerMoney(playerid) <= 0)
- {
- GameTextForPlayer(playerid, "~r~Você não possui dinheiro suficiente", 5000, 1);
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- format(string, sizeof(string), "|Shopping Center| %s está tomando um chilly pequeno.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -20);
- SetPlayerHealth(playerid, vida + 20);
- }
- if(listitem == 1)
- {
- format(string, sizeof(string), "|Shopping Center| %s está tomando um chilly medio.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -30);
- SetPlayerHealth(playerid, vida + 30);
- }
- if(listitem == 2)
- {
- format(string, sizeof(string), "|Shopping Center| %s está tomando um chilly grande.", nomedoplayer);
- SendClientMessageToAll(0xFFFFFF99, string);
- GivePlayerMoney(playerid, -10);
- SetPlayerHealth(playerid, vida + 40);
- }
- return 1;
- }
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement