Facebook
From dawid4157, 9 Years ago, written in C++.
Embed
Download Paste or View Raw
Hits: 771
  1. //Skrypt transportu po mieście FortCarson i innych mieścinach San Andeas.
  2. //Praca w kategorii Skrypt PAWN w świątecznym konkursie Pawno.PL
  3. //Autor pracy: Dawid "dawid4157" Ciosek
  4.  
  5. #include <a_samp>
  6. #include <zcmd>
  7.  
  8. #define LOKALIZACJA 1
  9.  
  10. new Text:Black;
  11. new Text:Obwody_czasowe;
  12. new Text:Trwa_przenoszenie;
  13. new Text:Ladowanie;
  14. new Text:Cytat;
  15. new Text:Cytat_autor;
  16. new Text:Komenda1;
  17. new Text:ObwodyNapis;
  18. new Text:Komenda2;
  19. new Text:Zespawnowanie;
  20. new Text:Ramka;
  21. new Text:Komendy;
  22.  
  23. public OnFilterScriptInit(){
  24.         Black = TextDrawCreate(-0.000013, -3.982268, "LD_SPAC:white");
  25.         TextDrawLetterSize(Black, 0.000000, 0.000000);
  26.         TextDrawTextSize(Black, 641.778137, 459.946685);
  27.         TextDrawAlignment(Black, 1);
  28.         TextDrawColor(Black, 255);
  29.         TextDrawSetShadow(Black, 0);
  30.         TextDrawSetOutline(Black, 0);
  31.         TextDrawFont(Black, 4);
  32.  
  33.         Obwody_czasowe = TextDrawCreate(190.666610, 200.106567, "Obwody czasowe wlaczone...");
  34.         TextDrawLetterSize(Obwody_czasowe, 0.449999, 1.600000);
  35.         TextDrawAlignment(Obwody_czasowe, 1);
  36.         TextDrawColor(Obwody_czasowe, 8388863);
  37.         TextDrawSetShadow(Obwody_czasowe, 0);
  38.         TextDrawSetOutline(Obwody_czasowe, 1);
  39.         TextDrawBackgroundColor(Obwody_czasowe, 51);
  40.         TextDrawFont(Obwody_czasowe, 1);
  41.         TextDrawSetProportional(Obwody_czasowe, 1);
  42.  
  43.         Trwa_przenoszenie = TextDrawCreate(190.666610, 223.004425, "Trwa przenoszenie w czasie...");
  44.         TextDrawLetterSize(Trwa_przenoszenie, 0.449999, 1.600000);
  45.         TextDrawAlignment(Trwa_przenoszenie, 1);
  46.         TextDrawColor(Trwa_przenoszenie, 16711935);
  47.         TextDrawSetShadow(Trwa_przenoszenie, 0);
  48.         TextDrawSetOutline(Trwa_przenoszenie, 1);
  49.         TextDrawBackgroundColor(Trwa_przenoszenie, 51);
  50.         TextDrawFont(Trwa_przenoszenie, 1);
  51.         TextDrawSetProportional(Trwa_przenoszenie, 1);
  52.  
  53.         Ladowanie = TextDrawCreate(202.222305, 249.884475, "Przygotuj sie na ladowanie");
  54.         TextDrawLetterSize(Ladowanie, 0.449999, 1.600000);
  55.         TextDrawAlignment(Ladowanie, 1);
  56.         TextDrawColor(Ladowanie, -16776961);
  57.         TextDrawSetShadow(Ladowanie, 0);
  58.         TextDrawSetOutline(Ladowanie, 1);
  59.         TextDrawBackgroundColor(Ladowanie, 51);
  60.         TextDrawFont(Ladowanie, 1);
  61.         TextDrawSetProportional(Ladowanie, 1);
  62.  
  63.         Cytat = TextDrawCreate(112.444427, 273.280029, "'Nigdy lepiej nie wiedziec co czeka Cie w przyszlosci'");
  64.         TextDrawLetterSize(Cytat, 0.449999, 1.600000);
  65.         TextDrawAlignment(Cytat, 1);
  66.         TextDrawColor(Cytat, -1);
  67.         TextDrawSetShadow(Cytat, 0);
  68.         TextDrawSetOutline(Cytat, 1);
  69.         TextDrawBackgroundColor(Cytat, 51);
  70.         TextDrawFont(Cytat, 1);
  71.         TextDrawSetProportional(Cytat, 1);
  72.  
  73.         Cytat_autor = TextDrawCreate(452.444396, 292.693298, "Emmet Brown");
  74.         TextDrawLetterSize(Cytat_autor, 0.449999, 1.600000);
  75.         TextDrawAlignment(Cytat_autor, 1);
  76.         TextDrawColor(Cytat_autor, -1);
  77.         TextDrawSetShadow(Cytat_autor, 0);
  78.         TextDrawSetOutline(Cytat_autor, 1);
  79.         TextDrawBackgroundColor(Cytat_autor, 51);
  80.         TextDrawFont(Cytat_autor, 1);
  81.         TextDrawSetProportional(Cytat_autor, 1);
  82.        
  83.         Komenda1 = TextDrawCreate(11.111334, 318.577423, "/obwody");
  84.         TextDrawLetterSize(Komenda1, 0.264221, 0.992709);
  85.         TextDrawAlignment(Komenda1, 1);
  86.         TextDrawColor(Komenda1, -65281);
  87.         TextDrawSetShadow(Komenda1, 0);
  88.         TextDrawSetOutline(Komenda1, 1);
  89.         TextDrawBackgroundColor(Komenda1, 51);
  90.         TextDrawFont(Komenda1, 1);
  91.         TextDrawSetProportional(Komenda1, 1);
  92.  
  93.         ObwodyNapis = TextDrawCreate(31.666879, 330.528594, "wlaczenie obwodow czasowych");
  94.         TextDrawLetterSize(ObwodyNapis, 0.264221, 0.992709);
  95.         TextDrawAlignment(ObwodyNapis, 1);
  96.         TextDrawColor(ObwodyNapis, -5963521);
  97.         TextDrawSetShadow(ObwodyNapis, 0);
  98.         TextDrawSetOutline(ObwodyNapis, 1);
  99.         TextDrawBackgroundColor(ObwodyNapis, 51);
  100.         TextDrawFont(ObwodyNapis, 1);
  101.         TextDrawSetProportional(ObwodyNapis, 1);
  102.  
  103.         Komenda2 = TextDrawCreate(13.444667, 291.204406, "/pojazd");
  104.         TextDrawLetterSize(Komenda2, 0.264221, 0.992709);
  105.         TextDrawAlignment(Komenda2, 1);
  106.         TextDrawColor(Komenda2, -65281);
  107.         TextDrawSetShadow(Komenda2, 0);
  108.         TextDrawSetOutline(Komenda2, 1);
  109.         TextDrawBackgroundColor(Komenda2, 51);
  110.         TextDrawFont(Komenda2, 1);
  111.         TextDrawSetProportional(Komenda2, 1);
  112.  
  113.         Zespawnowanie = TextDrawCreate(30.889101, 304.150939, "zespawnowanie pojazdu");
  114.         TextDrawLetterSize(Zespawnowanie, 0.264221, 0.992709);
  115.         TextDrawAlignment(Zespawnowanie, 1);
  116.         TextDrawColor(Zespawnowanie, -5963521);
  117.         TextDrawSetShadow(Zespawnowanie, 0);
  118.         TextDrawSetOutline(Zespawnowanie, 1);
  119.         TextDrawBackgroundColor(Zespawnowanie, 51);
  120.         TextDrawFont(Zespawnowanie, 1);
  121.         TextDrawSetProportional(Zespawnowanie, 1);
  122.  
  123.         Ramka = TextDrawCreate(178.444427, 271.295532, "usebox");
  124.         TextDrawLetterSize(Ramka, 0.000000, 9.196422);
  125.         TextDrawTextSize(Ramka, 4.222222, 0.000000);
  126.         TextDrawAlignment(Ramka, 1);
  127.         TextDrawColor(Ramka, 0);
  128.         TextDrawUseBox(Ramka, true);
  129.         TextDrawBoxColor(Ramka, 102);
  130.         TextDrawSetShadow(Ramka, 0);
  131.         TextDrawSetOutline(Ramka, 0);
  132.         TextDrawFont(Ramka, 0);
  133.  
  134.         Komendy = TextDrawCreate(53.777816, 272.284484, "Komendy");
  135.         TextDrawLetterSize(Komendy, 0.449999, 1.600000);
  136.         TextDrawAlignment(Komendy, 1);
  137.         TextDrawColor(Komendy, -1523963137);
  138.         TextDrawSetShadow(Komendy, 0);
  139.         TextDrawSetOutline(Komendy, 1);
  140.         TextDrawBackgroundColor(Komendy, 51);
  141.         TextDrawFont(Komendy, 1);
  142.         TextDrawSetProportional(Komendy, 1);
  143.  
  144.     Komenda1 = TextDrawCreate(12.444667, 303.644226, "/obwody");
  145.         TextDrawLetterSize(Komenda1, 0.264221, 0.992708);
  146.         TextDrawAlignment(Komenda1, 1);
  147.         TextDrawColor(Komenda1, -65281);
  148.         TextDrawSetShadow(Komenda1, 0);
  149.         TextDrawSetOutline(Komenda1, 1);
  150.         TextDrawBackgroundColor(Komenda1, 51);
  151.         TextDrawFont(Komenda1, 1);
  152.         TextDrawSetProportional(Komenda1, 1);
  153.  
  154.         ObwodyNapis = TextDrawCreate(31.666879, 314.102111, "wlaczenie obwodow czasowych");
  155.         TextDrawLetterSize(ObwodyNapis, 0.264221, 0.992708);
  156.         TextDrawAlignment(ObwodyNapis, 1);
  157.         TextDrawColor(ObwodyNapis, -5963521);
  158.         TextDrawSetShadow(ObwodyNapis, 0);
  159.         TextDrawSetOutline(ObwodyNapis, 1);
  160.         TextDrawBackgroundColor(ObwodyNapis, 51);
  161.         TextDrawFont(ObwodyNapis, 1);
  162.         TextDrawSetProportional(ObwodyNapis, 1);
  163.  
  164.         Komenda2 = TextDrawCreate(14.333556, 281.746734, "/pojazd");
  165.         TextDrawLetterSize(Komenda2, 0.264221, 0.992708);
  166.         TextDrawAlignment(Komenda2, 1);
  167.         TextDrawColor(Komenda2, -65281);
  168.         TextDrawSetShadow(Komenda2, 0);
  169.         TextDrawSetOutline(Komenda2, 1);
  170.         TextDrawBackgroundColor(Komenda2, 51);
  171.         TextDrawFont(Komenda2, 1);
  172.         TextDrawSetProportional(Komenda2, 1);
  173.  
  174.         Zespawnowanie = TextDrawCreate(32.666881, 291.706481, "dodatkowy DeLorean");
  175.         TextDrawLetterSize(Zespawnowanie, 0.264221, 0.992708);
  176.         TextDrawAlignment(Zespawnowanie, 1);
  177.         TextDrawColor(Zespawnowanie, -5963521);
  178.         TextDrawSetShadow(Zespawnowanie, 0);
  179.         TextDrawSetOutline(Zespawnowanie, 1);
  180.         TextDrawBackgroundColor(Zespawnowanie, 51);
  181.         TextDrawFont(Zespawnowanie, 1);
  182.         TextDrawSetProportional(Zespawnowanie, 1);
  183.  
  184.         Ramka = TextDrawCreate(179.333312, 254.868896, "usebox");
  185.         TextDrawLetterSize(Ramka, 0.000000, 9.196421);
  186.         TextDrawTextSize(Ramka, 5.111112, 0.000000);
  187.         TextDrawAlignment(Ramka, 1);
  188.         TextDrawColor(Ramka, 0);
  189.         TextDrawUseBox(Ramka, true);
  190.         TextDrawBoxColor(Ramka, 102);
  191.         TextDrawSetShadow(Ramka, 0);
  192.         TextDrawSetOutline(Ramka, 0);
  193.         TextDrawFont(Ramka, 0);
  194.  
  195.         Komendy = TextDrawCreate(54.666706, 254.364593, "Komendy");
  196.         TextDrawLetterSize(Komendy, 0.449999, 1.600000);
  197.         TextDrawAlignment(Komendy, 1);
  198.         TextDrawColor(Komendy, -1523963137);
  199.         TextDrawSetShadow(Komendy, 0);
  200.         TextDrawSetOutline(Komendy, 1);
  201.         TextDrawBackgroundColor(Komendy, 51);
  202.         TextDrawFont(Komendy, 1);
  203.         TextDrawSetProportional(Komendy, 1);
  204.  
  205.     AddStaticVehicle(451,194.5421,1147.9707,14.4441,83.5009,172,149); // pojazd szwagra?
  206. }
  207.  
  208. stock GetPlayerSpeed(playerid) // stock by Michael@Belgium z forum.sa-mp.com
  209. {
  210.         new Float:ST[4];
  211.         if(IsPlayerInAnyVehicle(playerid))
  212.                 GetVehicleVelocity(GetPlayerVehicleID(playerid),ST[0],ST[1],ST[2]);
  213.         else GetPlayerVelocity(playerid,ST[0],ST[1],ST[2]);
  214.         ST[3] = floatsqroot(floatpower(floatabs(ST[0]), 2.0) + floatpower(floatabs(ST[1]), 2.0) + floatpower(floatabs(ST[2]), 2.0)) * 179.28625;
  215.         return floatround(ST[3]);
  216. }
  217.  
  218. forward Teleport(playerid);
  219. public Teleport(playerid){
  220.         TextDrawHideForPlayer(playerid, Black);
  221.         TextDrawHideForPlayer(playerid, Obwody_czasowe);
  222.         TextDrawHideForPlayer(playerid, Trwa_przenoszenie);
  223.         TextDrawHideForPlayer(playerid, Ladowanie);
  224.         TextDrawHideForPlayer(playerid, Cytat);
  225.         TextDrawHideForPlayer(playerid, Cytat_autor);
  226.        
  227.         TextDrawShowForPlayer(playerid, Komenda1);
  228.         TextDrawShowForPlayer(playerid, ObwodyNapis);
  229.         TextDrawShowForPlayer(playerid, Komenda2);
  230.         TextDrawShowForPlayer(playerid, Zespawnowanie);
  231.         TextDrawShowForPlayer(playerid, Ramka);
  232.         TextDrawShowForPlayer(playerid, Komendy);
  233.         TogglePlayerControllable(playerid,1);
  234. }
  235.  
  236. public OnPlayerConnect(playerid){
  237.         SetPVarInt(playerid, "AngelPine", false); // na początku nie ma teleportu
  238.         SetPVarInt(playerid, "Bayside", false); // na początku nie ma teleportu
  239.         SetPVarInt(playerid, "Blueberry", false); // na początku nie ma teleportu
  240.         SetPVarInt(playerid, "Dillimore", false); // na początku nie ma teleportu
  241.         SetPVarInt(playerid, "Elquebrados", false); // na początku nie ma teleportu
  242.         SetPVarInt(playerid, "FortCarson", false); // na początku nie ma teleportu
  243.         SetPVarInt(playerid, "Fortcarsonhotel", false); // na początku nie ma teleportu
  244.         SetPVarInt(playerid, "Fortcarsonosiedle", false); // na początku nie ma teleportu
  245.         SetPVarInt(playerid, "Fortcarsondom", false); // na początku nie ma teleportu
  246.         SetPVarInt(playerid, "Las barrancas", false); // na początku nie ma teleportu
  247.         SetPVarInt(playerid, "Laspayasadas", false); // na początku nie ma teleportu
  248.         SetPVarInt(playerid, "Palominocreek", false); // na początku nie ma teleportu
  249.         SetPVarInt(playerid, "RedCountry", false); // na początku nie ma teleportu
  250.  
  251.         TextDrawShowForPlayer(playerid, Komenda1);
  252.         TextDrawShowForPlayer(playerid, ObwodyNapis);
  253.         TextDrawShowForPlayer(playerid, Komenda2);
  254.         TextDrawShowForPlayer(playerid, Zespawnowanie);
  255.         TextDrawShowForPlayer(playerid, Ramka);
  256.         TextDrawShowForPlayer(playerid, Komendy);
  257.                
  258.         return 1;
  259. }
  260.  
  261. //Możliwość użycia nitro(taki nie znaczny bajer)
  262. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  263. {
  264.         if((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  265.                 AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
  266.         else if ((oldkeys & KEY_FIRE) && !(newkeys & KEY_FIRE) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  267.         RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1010);
  268.         return 1;
  269. }
  270. public OnPlayerSpawn(playerid)
  271. {
  272.         SetPlayerFacingAngle(playerid, 83.5009);
  273.         SetPlayerPos(playerid,194.9335,1136.5905,14.9786);
  274.         SendClientMessage(playerid, 0xFFFF00FF, "Szwagier wywiózł Cię po pijaku, na szczęście okazało się, że jesteś niedaleko FortCarson.");
  275.         SendClientMessage(playerid, 0xFFFF55FF, "Czyżby szwagier zostawił auto i poszedł pieszo? Wejdź do pojazdu i się przekonaj!");
  276.         return 1;
  277. }
  278.  
  279.  
  280. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  281. {
  282.         SendClientMessage(playerid, 0x008B8BFF, "Co prawda nie wiem gdzie jestem ale to wygląda jak DeLorean! Rozpędzę się do 88 kp/h i zobaczę co się stanie.");
  283.         SendClientMessage(playerid, 0xFF0000FF, "Włącz obwody czasowe (/obwody) i wybierz miejsce przeniesienia w czasie.");
  284.         PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  285.         return 1;
  286. }
  287. public OnPlayerUpdate(playerid){
  288.  
  289.         if(GetPVarInt(playerid, "AngelPine")){
  290.                 if(GetPlayerSpeed(playerid) == 141){
  291.                         SendClientMessage(playerid, -1, "[UPDATE]Twoja prędkość = {228B22}88 mp/h");
  292.                         SetTimer("Teleport", 5000, true);
  293.                         TextDrawShowForPlayer(playerid, Black);
  294.                         TextDrawShowForPlayer(playerid, Obwody_czasowe);
  295.                         TextDrawShowForPlayer(playerid, Trwa_przenoszenie);
  296.                         TextDrawShowForPlayer(playerid, Ladowanie);
  297.                         TextDrawShowForPlayer(playerid, Cytat);
  298.                         TextDrawShowForPlayer(playerid, Cytat_autor);
  299.  
  300.                         TextDrawHideForPlayer(playerid, Komenda1);
  301.                         TextDrawHideForPlayer(playerid, ObwodyNapis);
  302.                         TextDrawHideForPlayer(playerid, Komenda2);
  303.                         TextDrawHideForPlayer(playerid, Zespawnowanie);
  304.                         TextDrawHideForPlayer(playerid, Ramka);
  305.                         TextDrawHideForPlayer(playerid, Komendy);
  306.                        
  307.                         if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  308.                             SetPlayerFacingAngle(playerid, 275.1893);
  309.                                 SetVehiclePos(GetPlayerVehicleID(playerid),-2212.3098,-2375.0063,31.1089);
  310.                                 SetVehicleZAngle(GetPlayerVehicleID(playerid),334.2774);
  311.                                 TogglePlayerControllable(playerid,0);
  312.                                 SetPVarInt(playerid, "AngelPine", false);
  313.                         }
  314.                 }
  315.         }
  316.         if(GetPVarInt(playerid, "Bayside")){
  317.                 if(GetPlayerSpeed(playerid) == 141){
  318.                         SendClientMessage(playerid, -1, "[UPDATE]Twoja prędkość = {228B22}88 mp/h");
  319.                         SetTimer("Teleport", 5000, true);
  320.                         TextDrawShowForPlayer(playerid, Black);
  321.                         TextDrawShowForPlayer(playerid, Obwody_czasowe);
  322.                         TextDrawShowForPlayer(playerid, Trwa_przenoszenie);
  323.                         TextDrawShowForPlayer(playerid, Ladowanie);
  324.                         TextDrawShowForPlayer(playerid, Cytat);
  325.                         TextDrawShowForPlayer(playerid, Cytat_autor);
  326.  
  327.                         TextDrawHideForPlayer(playerid, Komenda1);
  328.                         TextDrawHideForPlayer(playerid, ObwodyNapis);
  329.                         TextDrawHideForPlayer(playerid, Komenda2);
  330.                         TextDrawHideForPlayer(playerid, Zespawnowanie);
  331.                         TextDrawHideForPlayer(playerid, Ramka);
  332.                         TextDrawHideForPlayer(playerid, Komendy);
  333.                         if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  334.                                 SetPlayerFacingAngle(playerid, 4.0724);
  335.                                 SetVehiclePos(GetPlayerVehicleID(playerid),-2464.8254,2230.5078,4.5056);
  336.                                 SetVehicleZAngle(GetPlayerVehicleID(playerid),334.2774);
  337.                                 TogglePlayerControllable(playerid,0);
  338.                                 SetPVarInt(playerid, "Bayside", false);
  339.                         }
  340.                 }
  341.         }
  342.         if(GetPVarInt(playerid, "Blueberry")){
  343.                 if(GetPlayerSpeed(playerid) == 141){
  344.                         SendClientMessage(playerid, -1, "[UPDATE]Twoja prędkość = {228B22}88 mp/h");
  345.                         SetTimer("Teleport", 5000, true);
  346.                         TextDrawShowForPlayer(playerid, Black);
  347.                         TextDrawShowForPlayer(playerid, Obwody_czasowe);
  348.                         TextDrawShowForPlayer(playerid, Trwa_przenoszenie);
  349.                         TextDrawShowForPlayer(playerid, Ladowanie);
  350.                         TextDrawShowForPlayer(playerid, Cytat);
  351.                         TextDrawShowForPlayer(playerid, Cytat_autor);
  352.  
  353.                         TextDrawHideForPlayer(playerid, Komenda1);
  354.                         TextDrawHideForPlayer(playerid, ObwodyNapis);
  355.                         TextDrawHideForPlayer(playerid, Komenda2);
  356.                         TextDrawHideForPlayer(playerid, Zespawnowanie);
  357.                         TextDrawHideForPlayer(playerid, Ramka);
  358.                         TextDrawHideForPlayer(playerid, Komendy);
  359.                         if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  360.                             SetPlayerFacingAngle(playerid, 220.2906);
  361.                                 SetVehiclePos(GetPlayerVehicleID(playerid),220.0942,3.6432,2.2288);
  362.                                 SetVehicleZAngle(GetPlayerVehicleID(playerid),334.2774);
  363.                                 TogglePlayerControllable(playerid,0);
  364.                                 SetPVarInt(playerid, "Blueberry", false);
  365.                         }
  366.                 }
  367.         }
  368.         if(GetPVarInt(playerid, "Dillimore")){
  369.                 if(GetPlayerSpeed(playerid) == 141){
  370.                         SendClientMessage(playerid, -1, "[UPDATE]Twoja prędkość = {228B22}88 mp/h");
  371.                         SetTimer("Teleport", 5000, true);
  372.                         TextDrawShowForPlayer(playerid, Black);
  373.                         TextDrawShowForPlayer(playerid, Obwody_czasowe);
  374.                         TextDrawShowForPlayer(playerid, Trwa_przenoszenie);
  375.                         TextDrawShowForPlayer(playerid, Ladowanie);
  376.                         TextDrawShowForPlayer(playerid, Cytat);
  377.                         TextDrawShowForPlayer(playerid, Cytat_autor);
  378.  
  379.                         TextDrawHideForPlayer(playerid, Komenda1);
  380.                         TextDrawHideForPlayer(playerid, ObwodyNapis);
  381.                         TextDrawHideForPlayer(playerid, Komenda2);
  382.                         TextDrawHideForPlayer(playerid, Zespawnowanie);
  383.                         TextDrawHideForPlayer(playerid, Ramka);
  384.                         TextDrawHideForPlayer(playerid, Komendy);
  385.                         if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  386.                             SetPlayerFacingAngle(playerid, 201.2590);
  387.                                 SetVehiclePos(GetPlayerVehicleID(playerid),663.1016,-470.4522,15.9954);
  388.                                 SetVehicleZAngle(GetPlayerVehicleID(playerid),334.2774);
  389.                                 TogglePlayerControllable(playerid,0);
  390.                                 SetPVarInt(playerid, "Dillimore", false);
  391.                         }
  392.                 }
  393.         }
  394.         if(GetPVarInt(playerid, "Elquebrados")){
  395.                 if(GetPlayerSpeed(playerid) == 141){
  396.                         SendClientMessage(playerid, -1, "[UPDATE]Twoja prędkość = {228B22}88 mp/h");
  397.                         SetTimer("Teleport", 5000, true);
  398.                         TextDrawShowForPlayer(playerid, Black);
  399.                         TextDrawShowForPlayer(playerid, Obwody_czasowe);
  400.                         TextDrawShowForPlayer(playerid, Trwa_przenoszenie);
  401.                         TextDrawShowForPlayer(playerid, Ladowanie);
  402.                         TextDrawShowForPlayer(playerid, Cytat);
  403.                         TextDrawShowForPlayer(playerid, Cytat_autor);
  404.  
  405.                         TextDrawHideForPlayer(playerid, Komenda1);
  406.                         TextDrawHideForPlayer(playerid, ObwodyNapis);
  407.                         TextDrawHideForPlayer(playerid, Komenda2);
  408.                         TextDrawHideForPlayer(playerid, Zespawnowanie);
  409.                         TextDrawHideForPlayer(playerid, Ramka);
  410.                         TextDrawHideForPlayer(playerid, Komendy);
  411.                         if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  412.                                 SetPlayerFacingAngle(playerid, 179.4698);
  413.                                 SetVehiclePos(GetPlayerVehicleID(playerid),-1546.6193,2688.0134,55.4968);
  414.                                 SetVehicleZAngle(GetPlayerVehicleID(playerid),334.2774);
  415.                                 TogglePlayerControllable(playerid,0);
  416.                                 SetPVarInt(playerid, "Elquebrados", false);
  417.                         }
  418.                 }
  419.         }
  420.         if(GetPVarInt(playerid, "FortCarson")){
  421.                 if(GetPlayerSpeed(playerid) == 141){
  422.                         SendClientMessage(playerid, -1, "[UPDATE]Twoja prędkość = {228B22}88 mp/h");
  423.                         SetTimer("Teleport", 5000, true);
  424.                         TextDrawShowForPlayer(playerid, Black);
  425.                         TextDrawShowForPlayer(playerid, Obwody_czasowe);
  426.                         TextDrawShowForPlayer(playerid, Trwa_przenoszenie);
  427.                         TextDrawShowForPlayer(playerid, Ladowanie);
  428.                         TextDrawShowForPlayer(playerid, Cytat);
  429.                         TextDrawShowForPlayer(playerid, Cytat_autor);
  430.  
  431.                         TextDrawHideForPlayer(playerid, Komenda1);
  432.                         TextDrawHideForPlayer(playerid, ObwodyNapis);
  433.                         TextDrawHideForPlayer(playerid, Komenda2);
  434.                         TextDrawHideForPlayer(playerid, Zespawnowanie);
  435.                         TextDrawHideForPlayer(playerid, Ramka);
  436.                         TextDrawHideForPlayer(playerid, Komendy);
  437.                         if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  438.                                 SetPlayerFacingAngle(playerid, 181.0005);
  439.                                 SetVehiclePos(GetPlayerVehicleID(playerid),-198.3174,1216.6617,19.4492);
  440.                                 SetVehicleZAngle(GetPlayerVehicleID(playerid),334.2774);
  441.                                 TogglePlayerControllable(playerid,0);
  442.                                 SetPVarInt(playerid, "FortCarson", false);
  443.                         }
  444.                 }
  445.         }
  446.         if(GetPVarInt(playerid, "Fortcarsonhotel")){
  447.                 if(GetPlayerSpeed(playerid) == 141){
  448.                         SendClientMessage(playerid, -1, "[UPDATE]Twoja prędkość = {228B22}88 mp/h");
  449.                         SetTimer("Teleport", 5000, true);
  450.                         TextDrawShowForPlayer(playerid, Black);
  451.                         TextDrawShowForPlayer(playerid, Obwody_czasowe);
  452.                         TextDrawShowForPlayer(playerid, Trwa_przenoszenie);
  453.                         TextDrawShowForPlayer(playerid, Ladowanie);
  454.                         TextDrawShowForPlayer(playerid, Cytat);
  455.                         TextDrawShowForPlayer(playerid, Cytat_autor);
  456.  
  457.                         TextDrawHideForPlayer(playerid, Komenda1);
  458.                         TextDrawHideForPlayer(playerid, ObwodyNapis);
  459.                         TextDrawHideForPlayer(playerid, Komenda2);
  460.                         TextDrawHideForPlayer(playerid, Zespawnowanie);
  461.                         TextDrawHideForPlayer(playerid, Ramka);
  462.                         TextDrawHideForPlayer(playerid, Komendy);
  463.                         if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  464.                                 SetPlayerFacingAngle(playerid, 191.5133);
  465.                                 SetVehiclePos(GetPlayerVehicleID(playerid),1.2907,1210.3022,19.0596);
  466.                                 SetVehicleZAngle(GetPlayerVehicleID(playerid),334.2774);
  467.                                 TogglePlayerControllable(playerid,0);
  468.                                 SetPVarInt(playerid, "Fortcarsonhotel", false);
  469.                         }
  470.                 }
  471.         }
  472.         if(GetPVarInt(playerid, "Fortcarsonosiedle")){
  473.                 if(GetPlayerSpeed(playerid) == 141){
  474.                         SendClientMessage(playerid, -1, "[UPDATE]Twoja prędkość = {228B22}88 mp/h");
  475.                         SetTimer("Teleport", 5000, true);
  476.                         TextDrawShowForPlayer(playerid, Black);
  477.                         TextDrawShowForPlayer(playerid, Obwody_czasowe);
  478.                         TextDrawShowForPlayer(playerid, Trwa_przenoszenie);
  479.                         TextDrawShowForPlayer(playerid, Ladowanie);
  480.                         TextDrawShowForPlayer(playerid, Cytat);
  481.                         TextDrawShowForPlayer(playerid, Cytat_autor);
  482.  
  483.                         TextDrawHideForPlayer(playerid, Komenda1);
  484.                         TextDrawHideForPlayer(playerid, ObwodyNapis);
  485.                         TextDrawHideForPlayer(playerid, Komenda2);
  486.                         TextDrawHideForPlayer(playerid, Zespawnowanie);
  487.                         TextDrawHideForPlayer(playerid, Ramka);
  488.                         TextDrawHideForPlayer(playerid, Komendy);
  489.                         if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  490.                             SetPlayerFacingAngle(playerid, 32.7537);
  491.                                 SetVehiclePos(GetPlayerVehicleID(playerid),-6.3403,1071.7571,19.4607);
  492.                                 SetVehicleZAngle(GetPlayerVehicleID(playerid),334.2774);
  493.                                 TogglePlayerControllable(playerid,0);
  494.                                 SetPVarInt(playerid, "Fortcarsonosiedle", false);
  495.                         }
  496.                 }
  497.         }
  498.         if(GetPVarInt(playerid, "Fortcarsondom")){
  499.                 if(GetPlayerSpeed(playerid) == 141){
  500.                         SendClientMessage(playerid, -1, "[UPDATE]Twoja prędkość = {228B22}88 mp/h");
  501.                         SetTimer("Teleport", 5000, true);
  502.                         TextDrawShowForPlayer(playerid, Black);
  503.                         TextDrawShowForPlayer(playerid, Obwody_czasowe);
  504.                         TextDrawShowForPlayer(playerid, Trwa_przenoszenie);
  505.                         TextDrawShowForPlayer(playerid, Ladowanie);
  506.                         TextDrawShowForPlayer(playerid, Cytat);
  507.                         TextDrawShowForPlayer(playerid, Cytat_autor);
  508.  
  509.                         TextDrawHideForPlayer(playerid, Komenda1);
  510.                         TextDrawHideForPlayer(playerid, ObwodyNapis);
  511.                         TextDrawHideForPlayer(playerid, Komenda2);
  512.                         TextDrawHideForPlayer(playerid, Zespawnowanie);
  513.                         TextDrawHideForPlayer(playerid, Ramka);
  514.                         TextDrawHideForPlayer(playerid, Komendy);
  515.                         if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  516.                                 SetPlayerFacingAngle(playerid, 229.6619);
  517.                                 SetVehiclePos(GetPlayerVehicleID(playerid),-355.1105,1161.4314,19.4496);
  518.                                 SetVehicleZAngle(GetPlayerVehicleID(playerid),334.2774);
  519.                                 TogglePlayerControllable(playerid,0);
  520.                                 SetPVarInt(playerid, "Fortcarsondom", false);
  521.                         }
  522.                 }
  523.         }
  524.         if(GetPVarInt(playerid, "Lasbarrancas")){
  525.                 if(GetPlayerSpeed(playerid) == 141){
  526.                         SendClientMessage(playerid, -1, "[UPDATE]Twoja prędkość = {228B22}88 mp/h");
  527.                         SetTimer("Teleport", 5000, true);
  528.                         TextDrawShowForPlayer(playerid, Black);
  529.                         TextDrawShowForPlayer(playerid, Obwody_czasowe);
  530.                         TextDrawShowForPlayer(playerid, Trwa_przenoszenie);
  531.                         TextDrawShowForPlayer(playerid, Ladowanie);
  532.                         TextDrawShowForPlayer(playerid, Cytat);
  533.                         TextDrawShowForPlayer(playerid, Cytat_autor);
  534.  
  535.                         TextDrawHideForPlayer(playerid, Komenda1);
  536.                         TextDrawHideForPlayer(playerid, ObwodyNapis);
  537.                         TextDrawHideForPlayer(playerid, Komenda2);
  538.                         TextDrawHideForPlayer(playerid, Zespawnowanie);
  539.                         TextDrawHideForPlayer(playerid, Ramka);
  540.                         TextDrawHideForPlayer(playerid, Komendy);
  541.                         if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  542.                             SetPlayerFacingAngle(playerid, 268.6989);
  543.                                 SetVehiclePos(GetPlayerVehicleID(playerid),-841.4644,1615.7539,26.6216);
  544.                                 SetVehicleZAngle(GetPlayerVehicleID(playerid),334.2774);
  545.                                 TogglePlayerControllable(playerid,0);
  546.                                 SetPVarInt(playerid, "Las barrancas", false);
  547.                         }
  548.                 }
  549.         }
  550.         if(GetPVarInt(playerid, "Laspayasadas")){
  551.                 if(GetPlayerSpeed(playerid) == 141){
  552.                         SendClientMessage(playerid, -1, "[UPDATE]Twoja prędkość = {228B22}88 mp/h");
  553.                         SetTimer("Teleport", 5000, true);
  554.                         TextDrawShowForPlayer(playerid, Black);
  555.                         TextDrawShowForPlayer(playerid, Obwody_czasowe);
  556.                         TextDrawShowForPlayer(playerid, Trwa_przenoszenie);
  557.                         TextDrawShowForPlayer(playerid, Ladowanie);
  558.                         TextDrawShowForPlayer(playerid, Cytat);
  559.                         TextDrawShowForPlayer(playerid, Cytat_autor);
  560.  
  561.                         TextDrawHideForPlayer(playerid, Komenda1);
  562.                         TextDrawHideForPlayer(playerid, ObwodyNapis);
  563.                         TextDrawHideForPlayer(playerid, Komenda2);
  564.                         TextDrawHideForPlayer(playerid, Zespawnowanie);
  565.                         TextDrawHideForPlayer(playerid, Ramka);
  566.                         TextDrawHideForPlayer(playerid, Komendy);
  567.                         if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  568.                             SetPlayerFacingAngle(playerid, 268.3767);
  569.                                 SetVehiclePos(GetPlayerVehicleID(playerid),-315.2237,2703.9380,62.1974);
  570.                                 SetVehicleZAngle(GetPlayerVehicleID(playerid),334.2774);
  571.                                 TogglePlayerControllable(playerid,0);
  572.                                 SetPVarInt(playerid, "Laspayasadas", false);
  573.                         }
  574.                 }
  575.         }
  576.         if(GetPVarInt(playerid, "Palominocreek")){
  577.                 if(GetPlayerSpeed(playerid) == 141){
  578.                         SendClientMessage(playerid, -1, "[UPDATE]Twoja prędkość = {228B22}88 mp/h");
  579.                         SetTimer("Teleport", 5000, true);
  580.                         TextDrawShowForPlayer(playerid, Black);
  581.                         TextDrawShowForPlayer(playerid, Obwody_czasowe);
  582.                         TextDrawShowForPlayer(playerid, Trwa_przenoszenie);
  583.                         TextDrawShowForPlayer(playerid, Ladowanie);
  584.                         TextDrawShowForPlayer(playerid, Cytat);
  585.                         TextDrawShowForPlayer(playerid, Cytat_autor);
  586.  
  587.                         TextDrawHideForPlayer(playerid, Komenda1);
  588.                         TextDrawHideForPlayer(playerid, ObwodyNapis);
  589.                         TextDrawHideForPlayer(playerid, Komenda2);
  590.                         TextDrawHideForPlayer(playerid, Zespawnowanie);
  591.                         TextDrawHideForPlayer(playerid, Ramka);
  592.                         TextDrawHideForPlayer(playerid, Komendy);
  593.                         if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  594.                             SetPlayerFacingAngle(playerid, 325.5541);
  595.                                 SetVehiclePos(GetPlayerVehicleID(playerid),2457.2439,-17.9912,26.1262);
  596.                                 SetVehicleZAngle(GetPlayerVehicleID(playerid),334.2774);
  597.                                 TogglePlayerControllable(playerid,0);
  598.                                 SetPVarInt(playerid, "Palominocreek", false);
  599.                         }
  600.                 }
  601.         }
  602.         if(GetPVarInt(playerid, "RedCountry")){
  603.                 if(GetPlayerSpeed(playerid) == 141){
  604.                         SendClientMessage(playerid, -1, "[UPDATE]Twoja prędkość = {228B22}88 mp/h");
  605.                         SetTimer("Teleport", 5000, true);
  606.                         TextDrawShowForPlayer(playerid, Black);
  607.                         TextDrawShowForPlayer(playerid, Obwody_czasowe);
  608.                         TextDrawShowForPlayer(playerid, Trwa_przenoszenie);
  609.                         TextDrawShowForPlayer(playerid, Ladowanie);
  610.                         TextDrawShowForPlayer(playerid, Cytat);
  611.                         TextDrawShowForPlayer(playerid, Cytat_autor);
  612.                        
  613.                         TextDrawHideForPlayer(playerid, Komenda1);
  614.                         TextDrawHideForPlayer(playerid, ObwodyNapis);
  615.                         TextDrawHideForPlayer(playerid, Komenda2);
  616.                         TextDrawHideForPlayer(playerid, Zespawnowanie);
  617.                         TextDrawHideForPlayer(playerid, Ramka);
  618.                         TextDrawHideForPlayer(playerid, Komendy);
  619.                         if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
  620.                             SetPlayerFacingAngle(playerid, 178.4062);
  621.                                 SetVehiclePos(GetPlayerVehicleID(playerid),-199.3828,1215.6788,19.449);
  622.                                 SetVehicleZAngle(GetPlayerVehicleID(playerid),334.2774);
  623.                                 TogglePlayerControllable(playerid,0);
  624.                                 SetPVarInt(playerid, "RedCountry", false);
  625.                         }
  626.                 }
  627.         }
  628.  
  629. }
  630.  
  631. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  632. {
  633.         if(dialogid == LOKALIZACJA)
  634.         {
  635.                 if(response == 1)
  636.                         switch(listitem)
  637.                 {
  638.                         case 0:
  639.                         {
  640.                                 SendClientMessage(playerid, -1, "Wybrałeś teleport do {FF00FF}Angel Pine. {FFFFFF}Rozpędź się do 88 mil/h aby się tam przenieść!");
  641.                                 SetPVarInt(playerid, "AngelPine", true);
  642.                                 return 1;
  643.                         }
  644.                         case 1:
  645.                         {
  646.                                 SendClientMessage(playerid, -1, "Wybrałeś teleport do {FF00FF}Bayside. {FFFFFF}Rozpędź się do 88 mil/h aby się tam przenieść!");
  647.                                 SetPVarInt(playerid, "Bayside", true);
  648.                                 return 1;
  649.                         }
  650.                         case 2:
  651.                         {
  652.                                 SendClientMessage(playerid, -1, "Wybrałeś teleport do {FF00FF}Blueberry. {FFFFFF}Rozpędź się do 88 mil/h aby się tam przenieść!");
  653.                                 SetPVarInt(playerid, "Blueberry", true);
  654.                                 return 1;
  655.                         }
  656.                         case 3:
  657.                         {
  658.                                 SendClientMessage(playerid, -1, "Wybrałeś teleport do {FF00FF}Dillimore. {FFFFFF}Rozpędź się do 88 mil/h aby się tam przenieść!");
  659.                                 SetPVarInt(playerid, "Dillimore", true);
  660.                                 return 1;
  661.                         }
  662.                         case 4:
  663.                         {
  664.                                 SendClientMessage(playerid, -1, "Wybrałeś teleport do {FF00FF}El quebrados. {FFFFFF}Rozpędź się do 88 mil/h aby się tam przenieść!");
  665.                                 SetPVarInt(playerid, "Elquebrados", true);
  666.                                 return 1;
  667.                         }
  668.                         case 5:
  669.                         {
  670.                                 SendClientMessage(playerid, -1, "Wybrałeś teleport do {FF00FF}Fort Carson. {FFFFFF}Rozpędź się do 88 mil/h aby się tam przenieść!");
  671.                                 SetPVarInt(playerid, "FortCarson", true);
  672.                                 return 1;
  673.                         }
  674.                         case 6:
  675.                         {
  676.                                 SendClientMessage(playerid, -1, "Wybrałeś teleport do {FF00FF}Fort carson - hotel. {FFFFFF}Rozpędź się do 88 mil/h aby się tam przenieść!");
  677.                                 SetPVarInt(playerid, "Fortcarsonhotel", true);
  678.                                 return 1;
  679.                         }
  680.                         case 7:
  681.                         {
  682.                                 SendClientMessage(playerid, -1, "Wybrałeś teleport do {FF00FF}Fort carson - osiedle. {FFFFFF}Rozpędź się do 88 mil/h aby się tam przenieść!");
  683.                                 SetPVarInt(playerid, "Fortcarsonosiedle", true);
  684.                                 return 1;
  685.                         }
  686.                         case 8:
  687.                         {
  688.                                 SendClientMessage(playerid, -1, "Wybrałeś teleport do {FF00FF}Fort carson - mój dom. {FFFFFF}Rozpędź się do 88 mil/h aby się tam przenieść!");
  689.                                 SetPVarInt(playerid, "Fortcarsondom", true);
  690.                                 return 1;
  691.                         }
  692.                         case 9:
  693.                         {
  694.                                 SendClientMessage(playerid, -1, "Wybrałeś teleport do {FF00FF}Las barrancas. {FFFFFF}Rozpędź się do 88 mil/h aby się tam przenieść!");
  695.                                 SetPVarInt(playerid, "Lasbarrancas", true);
  696.                                 return 1;
  697.                         }
  698.                         case 10:
  699.                         {
  700.                                 SendClientMessage(playerid, -1, "Wybrałeś teleport do {FF00FF}Las payasadas. {FFFFFF}Rozpędź się do 88 mil/h aby się tam przenieść!");
  701.                                 SetPVarInt(playerid, "Laspayasadas", true);
  702.                                 return 1;
  703.                         }
  704.                         case 11:
  705.                         {
  706.                                 SendClientMessage(playerid, -1, "Wybrałeś teleport do {FF00FF}Palomino creek. {FFFFFF}Rozpędź się do 88 mil/h aby się tam przenieść!");
  707.                                 SetPVarInt(playerid, "Palominocreek", true);
  708.                                 return 1;
  709.                         }
  710.                         case 12:
  711.                         {
  712.                                 SendClientMessage(playerid, -1, "Wybrałeś teleport do {FF00FF}Red Country. {FFFFFF}Rozpędź się do 88 mil/h aby się tam przenieść!");
  713.                                 SetPVarInt(playerid, "RedCountry", true);
  714.                                 return 1;
  715.                         }
  716.                 }
  717.                 else
  718.                         SendClientMessage(playerid, 0xB0B0B0AA, "Anulowałeś...");
  719.                 return 1;
  720.         }
  721.         return 0;
  722. }
  723.  
  724. CMD:obwody(playerid, params[])
  725. {
  726.         if(GetPlayerState(playerid) !=PLAYER_STATE_DRIVER)
  727.                 return SendClientMessage(playerid, 0x00CCAAFF, "{00CCAA}Musisz by{00BBAA}ć w pojeździe, {00AAAA}aby użyć te{0099AA}j kome{0088AA}ndy.");
  728.         ShowPlayerDialog(playerid,LOKALIZACJA, DIALOG_STYLE_LIST, "{99FF00}Wybierz lokalizację", "{FFFFFF}Angel pine\nBayside\nBlueberry\nDillimore\nEl quebrados\n{FF0000}Fort carson\n{FF0000}Fort carson - hotel\n{FF0000}Fort carson - osiedle\n{FF0000}Fort carson - mój dom\n{FFFFFF}Las barrancas\nLas payasadas\nPalomino creek\nRed country", "OK","Anuluj");
  729.         return 1;
  730. }
  731.  
  732. CMD:pojazd(playerid, params[])
  733. {
  734.         if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
  735.                 return SendClientMessage(playerid, 0x00CCAAFF, "{00CCAA}Nie możesz{00BBAA} spawnować {00AAAA}pojazdów{0099AA} będąc w{0088AA} pojaździe!");
  736.         new vehicleid;
  737.         new Float:X,Float:Y,Float:Z,Float:Angle;
  738.         GetPlayerPos(playerid,X,Y,Z);
  739.         GetPlayerFacingAngle(playerid,Angle);
  740.         GetPlayerVehicleID(playerid);
  741.         vehicleid=CreateVehicle(451,X,Y,Z,Angle,random(255), random(255),600);
  742.         PutPlayerInVehicle(playerid, vehicleid, 0);
  743.         SendClientMessage(playerid, 0xFF0000FF, "Zespawnowałeś sobie pojazd Turismo a`la DeLorean.");
  744.         return 1;
  745. }
  746.