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