Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Filterscript criado por: King_Furios.
- Caso for usar mantenha os créditos, deu trabalho para fazer.
- ~> King Bar V1.0 <~
- KKK KK III NNN NNN NNN GGGGGGGGGGGGGGGGGG
- KKK KK III NNN NNN NNN GGGGGGGGGGGGGGGGGG
- KKK KK NNN NNN NNN GG
- KKK KK III NNN NNN NNN GG
- KKK KK III NNN NNN NNN GG
- KKK KK III NNN NNN NNN GG
- KKK KK III NNN NNN NNN GG GGGGGGGGGGG
- KKK KK III NNN NNN NNN GG GGGGGGGGGGG
- KKK KK III NNN NNN NNN GG GGG
- KKK KK III NNN NNN NNN GG GGG
- KKK KK III NNN NNN NNN GG GGG
- KKK KK III NNN NNN NNN GGGGGGGGGGGGGGGGGGG
- KKK KK III NNN NNNNNN GGGGGGGGGGGGGGGGGGG
- FFFFFFFFFFFFF uuuu uuuu RRRRRRRRRRRRRRRRR iii OOOOOOOOOOOO SSSSSSSSSS
- FFFFFFFFFFFFF uuuu uuuu RRRRR RRR iii OO OO SSSSSSSSSSSS
- FFFF uuuu uuuu RRRRR RRR OO OO SSS
- FFFF uuuu uuuu RRRRR RRR iii OO OO SSS
- FFFFFFFFFFFFF uuuu uuuu RRRRR RRR iii OO OO SS
- FFFFFFFFFFFFF uuuu uuuu RRRRR RRR iii OO OO SSS
- FFFF uuuu uuuu RRRRR RRR iii OO OO SSS
- FFFF uuuu uuuu RRRRR RRR iii OO OO SSS
- FFFF uuuu uuuu RRRRR RRR iii OO OO SSS
- FFFF uuuuuuuuuuuuuuuu RRRRR RRR iii OO OO SSSSSSSSS
- FFFF uuuuuuuuuuuuuuuu RRRRR RRR iii OOOOOOOOOOOO SSSSSSSS
- */
- //Includes
- #include <a_samp>
- //Defines
- #define Verde3D 0x00D900FF
- #define COR_AMARELO 0xFFFF00AA
- #define FILTERSCRIPT
- #define beber 985
- #if defined FILTERSCRIPT
- #pragma tabsize 0
- main()
- {
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- print("FilterScript criado por: King_Furios");
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- return 1;
- }
- //public's
- public OnFilterScriptInit()
- {
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- print("King Bar v1.0. Criado Por: King_Furios!");
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- //Objetos
- CreatePickup(1318, 1, 1369.6722,-1770.2762,13.5469, -1);
- Create3DTextLabel("King Bar\nDigite: /bebidas",Verde3D,1369.6722,-1770.2762,13.5469,356.7875,0,0);
- CreateObject(1649,1378.8000500,-1773.6999500,13.0000000,0.0000000,0.0000000,90.0000000); //object(wglasssmash) (1)
- CreateObject(1649,1378.8000500,-1767.9000200,13.0000000,0.0000000,0.0000000,90.0000000); //object(wglasssmash) (2)
- CreateObject(1649,1378.5996100,-1773.2998000,16.3000000,0.0000000,0.0000000,90.0000000); //object(wglasssmash) (4)
- CreateObject(1491,1378.8000500,-1771.5999800,12.1000000,0.0000000,0.0000000,90.0000000); //object(gen_doorint01) (1)
- CreateObject(1649,1378.5996100,-1768.8994100,16.3000000,0.0000000,0.0000000,88.0000000); //object(wglasssmash) (7)
- CreateObject(1649,1378.6992200,-1769.0000000,19.5000000,0.0000000,0.0000000,87.9950000); //object(wglasssmash) (8)
- CreateObject(1649,1378.5996100,-1773.2998000,19.5000000,0.0000000,0.0000000,88.0000000); //object(wglasssmash) (9)
- CreateObject(1649,1378.8000500,-1768.0000000,13.2000000,0.0000000,0.0000000,270.0000000); //object(wglasssmash) (10)
- CreateObject(1649,1378.6999500,-1773.8000500,13.2000000,0.0000000,0.0000000,270.0000000); //object(wglasssmash) (11)
- CreateObject(1649,1378.6992200,-1769.3994100,16.5000000,0.0000000,0.0000000,270.0000000); //object(wglasssmash) (12)
- CreateObject(1649,1378.5996100,-1773.6992200,16.5000000,0.0000000,0.0000000,268.0000000); //object(wglasssmash) (13)
- CreateObject(1649,1378.5996100,-1769.3994100,19.7000000,0.0000000,0.0000000,270.0000000); //object(wglasssmash) (14)
- CreateObject(1649,1378.5999800,-1773.6999500,19.7000000,0.0000000,0.0000000,270.0000000); //object(wglasssmash) (15)
- CreateObject(16151,1368.6999500,-1768.1999500,12.9000000,0.0000000,0.0000000,90.0000000); //object(ufo_bar) (1)
- CreateObject(1432,1374.5999800,-1768.5999800,12.5000000,0.0000000,0.0000000,0.0000000); //object(dyn_table_2) (1)
- CreateObject(1594,1375.0000000,-1774.0000000,13.0000000,0.0000000,0.0000000,0.0000000); //object(chairsntable) (1)
- CreateObject(711,1342.3000500,-1769.9000200,18.5000000,0.0000000,0.0000000,0.0000000); //object(vgs_palm02) (1)
- CreateObject(711,1342.3000500,-1771.5999800,18.5000000,0.0000000,0.0000000,0.0000000); //object(vgs_palm02) (2)
- CreateObject(711,1342.4000200,-1773.1999500,18.5000000,0.0000000,0.0000000,0.0000000); //object(vgs_palm02) (4)
- CreateObject(711,1342.5999800,-1774.8000500,18.5000000,0.0000000,0.0000000,0.0000000); //object(vgs_palm02) (5)
- CreateObject(1280,1353.3994100,-1770.3994100,12.9000000,0.0000000,0.0000000,92.0000000); //object(parkbench1) (1)
- CreateObject(9131,1378.8000500,-1767.6999500,13.7000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (1)
- CreateObject(9131,1378.8000500,-1768.4000200,13.7000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (2)
- CreateObject(9131,1378.8000500,-1769.0999800,13.7000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (3)
- CreateObject(9131,1378.8000500,-1769.6999500,13.7000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (4)
- CreateObject(9131,1378.8000500,-1772.0000000,13.7000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (5)
- CreateObject(9131,1378.7998000,-1772.6992200,13.7000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (6)
- CreateObject(9131,1378.8000500,-1773.4000200,13.7000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (7)
- CreateObject(9131,1378.8000500,-1774.0999800,13.7000000,0.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (8)
- CreateObject(9131,1378.8000500,-1768.4000200,15.1000000,90.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (9)
- CreateObject(9131,1378.7998000,-1770.3994100,15.1000000,90.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (10)
- CreateObject(9131,1378.8000500,-1772.4000200,15.1000000,90.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (11)
- CreateObject(9131,1378.8000500,-1774.0999800,15.1000000,90.0000000,0.0000000,0.0000000); //object(shbbyhswall13_lvs) (12)
- CreateObject(2108,1355.0999800,-1770.5000000,12.5000000,0.0000000,0.0000000,222.0000000); //object(cj_mlight13) (1)
- CreateObject(2108,1351.5996100,-1770.5000000,12.5000000,0.0000000,0.0000000,223.9950000); //object(cj_mlight13) (2)
- CreateObject(1280,1348.3000500,-1775.0999800,12.9000000,0.0000000,0.0000000,270.0000000); //object(parkbench1) (1)
- CreateObject(2108,1350.4000200,-1775.0000000,12.5000000,0.0000000,0.0000000,223.9950000); //object(cj_mlight13) (2)
- CreateObject(2108,1346.1999500,-1774.9000200,12.5000000,0.0000000,0.0000000,223.9950000); //object(cj_mlight13) (2)
- CreateObject(2773,1380.4000200,-1771.5999800,13.1000000,0.0000000,0.0000000,272.0000000); //object(cj_airprt_bar) (1)
- CreateObject(2773,1382.8000500,-1771.5000000,13.1000000,0.0000000,0.0000000,272.0000000); //object(cj_airprt_bar) (2)
- CreateObject(2773,1380.3000500,-1769.8000500,13.1000000,0.0000000,0.0000000,272.0000000); //object(cj_airprt_bar) (3)
- CreateObject(2773,1382.8000500,-1769.6999500,13.1000000,0.0000000,0.0000000,272.0000000); //object(cj_airprt_bar) (4)
- CreateObject(2773,1377.1999500,-1770.0000000,13.1000000,0.0000000,0.0000000,272.0000000); //object(cj_airprt_bar) (5)
- CreateObject(2773,1377.1999500,-1771.6999500,13.1000000,0.0000000,0.0000000,272.0000000); //object(cj_airprt_bar) (7)
- CreateObject(2431,1366.5999800,-1767.3000500,15.8000000,0.0000000,0.0000000,0.0000000); //object(cj_ff_list2) (1)
- CreateObject(2431,1369.4000200,-1767.3000500,15.8000000,0.0000000,0.0000000,0.0000000); //object(cj_ff_list2) (2)
- CreateObject(2714,1379.4000200,-1770.8000500,15.1000000,0.0000000,0.0000000,90.0000000); //object(cj_open_sign_2) (1)
- CreateObject(6986,1382.8000500,-1775.0999800,28.3000000,0.0000000,0.0000000,90.0000000); //object(vgngamblsign1) (1)
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext, "/bebidas", true) == 0) {
- if(!IsPlayerInRangeOfPoint(playerid, 2.0, 1369.6722,-1770.2762,13.5469)) return SendClientMessage(playerid, -1, "Você precisa estar na lanchonete para usar esse comando!"); {
- ShowPlayerDialog(playerid, beber, DIALOG_STYLE_LIST, "{FF4500}Bebidas{FFFFFF}", "Chimarrão\nCachaça\nPinga\nCerveja\nCaipirinha\nBatida de Limão\nBatida de Morango\nBatida de Maracujá\nVinho\nRefrigerante\nÀgua", "Comprar", "Sair");
- }
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == beber)
- {
- if(response)
- {
- if(listitem == 0)
- {
- new Float:Vida;
- if (GetPlayerMoney(playerid) < 500)
- {
- GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
- return 1;
- }
- GetPlayerHealth(playerid, Vida);
- SetPlayerHealth(playerid, Vida+10.0);
- SendClientMessage(playerid, COR_AMARELO, "Você tomou um chimarrão!");
- GivePlayerMoney(playerid, -500);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
- return 1;
- }
- if(listitem == 1)
- {
- new Float:Vida;
- if (GetPlayerMoney(playerid) < 500)
- {
- GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
- return 1;
- }
- GetPlayerHealth(playerid, Vida);
- SetPlayerHealth(playerid, Vida+10.0);
- SendClientMessage(playerid, COR_AMARELO, "Você tomou uma cachaça!");
- GivePlayerMoney(playerid, -500);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
- return 1;
- }
- if(listitem == 2)
- {
- new Float:Vida;
- if (GetPlayerMoney(playerid) < 500)
- {
- GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
- return 1;
- }
- GetPlayerHealth(playerid, Vida);
- SetPlayerHealth(playerid, Vida+10.0);
- SendClientMessage(playerid, COR_AMARELO, "Você tomou uma pinga!");
- GivePlayerMoney(playerid, -500);
- return 1;
- }
- if(listitem == 3)
- {
- new Float:Vida;
- if (GetPlayerMoney(playerid) < 500)
- {
- GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
- return 1;
- }
- GetPlayerHealth(playerid, Vida);
- SetPlayerHealth(playerid, Vida+10.0);
- SendClientMessage(playerid, COR_AMARELO, "Você tomou uma cerveja!");
- GivePlayerMoney(playerid, -500);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
- return 1;
- }
- if(listitem == 4)
- {
- new Float:Vida;
- if (GetPlayerMoney(playerid) < 500)
- {
- GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
- return 1;
- }
- GetPlayerHealth(playerid, Vida);
- SetPlayerHealth(playerid, Vida+10.0);
- SendClientMessage(playerid, COR_AMARELO, "Você tomou uma caipirinha!");
- GivePlayerMoney(playerid, -500);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
- return 1;
- }
- if(listitem == 5)
- {
- new Float:Vida;
- if (GetPlayerMoney(playerid) < 500)
- {
- GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
- return 1;
- }
- GetPlayerHealth(playerid, Vida);
- SetPlayerHealth(playerid, Vida+10.0);
- SendClientMessage(playerid, COR_AMARELO, "Você tomou uma batida de limão!");
- GivePlayerMoney(playerid, -500);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
- return 1;
- }
- if(listitem == 6)
- {
- new Float:Vida;
- if (GetPlayerMoney(playerid) < 500)
- {
- GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
- return 1;
- }
- GetPlayerHealth(playerid, Vida);
- SetPlayerHealth(playerid, Vida+10.0);
- SendClientMessage(playerid, COR_AMARELO, "Você tomou uma batida de morango!");
- GivePlayerMoney(playerid, -500);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
- return 1;
- }
- if(listitem == 7)
- {
- new Float:Vida;
- if (GetPlayerMoney(playerid) < 500)
- {
- GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
- return 1;
- }
- GetPlayerHealth(playerid, Vida);
- SetPlayerHealth(playerid, Vida+10.0);
- SendClientMessage(playerid, COR_AMARELO, "Você tomou uma batida de maracujá!");
- GivePlayerMoney(playerid, -500);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
- return 1;
- }
- if(listitem == 8)
- {
- new Float:Vida;
- if (GetPlayerMoney(playerid) < 500)
- {
- GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
- return 1;
- }
- GetPlayerHealth(playerid, Vida);
- SetPlayerHealth(playerid, Vida+10.0);
- SendClientMessage(playerid, COR_AMARELO, "Você tomou um vinho!");
- GivePlayerMoney(playerid, -500);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
- return 1;
- }
- if(listitem == 9)
- {
- new Float:Vida;
- if (GetPlayerMoney(playerid) < 500)
- {
- GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
- return 1;
- }
- GetPlayerHealth(playerid, Vida);
- SetPlayerHealth(playerid, Vida+10.0);
- SendClientMessage(playerid, COR_AMARELO, "Você tomou um refrigerante!");
- GivePlayerMoney(playerid, -500);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
- return 1;
- }
- if(listitem == 10)
- {
- new Float:Vida;
- if (GetPlayerMoney(playerid) < 500)
- {
- GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro", 5000, 1);
- return 1;
- }
- GetPlayerHealth(playerid, Vida);
- SetPlayerHealth(playerid, Vida+10.0);
- SendClientMessage(playerid, COR_AMARELO, "Você tomou uma água!");
- GivePlayerMoney(playerid, -500);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
- return 1;
- }
- return 1;
- }
- return 1;
- }
- return 0;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement