Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*VISITE NOSSO SITE: http://www.sampknd.com/
- SAMP KND MELHOR BLOG DE SAMP DO BRASIL
- */
- #include <a_samp>
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_BLUE 0x2641FEAA
- #define FILTERSCRIPT
- #pragma tabsize 0
- new portao1;
- new portao2;
- new portao3;
- new portao4;
- new portao5;
- new portao6;
- new portao7;
- new portao8;
- new Pickup1;
- new Pickup2;
- new Pickup3;
- new Pickup4;
- new Pickup5;
- new Pickup6;
- new Pickup7;
- new Pickup8;
- forward GateClose();
- forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" [ FS ] Pedagios ");
- print(" Creditos: By Dean ");
- print(" Não Retire os Creditos ");
- print("--------------------------------------\n");
- Create3DTextLabel("Pedágio LS - SF",0xFFFFFFAA, 71.9957,-1534.3894,5.2046,25.0,0);
- Create3DTextLabel("Pedágio SF - LS",0xFFFFFFAA, 59.5030,-1532.9253,5.2139,25.0,0);
- Create3DTextLabel("Pedágio LV - LS",0xFFFFFFAA, 1737.4161,518.6452,28.1503,25.0,0);
- Create3DTextLabel("Pedágio LS - LV",0xFFFFFFAA, 1733.1107,506.8286,28.9694,25.0,0);
- Create3DTextLabel("Pedágio Bayside - SF",0xFFFFFFAA, -2681.8362,1280.4871,55.9456,25.0,0);
- Create3DTextLabel("Pedágio SF - FC",0xFFFFFFAA, -1412.3848,812.9502,47.7167,25.0,0);
- Create3DTextLabel("Pedágio FC - SF",0xFFFFFFAA, -1403.4413,822.1852,47.8172,25.0,0);
- Create3DTextLabel("Pedágio SF - Bayside",0xFFFFFFAA, -2681.8472,1268.6603,55.9456,25.0,0);
- Pickup1 = CreatePickup(1239, 1, 71.9957,-1534.3894,5.2046);
- Pickup2 = CreatePickup(1239, 1, 59.5030,-1532.9253,5.2139);
- Pickup3 = CreatePickup(1239, 1, 1737.4161,518.6452,28.1503);
- Pickup4 = CreatePickup(1239, 1, 1733.1107,506.8286,28.9694);
- Pickup5 = CreatePickup(1239, 1, -2681.8362,1280.4871,55.9456);
- Pickup6 = CreatePickup(1239, 1, -1412.3848,812.9502,47.7167);
- Pickup7 = CreatePickup(1239, 1, -1403.4413,822.1852,47.8172);
- Pickup8 = CreatePickup(1239, 1, -2681.8472,1268.6603,55.9456);
- portao1 = CreateObject(971, 68.328880, -1526.939087, 7.015985, 0.0000, 0.0000, 87.6625);
- portao2 = CreateObject(971, 67.909485, -1541.125732, 7.076734, 0.0000, 0.0000, 87.6625);
- portao3 = CreateObject(971, 1728.5638427734, 512.89862060547, 31.260879516602, 0, 0, 341.99890136719);
- portao4 = CreateObject(971, 1740.6317138672, 509.00531005859, 31.1568775177, 0, 0, 341.99340820313);
- portao5 = CreateObject(971, -1412.0205078125, 822.9267578125, 49.750095367432, 0, 0, 317.99926757813);
- portao6 = CreateObject(971, -1402.5791015625, 813.30859375, 49.656631469727, 0, 0, 315.99975585938);
- portao7 = CreateObject(971, -2685.9326171875, 1275.3663330078, 56.574485778809, 0, 0, 0);
- portao8 = CreateObject(971, -2677.2409667969, 1275.3305664063, 56.574516296387, 0, 0, 0);
- //objects portao1 e 2
- CreateObject(7033, 65.927567, -1533.642700, 8.355223, 0.8594, 0.0000, 83.3654);
- CreateObject(3877, 67.976868, -1531.783813, 5.551031, 0.0000, 0.0000, 353.9839);
- CreateObject(3877, 68.430626, -1522.038086, 5.578691, 0.0000, 0.0000, 356.5623);
- CreateObject(3877, 67.889786, -1545.917603, 5.697998, 0.0000, 0.0000, 356.5623);
- CreateObject(3877, 68.519646, -1536.313232, 5.706335, 0.0000, 0.0000, 354.8434);
- CreateObject(3864, 75.874809, -1534.855957, 10.345168, 0.0000, 0.0000, 173.5018);
- CreateObject(3864, 56.145210, -1532.551636, 10.351826, 0.0000, 0.0000, 353.9837);
- CreateObject(3877, 28.482025, -1527.640137, 5.680993, 0.0000, 0.0000, 351.4056);
- CreateObject(3877, 19.857996, -1525.820435, 5.018308, 0.0000, 0.0000, 348.8273);
- CreateObject(3877, 13.395845, -1524.428955, 4.614534, 0.0000, 0.0000, 348.8273);
- //objects portao3 e 4
- CreateObject(7033, 1735.2945556641, 512.66381835938, 31.834371566772, 0, 0, 339.99938964844);
- CreateObject(987, 1722.28125, 511.55117797852, 27.720676422119, 0, 4, 71.998901367188);
- CreateObject(987, 1726.1037597656, 523.12225341797, 26.624887466431, 0, 0, 113.99719238281);
- CreateObject(987, 1748.6484375, 514.7958984375, 27.250556945801, 0, 0, 249.99389648438);
- CreateObject(987, 1758.2679443359, 520.96795654297, 26.054347991943, 0, 356, 217.98910522461);
- CreateObject(987, 1711.2819824219, 503.29724121094, 28.032232284546, 0, 0, 31.997680664063);
- CreateObject(987, 1744.3728027344, 502.07650756836, 28.077571868896, 0, 0, 291.99621582031);
- CreateObject(1237, 1723.8087158203, 514.22821044922, 27.671068191528, 0, 0, 0);
- CreateObject(1237, 1745.0375976563, 506.91006469727, 27.669532775879, 0, 0, 0);
- //objects portao5 e 6
- CreateObject(7033, -1407.8485107422, 817.6396484375, 50.383720397949, 0, 0, 316);
- CreateObject(987, -1420.9528808594, 821.13604736328, 45.69006729126, 0, 0, 48);
- CreateObject(987, -1395.7629394531, 813.71850585938, 46.307685852051, 0, 0, 227.99877929688);
- CreateObject(978, -1415.3200683594, 834.03137207031, 47.445243835449, 0, 0, 318);
- CreateObject(978, -1423.9465332031, 826.30639648438, 47.367275238037, 0, 0, 317.99926757813);
- CreateObject(978, -1391.2713623047, 811.06884765625, 47.264514923096, 0, 0, 318);
- CreateObject(978, -1399.4782714844, 801.5634765625, 47.339115142822, 0, 0, 317.99926757813);
- //objects portao7 e 8
- CreateObject(987, -2672.3884277344, 1270.6895751953, 54.004661560059, 0, 0, 322.25);
- CreateObject(987, -2699.5107421875, 1262.8109130859, 53.97966003418, 0, 0, 41.745483398438);
- print("\n--------------------------------------");
- print(" [ FS ] Pedagios ");
- print(" Creditos: By Dean ");
- print(" Não Retire os Creditos ");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid) { // Início do public
- if(pickupid == Pickup1) { // Pickup definido
- SendClientMessage(playerid, 0xADFF2FAA, "~~~~~~~~~~~~~~~~~~~~~~~ Pedágio ~~~~~~~~~~~~~~~~~~~~~~~~~~");
- SendClientMessage(playerid, 0xFFFFFFAA, "Se você estiver indo de LS para SF use /plssf");
- SendClientMessage(playerid, 0xFFFFFFAA, "Se você estiver indo de SF para LS use /psfls");
- SendClientMessage(playerid, 0xFFFFFFAA, "A passagem custa 15$ reais tenha uma boa viagem.");
- SendClientMessage(playerid, 0xADFF2FAA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- }
- if(pickupid == Pickup2) { // Pickup definido
- SendClientMessage(playerid, 0xADFF2FAA, "~~~~~~~~~~~~~~~~~~~~~~~ Pedágio ~~~~~~~~~~~~~~~~~~~~~~~~~~");
- SendClientMessage(playerid, 0xFFFFFFAA, "Se você estiver indo de SF para LS use /psfls");
- SendClientMessage(playerid, 0xFFFFFFAA, "Se você estiver indo de LS para SF use /plssf");
- SendClientMessage(playerid, 0xFFFFFFAA, "A passagem custa 15$ reais tenha uma boa viagem.");
- SendClientMessage(playerid, 0xADFF2FAA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- }
- if(pickupid == Pickup3) { // Pickup definido
- SendClientMessage(playerid, 0xADFF2FAA, "~~~~~~~~~~~~~~~~~~~~~~~ Pedágio ~~~~~~~~~~~~~~~~~~~~~~~~~~");
- SendClientMessage(playerid, 0xFFFFFFAA, "Se você estiver indo de LV para LS use /plvls");
- SendClientMessage(playerid, 0xFFFFFFAA, "Se você estiver indo de LS para LV use /plslv");
- SendClientMessage(playerid, 0xFFFFFFAA, "A passagem custa 15$ reais tenha uma boa viagem.");
- SendClientMessage(playerid, 0xADFF2FAA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- }
- if(pickupid == Pickup4) { // Pickup definido
- SendClientMessage(playerid, 0xADFF2FAA, "~~~~~~~~~~~~~~~~~~~~~~~ Pedágio ~~~~~~~~~~~~~~~~~~~~~~~~~~");
- SendClientMessage(playerid, 0xFFFFFFAA, "Se você estiver indo de LS para LV use /plslv");
- SendClientMessage(playerid, 0xFFFFFFAA, "Se você estiver indo de LV para LS use /plvls");
- SendClientMessage(playerid, 0xFFFFFFAA, "A passagem custa 15$ reais tenha uma boa viagem.");
- SendClientMessage(playerid, 0xADFF2FAA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- }
- if(pickupid == Pickup5) { // Pickup definido
- SendClientMessage(playerid, 0xADFF2FAA, "~~~~~~~~~~~~~~~~~~~~~~~ Pedágio ~~~~~~~~~~~~~~~~~~~~~~~~~~");
- SendClientMessage(playerid, 0xFFFFFFAA, "Se você estiver indo de Bayside para SF use /pbaysf");
- SendClientMessage(playerid, 0xFFFFFFAA, "Se você estiver indo de SF para Bayside use /psfbay");
- SendClientMessage(playerid, 0xFFFFFFAA, "A passagem custa 15$ reais tenha uma boa viagem.");
- SendClientMessage(playerid, 0xADFF2FAA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- }
- if(pickupid == Pickup6) { // Pickup definido
- SendClientMessage(playerid, 0xADFF2FAA, "~~~~~~~~~~~~~~~~~~~~~~~ Pedágio ~~~~~~~~~~~~~~~~~~~~~~~~~~");
- SendClientMessage(playerid, 0xFFFFFFAA, "Se você estiver indo de SF para FC use /psffc");
- SendClientMessage(playerid, 0xFFFFFFAA, "Se você estiver indo de FC para SF use /pfcsf");
- SendClientMessage(playerid, 0xFFFFFFAA, "A passagem custa 15$ reais tenha uma boa viagem.");
- SendClientMessage(playerid, 0xADFF2FAA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- }
- if(pickupid == Pickup7) { // Pickup definido
- SendClientMessage(playerid, 0xADFF2FAA, "~~~~~~~~~~~~~~~~~~~~~~~ Pedágio ~~~~~~~~~~~~~~~~~~~~~~~~~~");
- SendClientMessage(playerid, 0xFFFFFFAA, "Se você estiver indo de FC para SF use /pfcsf");
- SendClientMessage(playerid, 0xFFFFFFAA, "Se você estiver indo de SF para FC use /psffc");
- SendClientMessage(playerid, 0xFFFFFFAA, "A passagem custa 15$ reais tenha uma boa viagem.");
- SendClientMessage(playerid, 0xADFF2FAA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- }
- if(pickupid == Pickup8) { // Pickup definido
- SendClientMessage(playerid, 0xADFF2FAA, "~~~~~~~~~~~~~~~~~~~~~~~ Pedágio ~~~~~~~~~~~~~~~~~~~~~~~~~~");
- SendClientMessage(playerid, 0xFFFFFFAA, "Se você estiver indo de SF para Bayside use /psfbay");
- SendClientMessage(playerid, 0xFFFFFFAA, "Se você estiver indo de Bayside para SF use /pbaysf");
- SendClientMessage(playerid, 0xFFFFFFAA, "A passagem custa 15$ reais tenha uma boa viagem.");
- SendClientMessage(playerid, 0xADFF2FAA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp(cmdtext, "/psfls", true)==0)
- {
- if(!PlayerToPoint(15.0, playerid, 59.5030,-1532.9253,5.2139))
- {
- SendClientMessage(playerid, 0xAA3333AA, "| INFO | Você não está próximo ao Pedágio.");
- return 1;
- }
- MoveObject(portao2,67.909485, -1541.125732, -0.773268, 5.5);
- SetTimer("GateClose", 2000, 0);
- SendClientMessage(playerid, COLOR_BLUE,"| INFO | Pedagio pago 15$ tenha uma boa viagem e dirija com cuidado.");
- GivePlayerMoney(playerid,-15);
- return 1;
- }
- if (strcmp(cmdtext, "/plssf", true)==0)
- {
- if(!PlayerToPoint(15.0, playerid, 71.9957,-1534.3894,5.2046))
- {
- SendClientMessage(playerid, 0xAA3333AA, "| INFO | Você não está próximo ao Pedágio.");
- return 1;
- }
- MoveObject(portao1,68.328880, -1526.939087, -0.809014, 5.5);
- SetTimer("GateClose", 2000, 0);
- SendClientMessage(playerid, COLOR_BLUE,"| INFO | Pedagio pago 15$ tenha uma boa viagem e dirija com cuidado.");
- GivePlayerMoney(playerid,-15);
- return 1;
- }
- if (strcmp(cmdtext, "/plvls", true)==0)
- {
- if(!PlayerToPoint(15.0, playerid, 1737.4161,518.6452,28.1503))
- {
- SendClientMessage(playerid, 0xAA3333AA, "| INFO | Você não está próximo ao Pedágio.");
- return 1;
- }
- MoveObject(portao3,1728.5638427734, 512.89862060547, -31.260879516602, 5.5);
- SetTimer("GateClose", 2000, 0);
- SendClientMessage(playerid, COLOR_BLUE,"| INFO | Pedagio pago 15$ tenha uma boa viagem e dirija com cuidado.");
- GivePlayerMoney(playerid,-15);
- return 1;
- }
- if (strcmp(cmdtext, "/plslv", true)==0)
- {
- if(!PlayerToPoint(15.0, playerid, 1733.1107,506.8286,28.9694))
- {
- SendClientMessage(playerid, 0xAA3333AA, "| INFO | Você não está próximo ao Pedágio.");
- return 1;
- }
- MoveObject(portao4,1740.6317138672, 509.00531005859, -31.1568775177, 5.5);
- SetTimer("GateClose", 2000, 0);
- SendClientMessage(playerid, COLOR_BLUE,"| INFO | Pedagio pago 15$ tenha uma boa viagem e dirija com cuidado.");
- GivePlayerMoney(playerid,-15);
- return 1;
- }
- if (strcmp(cmdtext, "/pbaysf", true)==0)
- {
- if(!PlayerToPoint(15.0, playerid, -2681.8362,1280.4871,55.9456))
- {
- SendClientMessage(playerid, 0xAA3333AA, "| INFO | Você não está próximo ao Pedágio.");
- return 1;
- }
- MoveObject(portao7,-2685.9326171875, 1275.3663330078, -56.574485778809, 5.5);
- SetTimer("GateClose", 2000, 0);
- SendClientMessage(playerid, COLOR_BLUE,"| INFO | Pedagio pago 15$ tenha uma boa viagem e dirija com cuidado.");
- GivePlayerMoney(playerid,-15);
- return 1;
- }
- if (strcmp(cmdtext, "/psfbay", true)==0)
- {
- if(!PlayerToPoint(15.0, playerid, -2681.8472,1268.6603,55.9456))
- {
- SendClientMessage(playerid, 0xAA3333AA, "| INFO | Você não está próximo ao Pedágio.");
- return 1;
- }
- MoveObject(portao8,-2677.2409667969, 1275.3305664063, -56.574516296387, 5.5);
- SetTimer("GateClose", 2000, 0);
- SendClientMessage(playerid, COLOR_BLUE,"| INFO | Pedagio pago 15$ tenha uma boa viagem e dirija com cuidado.");
- GivePlayerMoney(playerid,-15);
- return 1;
- }
- if (strcmp(cmdtext, "/pfcsf", true)==0)
- {
- if(!PlayerToPoint(15.0, playerid, -1403.4413,822.1852,47.8172))
- {
- SendClientMessage(playerid, 0xAA3333AA, "| INFO | Você não está próximo ao Pedágio.");
- return 1;
- }
- MoveObject(portao5,-1412.0205078125, 822.9267578125, -49.750095367432, 5.5);
- SetTimer("GateClose", 2000, 0);
- SendClientMessage(playerid, COLOR_BLUE,"| INFO | Pedagio pago 15$ tenha uma boa viagem e dirija com cuidado.");
- GivePlayerMoney(playerid,-15);
- return 1;
- }
- if (strcmp(cmdtext, "/psffc", true)==0)
- {
- if(!PlayerToPoint(15.0, playerid, -1412.3848,812.9502,47.7167))
- {
- SendClientMessage(playerid, 0xAA3333AA, "| INFO | Você não está próximo ao Pedágio.");
- return 1;
- }
- MoveObject(portao6,-1402.5791015625, 813.30859375, -49.656631469727, 5.5);
- SetTimer("GateClose", 2000, 0);
- SendClientMessage(playerid, COLOR_BLUE,"| INFO | Pedagio pago 15$ tenha uma boa viagem e dirija com cuidado.");
- GivePlayerMoney(playerid,-15);
- return 1;
- }
- return 0;
- }
- public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- tempposx = (oldposx -x);
- tempposy = (oldposy -y);
- tempposz = (oldposz -z);
- if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- return 1;
- }
- }
- return 0;
- }
- public GateClose()
- {
- MoveObject (portao1,68.328880, -1526.939087, 7.015985, 2.5);
- MoveObject (portao2,67.909485, -1541.125732, 7.076734, 2.5);
- MoveObject (portao3,1728.5638427734, 512.89862060547, 31.260879516602, 2.5);
- MoveObject (portao4,1740.6317138672, 509.00531005859, 31.1568775177, 2.5);
- MoveObject (portao5,-1412.0205078125, 822.9267578125, 49.750095367432, 2.5);
- MoveObject (portao6,-1402.5791015625, 813.30859375, 49.656631469727, 2.5);
- MoveObject (portao7,-2685.9326171875, 1275.3663330078, 56.574485778809, 2.5);
- MoveObject (portao8,-2677.2409667969, 1275.3305664063, 56.574516296387, 2.5);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement