Advertisement
Guest User

Gamemode

a guest
Aug 10th, 2019
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 116.73 KB | None | 0 0
  1. /*======> DEFINES <======*/
  2. #define COLOR_WHITE 0xFFFFFFAA
  3. #define COLOR_LOCALMSG 0xEC5413AA
  4. #define COLOR_BLUE 0x0000FFAA
  5. #define COLOR_AQUA 0x00FFFFAA
  6. #define COLOR_ADMINCMD 0xF97804FF
  7. #define COLOR_ADMINDUTY 0x007E96F6
  8. #define COLOR_NOTLOGGED 0x00000000
  9. #define COLOR_GRAD1 0xB4B5B7FF
  10. #define COLOR_GRAD2 0xBFC0C2FF
  11. #define COLOR_MONEYBAR 0x005800FF
  12. #define COLOR_GRAD3 0xCBCCCEFF
  13. #define COLOR_GRAD4 0xD8D8D8FF
  14. #define COLOR_GRAD5 0xE3E3E3FF
  15. #define COLOR_GRAD6 0xF0F0F0FF
  16. #define COLOR_GREY 0xAFAFAFAA
  17. #define COLOR_GREEN 0x33AA33AA
  18. #define COLOR_RED 0xA10000AA
  19. #define COLOR_DARKRED 0xCD000000
  20. #define COLOR_ANTICHEAT 0xAA3333AA
  21. #define COLOR_LIGHTRED 0xFF6347AA
  22. #define COLOR_LIGHTBLUE 0x33CCFFAA
  23. #define COLOR_LIGHTGREEN 0x9ACD32AA
  24. #define COLOR_LIGHTRED 0xFF6347AA
  25. #define COLOR_LIGHTBLUE 0x33CCFFAA
  26. #define COLOR_LIGHTBLUE2 0x0080FFAA
  27. #define COLOR_LIGHTGREEN 0x9ACD32AA
  28. #define COLOR_LIGHTORANGE 0xFF8000FF
  29. #define COLOR_DARKBROWN 0xB36C42FF
  30. #define COLOR_MEDIUMBLUE 0x1ED5C7FF
  31. #define COLOR_LIGHTYELLOW 0xE0E377AA
  32. #define COLOR_LIGHTYELLOW2 0xE0EA64AA
  33. #define COLOR_LIGHTYELLOW3 0xFF6347AA
  34. #define COLOR_DARKPURPLE 0x5F56F8AA
  35. #define COLOR_YELLOW 0xFFFF00AA
  36. #define COLOR_YELLOW2 0xF5DEB3AA
  37. #define COLOR_WHITE 0xFFFFFFAA
  38. #define COLOR_FADE1 0xE6E6E6E6
  39. #define COLOR_FADE2 0xC8C8C8C8
  40. #define COLOR_FADE3 0xAAAAAAAA
  41. #define COLOR_FADE4 0x8C8C8C8C
  42. #define COLOR_FADE5 0x6E6E6E6E
  43. #define COLOR_PURPLE 0xC2A2DAAA
  44. #define COLOR_DBLUE 0x2641FEAA
  45. #define COLOR_ALLDEPT 0xFF8282AA
  46. #define COLOR_NEWS 0xFFA500AA
  47. #define COLOR_OOC 0xE0FFFFAA
  48. #define COLOR_NEWOOC 0x0080FFAA
  49. #define DIALOG_BANIDO 9001
  50. #define DIALOG_ADMINS 9000
  51. #define DIALOG_AHELP 9002
  52. #define NUM_FERRIS_CAGES 10
  53. #define FERRIS_WHEEL_ID 18877
  54. #define FERRIS_CAGE_ID 18879
  55. #define FERRIS_BASE_ID 18878
  56. #define FERRIS_DRAW_DISTANCE 300.0
  57. #define FERRIS_WHEEL_SPEED 0.01
  58. #define FERRIS_WHEEL_Z_ANGLE -90.0
  59. #define ELEVATOR_SPEED      (5.0)
  60. #define DOORS_SPEED         (5.0)  
  61. #define ELEVATOR_WAIT_TIME  (5000)  
  62. #define DIALOG_ID           (874)
  63. #define X_DOOR_CLOSED       (1786.627685)
  64. #define X_DOOR_R_OPENED     (1785.027685)
  65. #define X_DOOR_L_OPENED     (1788.227685)
  66. #define GROUND_Z_COORD      (14.511476)
  67. #define ELEVATOR_OFFSET     (0.059523)
  68. #define ELEVATOR_STATE_IDLE     (0)
  69. #define ELEVATOR_STATE_WAITING  (1)
  70. #define ELEVATOR_STATE_MOVING   (2)
  71. #define INVALID_FLOOR           (-1)
  72. #define DIALOG_REGISTER 1
  73. #define DIALOG_LOGIN 2
  74. /*======> DEFINES <======*/
  75.  
  76. /*======> INCLUDES <======*/
  77. #include <a_samp>
  78. #include <a_actor>
  79. #include <zcmd>
  80. #include <streamer>
  81. #include <sscanf2>
  82. #include <progress>
  83. #include <foreach>
  84. #include <dudb>
  85. #include <dini>
  86. #include <YSI\y_ini>
  87. #include <samp_drp>
  88. #include <rgb>
  89. #include <dfile>
  90. #include "../include/gl_common.inc"
  91. #include <dof2>
  92. /*======> INCLUDES <======*/
  93.  
  94. /*======> VARIAVEIS <======*/
  95. new veiculo1;
  96. new veiculo2;
  97. new veiculo3;
  98. new veiculo4;
  99. new veiculo5;
  100. new veiculo6;
  101. new veiculo7;
  102.  
  103. new Text3D:txtveiculo1;
  104. new Text3D:txtveiculo2;
  105. new Text3D:txtveiculo3;
  106. new Text3D:txtveiculo4;
  107. new Text3D:txtveiculo5;
  108. new Text3D:txtveiculo6;
  109. new Text3D:txtveiculo7;
  110.  
  111. new taxi1;
  112. new taxi2;
  113. new taxi3;
  114.  
  115. new Text3D:taxivip1;
  116. new Text3D:taxivip2;
  117. new Text3D:taxivip3;
  118.  
  119. new Text:TDEditor_TD[3];
  120.  
  121. new Text:textVelocimetro[5];
  122.  
  123. // (Player Textdraws velocimetro)
  124. new PlayerText:textPlayerVelocimetro[4][MAX_PLAYERS];
  125.  
  126. // (Vendo o velocimetro ou não)
  127. new bool:PlayerVelocimetro[MAX_PLAYERS];
  128.  
  129. // (Timer velocimetro)
  130. new PlayerVelocimetroTimer[MAX_PLAYERS];
  131.  
  132. stock Float:GetVehicleHealthEx(vehicleid)
  133. {
  134.         new Float:health;
  135.         GetVehicleHealth(vehicleid, health);
  136.  
  137.         if ( health > 900.0) {
  138.                 return health / 10.0;
  139.         }
  140.         else return ( health / 10.0 )-(24);
  141. }
  142.  
  143.  
  144. new VehicleNames[212][] =
  145. {
  146.     {"Landstalker"},{"Bravura"},{"Buffalo"},{"Linerunner"},{"Perrenial"},{"Sentinel"},{"Dumper"},
  147.     {"Firetruck"},{"Trashmaster"},{"Stretch"},{"Manana"},{"Infernus"},{"Voodoo"},{"Pony"},{"Mule"},
  148.     {"Cheetah"},{"Ambulance"},{"Leviathan"},{"Moonbeam"},{"Esperanto"},{"Taxi"},{"Washington"},
  149.     {"Bobcat"},{"Mr Whoopee"},{"BF Injection"},{"Hunter"},{"Premier"},{"Enforcer"},{"Securicar"},
  150.     {"Banshee"},{"Predator"},{"Bus"},{"Rhino"},{"Barracks"},{"Hotknife"},{"Trailer 1"},{"Previon"},
  151.     {"Coach"},{"Cabbie"},{"Stallion"},{"Rumpo"},{"RC Bandit"},{"Romero"},{"Packer"},{"Monster"},
  152.     {"Admiral"},{"Squalo"},{"Seasparrow"},{"Pizzaboy"},{"Tram"},{"Trailer 2"},{"Turismo"},
  153.     {"Speeder"},{"Reefer"},{"Tropic"},{"Flatbed"},{"Yankee"},{"Caddy"},{"Solair"},{"Berkley's RC Van"},
  154.     {"Skimmer"},{"PCJ-600"},{"Faggio"},{"Freeway"},{"RC Baron"},{"RC Raider"},{"Glendale"},{"Oceanic"},
  155.     {"Sanchez"},{"Sparrow"},{"Patriot"},{"Quad"},{"Coastguard"},{"Dinghy"},{"Hermes"},{"Sabre"},
  156.     {"Rustler"},{"ZR-350"},{"Walton"},{"Regina"},{"Comet"},{"BMX"},{"Burrito"},{"Camper"},{"Marquis"},
  157.     {"Baggage"},{"Dozer"},{"Maverick"},{"News Chopper"},{"Rancher"},{"FBI Rancher"},{"Virgo"},{"Greenwood"},
  158.     {"Jetmax"},{"Hotring"},{"Sandking"},{"Blista Compact"},{"Police Maverick"},{"Boxville"},{"Benson"},
  159.     {"Mesa"},{"RC Goblin"},{"Hotring Racer A"},{"Hotring Racer B"},{"Bloodring Banger"},{"Rancher"},
  160.     {"Super GT"},{"Elegant"},{"Journey"},{"Bike"},{"Mountain Bike"},{"Beagle"},{"Cropdust"},{"Stunt"},
  161.     {"Tanker"}, {"Roadtrain"},{"Nebula"},{"Majestic"},{"Buccaneer"},{"Shamal"},{"Hydra"},{"FCR-900"},
  162.     {"NRG-500"},{"HPV1000"},{"Cement Truck"},{"Tow Truck"},{"Fortune"},{"Cadrona"},{"FBI Truck"},
  163.     {"Willard"},{"Forklift"},{"Tractor"},{"Combine"},{"Feltzer"},{"Remington"},{"Slamvan"},
  164.     {"Blade"},{"Freight"},{"Streak"},{"Vortex"},{"Vincent"},{"Bullet"},{"Clover"},{"Sadler"},
  165.     {"Firetruck LA"},{"Hustler"},{"Intruder"},{"Primo"},{"Cargobob"},{"Tampa"},{"Sunrise"},{"Merit"},
  166.     {"Utility"},{"Nevada"},{"Yosemite"},{"Windsor"},{"Monster A"},{"Monster B"},{"Uranus"},{"Jester"},
  167.     {"Sultan"},{"Stratum"},{"Elegy"},{"Raindance"},{"RC Tiger"},{"Flash"},{"Tahoma"},{"Savanna"},
  168.     {"Bandito"},{"Freight Flat"},{"Streak Carriage"},{"Kart"},{"Mower"},{"Duneride"},{"Sweeper"},
  169.     {"Broadway"},{"Tornado"},{"AT-400"},{"DFT-30"},{"Huntley"},{"Stafford"},{"BF-400"},{"Newsvan"},
  170.     {"Tug"},{"Trailer 3"},{"Emperor"},{"Wayfarer"},{"Euros"},{"Hotdog"},{"Club"},{"Freight Carriage"},
  171.     {"Trailer 3"},{"Andromada"},{"Dodo"},{"RC Cam"},{"Launch"},{"Police Car (LSPD)"},{"Police Car (SFPD)"},
  172.     {"Police Car (LVPD)"},{"Police Ranger"},{"Picador"},{"S.W.A.T. Van"},{"Alpha"},{"Phoenix"},{"Glendale"},
  173.     {"Sadler"},{"Luggage Trailer A"},{"Luggage Trailer B"},{"Stair Trailer"},{"Boxville"},{"Farm Plow"},
  174.     {"Utility Trailer"}
  175. };
  176.  
  177. new pickupvida;
  178.  
  179. new tmpobjid;
  180.  
  181. new RandomMSG[][] =
  182. {
  183.     "{F5A80F}[Server] Suspeita de alguem usando cheater? use /report",
  184.     "{F5A80F}[Server] Viu algum bug ou erro? /report"
  185. };
  186.  
  187. new XP[MAX_PLAYERS];
  188.  
  189. new Float:gFerrisOrigin[3] = {832.8393, -2046.1990, 27.0900};
  190. new Float:gFerrisCageOffsets[NUM_FERRIS_CAGES][3] = {
  191. {0.0699, 0.0600, -11.7500},
  192. {-6.9100, -0.0899, -9.5000},
  193. {11.1600, 0.0000, -3.6300},
  194. {-11.1600, -0.0399, 3.6499},
  195. {-6.9100, -0.0899, 9.4799},
  196. {0.0699, 0.0600, 11.7500},
  197. {6.9599, 0.0100, -9.5000},
  198. {-11.1600, -0.0399, -3.6300},
  199. {11.1600, 0.0000, 3.6499},
  200. {7.0399, -0.0200, 9.3600}
  201. };
  202. new gFerrisWheel;
  203. new gFerrisBase;
  204. new gFerrisCages[NUM_FERRIS_CAGES];
  205.  
  206. new Float:gCurrentTargetYAngle = 0.0;
  207. new gWheelTransAlternate = 0;
  208.  
  209. static FloorNames[21][] =
  210. {
  211.     "Terreo",
  212.     "Primeiro",
  213.     "Segundo",
  214.     "Terceiro",
  215.     "Quarto",
  216.     "Quinto",
  217.     "Sexto",
  218.     "Setimo",
  219.     "Oitavo",
  220.     "Nono",
  221.     "Decimo",
  222.     "Decimo Primeiro",
  223.     "Decimo Segundo",
  224.     "Decimo Terceiro",
  225.     "Decimo Quarto",
  226.     "Decimo Quinto",
  227.     "Decimo Sexto",
  228.     "Decimo Setimo",
  229.     "Decimo Oitavo",
  230.     "Decimo Nono",
  231.     "Ultimo Andar!"
  232. };
  233.  
  234. static Float:FloorZOffsets[21] =
  235. {
  236.     0.0,        // 0.0,
  237.     8.5479,     // 8.5479,
  238.     13.99945,   // 8.5479 + (5.45155 * 1.0),
  239.     19.45100,   // 8.5479 + (5.45155 * 2.0),
  240.     24.90255,   // 8.5479 + (5.45155 * 3.0),
  241.     30.35410,   // 8.5479 + (5.45155 * 4.0),
  242.     35.80565,   // 8.5479 + (5.45155 * 5.0),
  243.     41.25720,   // 8.5479 + (5.45155 * 6.0),
  244.     46.70875,   // 8.5479 + (5.45155 * 7.0),
  245.     52.16030,   // 8.5479 + (5.45155 * 8.0),
  246.     57.61185,   // 8.5479 + (5.45155 * 9.0),
  247.     63.06340,   // 8.5479 + (5.45155 * 10.0),
  248.     68.51495,   // 8.5479 + (5.45155 * 11.0),
  249.     73.96650,   // 8.5479 + (5.45155 * 12.0),
  250.     79.41805,   // 8.5479 + (5.45155 * 13.0),
  251.     84.86960,   // 8.5479 + (5.45155 * 14.0),
  252.     90.32115,   // 8.5479 + (5.45155 * 15.0),
  253.     95.77270,   // 8.5479 + (5.45155 * 16.0),
  254.     101.22425,  // 8.5479 + (5.45155 * 17.0),
  255.     106.67580// 8.5479 + (5.45155 * 18.0),
  256.     112.12735   // 8.5479 + (5.45155 * 19.0)
  257. };
  258. new Obj_Elevator, Obj_ElevatorDoors[2],
  259.     Obj_FloorDoors[21][2];
  260. new Text3D:Label_Elevator, Text3D:Label_Floors[21];
  261. new ElevatorState,
  262.     ElevatorFloor;
  263. new ElevatorQueue[21],
  264. FloorRequestedBy[21];
  265. new ElevatorBoostTimer;
  266.  
  267. new skin;
  268.  
  269. enum pInfo
  270. {
  271.     pKills,
  272.     pDeaths,
  273.     pMoney,
  274.     pAdmin
  275. }
  276. new PlayerInfo[MAX_PLAYERS][pInfo];
  277. /*======> VARIAVEIS <======*/
  278.  
  279. main()
  280. {
  281.     print("\n----------------------------------");
  282.     print("             Alabama ON!            ");
  283.     print("----------------------------------\n");
  284. }
  285.  
  286. public OnGameModeInit()
  287. {
  288.     ResetElevatorQueue();
  289.     Elevator_Initialize();
  290.  
  291.     SetTimer("SendMSG", 300000, 1);
  292.  
  293.     SetTimer("payday", 30000*60, 1);
  294.  
  295.     ShowPlayerMarkers(1);
  296.  
  297.     DisableInteriorEnterExits();
  298.  
  299.     UsePlayerPedAnims();
  300.  
  301.     //Prisao adm
  302.     CreateDynamicObject(8650,274.6000100,-170.3999900,1001.4000200,0.0000000,0.0000000,0.0000000); //object(shbbyhswall06_lvs) (1)
  303.     CreateDynamicObject(8650,282.2999900,-170.3999900,1001.4000200,0.0000000,0.0000000,0.0000000); //object(shbbyhswall06_lvs) (2)
  304.     CreateDynamicObject(8650,282.2998000,-170.3994100,998.7000100,0.0000000,0.0000000,0.0000000); //object(shbbyhswall06_lvs) (3)
  305.     CreateDynamicObject(8650,274.5996100,-170.3994100,998.7000100,0.0000000,0.0000000,0.0000000); //object(shbbyhswall06_lvs) (4)
  306.     CreateDynamicObject(3058,277.5000000,-158.3000000,1001.5000000,0.0000000,0.0000000,24.0000000); //object(storm_drain_cover) (1)
  307.     CreateDynamicObject(987,273.7999900,-169.7000000,998.5999800,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (1)
  308.     CreateDynamicObject(987,283.2000100,-169.6000100,998.5999800,0.0000000,0.0000000,87.0000000); //object(elecfence_bar) (3)
  309.     CreateDynamicObject(987,273.7000100,-169.6000100,998.5999800,0.0000000,0.0000000,88.9950000); //object(elecfence_bar) (4)
  310.     CreateDynamicObject(987,283.1000100,-159.0000000,998.5999800,0.0000000,0.0000000,177.9950000); //object(elecfence_bar) (5)
  311.     CreateDynamicObject(1771,275.8999900,-160.8999900,999.2000100,0.0000000,0.0000000,359.0000000); //object(cj_bunk_bed1) (1)
  312.     CreateDynamicObject(1771,275.8999900,-164.2000000,999.2000100,0.0000000,0.0000000,358.5000000); //object(cj_bunk_bed1) (2)
  313.     CreateDynamicObject(1771,275.8999900,-167.3999900,999.2000100,0.0000000,0.0000000,358.7500000); //object(cj_bunk_bed1) (3)
  314.     CreateDynamicObject(1781,282.2000100,-166.5000000,1001.2999900,0.0000000,0.0000000,276.0000000); //object(med_tv_1) (1)
  315.     CreateDynamicObject(1781,282.2000100,-167.7000000,1001.2999900,0.0000000,0.0000000,275.9990000); //object(med_tv_1) (2)
  316.     CreateDynamicObject(1781,282.2000100,-169.0000000,1001.2999900,0.0000000,0.0000000,275.9990000); //object(med_tv_1) (3)
  317.     CreateDynamicObject(2602,281.5000000,-168.5000000,999.2000100,0.0000000,0.0000000,269.7500000); //object(police_cell_toilet) (1)
  318.     CreateDynamicObject(2602,281.5000000,-165.7000000,999.2000100,0.0000000,0.0000000,269.7470000); //object(police_cell_toilet) (2)
  319.     CreateDynamicObject(2602,281.5000000,-162.8999900,999.2000100,0.0000000,0.0000000,269.7470000); //object(police_cell_toilet) (3)
  320.     CreateDynamicObject(2602,281.5000000,-160.1000100,999.2000100,0.0000000,0.0000000,269.7470000); //object(police_cell_toilet) (4)
  321.     CreateDynamicObject(2713,277.7999900,-159.3000000,998.9000200,0.0000000,0.0000000,266.0000000); //object(cj_bucket) (1)
  322.     CreateDynamicObject(2713,278.6000100,-159.3000000,998.9000200,0.0000000,0.0000000,265.9950000); //object(cj_bucket) (2)
  323.     CreateDynamicObject(2628,277.6000100,-168.8000000,998.5999800,0.0000000,0.0000000,180.0000000); //object(gym_bench2) (1)
  324.     CreateDynamicObject(2628,279.1000100,-168.8999900,998.5999800,0.0000000,0.0000000,179.9950000); //object(gym_bench2) (2)
  325.     CreateDynamicObject(2713,279.3999900,-159.3000000,998.9000200,0.0000000,0.0000000,265.9950000); //object(cj_bucket) (3)
  326.     CreateDynamicObject(2813,276.2999900,-167.5000000,998.5999800,0.0000000,0.0000000,0.0000000); //object(gb_novels01) (1)
  327.     CreateDynamicObject(2813,278.8999900,-166.3999900,998.5999800,0.0000000,0.0000000,0.0000000); //object(gb_novels01) (2)
  328.     CreateDynamicObject(2813,276.6000100,-163.7000000,998.5999800,0.0000000,0.0000000,0.0000000); //object(gb_novels01) (3)
  329.     CreateDynamicObject(2819,279.1000100,-166.1000100,998.5999800,0.0000000,0.0000000,0.0000000); //object(gb_bedclothes01) (1)
  330.     CreateDynamicObject(2834,276.2999900,-160.3999900,998.5999800,0.0000000,0.0000000,270.0000000); //object(gb_livingrug03) (1)
  331.     CreateDynamicObject(2834,276.2999900,-163.7000000,998.5999800,0.0000000,0.0000000,270.0000000); //object(gb_livingrug03) (2)
  332.     CreateDynamicObject(2834,276.2999900,-167.0000000,998.5999800,0.0000000,0.0000000,270.0000000); //object(gb_livingrug03) (3)
  333.     CreateDynamicObject(2718,281.8999900,-163.1000100,1001.7999900,0.0000000,0.0000000,270.0000000); //object(cj_fly_killer) (1)
  334.     CreateDynamicObject(1722,281.5000000,-161.6000100,998.5999800,0.0000000,0.0000000,86.0000000); //object(off_chairnu) (1)
  335.     CreateDynamicObject(1985,279.0000000,-164.8999900,1002.2500000,0.0000000,0.0000000,0.0000000); //object(punchbagnu) (1)
  336.  
  337.  
  338.     CreateDynamicObject(9949, 1472.78, -1774.85, 24.68,   0.00, 0.00, 270.05);
  339.     CreateDynamicObject(7091, 1480.08, -1760.15, 29.64,   0.00, 0.00, -272.70);
  340.     CreateDynamicObject(7091, 1467.19, -1759.79, 25.67,   0.00, 0.00, 87.97);
  341.     CreateDynamicObject(7091, 1492.88, -1759.70, 25.67,   0.00, 0.00, 87.97);
  342.     CreateDynamicObject(646, 1485.99, -1759.95, 13.95,   0.00, 0.00, 0.00);
  343.     CreateDynamicObject(646, 1473.96, -1760.00, 13.95,   0.00, 0.00, 0.00);
  344.     CreateDynamicObject(1280, 1467.36, -1758.52, 12.89,   0.00, 0.00, -89.46);
  345.     CreateDynamicObject(1280, 1492.81, -1758.58, 12.89,   0.00, 0.00, -89.46);
  346.     CreateDynamicObject(1285, 1488.23, -1759.83, 13.09,   356.86, 0.00, 359.14);
  347.     CreateDynamicObject(1287, 1471.84, -1759.83, 13.12,   0.00, 0.00, 0.00);
  348.     CreateDynamicObject(6494, 1419.57, -1842.15, 23.58,   0.00, 0.00, -119.52);
  349.     CreateDynamicObject(6494, 1450.59, -1843.12, 23.58,   0.00, 0.00, -118.26);
  350.     CreateDynamicObject(6494, 1480.60, -1843.37, 23.58,   0.00, 0.00, -118.26);
  351.     CreateDynamicObject(6494, 1511.06, -1843.12, 23.68,   0.00, 0.00, -118.26);
  352.     CreateDynamicObject(6494, 1535.27, -1841.81, 23.68,   0.00, 0.00, -390.90);
  353.     CreateDynamicObject(6494, 1538.81, -1820.77, 23.58,   0.00, 0.00, 57.34);
  354.     CreateDynamicObject(6494, 1539.02, -1799.06, 23.58,   0.00, 0.00, 58.36);
  355.     CreateDynamicObject(6494, 1539.02, -1791.28, 23.58,   0.00, 0.00, 59.44);
  356.     CreateDynamicObject(6494, 1509.97, -1813.57, 23.58,   0.00, 0.00, -118.52);
  357.     CreateDynamicObject(6494, 1511.62, -1792.60, 23.58,   0.00, 0.00, -118.52);
  358.     CreateDynamicObject(6494, 1479.79, -1832.29, 23.58,   0.00, 0.00, -118.52);
  359.     CreateDynamicObject(6494, 1448.81, -1832.46, 23.58,   0.00, 0.00, -118.52);
  360.     CreateDynamicObject(6494, 1419.70, -1832.44, 23.58,   0.00, 0.00, -118.52);
  361.     CreateDynamicObject(6494, 1478.86, -1809.63, 23.58,   0.00, 0.00, -118.52);
  362.     CreateDynamicObject(6494, 1447.94, -1809.31, 23.58,   0.00, 0.00, -118.52);
  363.     CreateDynamicObject(6494, 1419.67, -1809.65, 23.58,   0.00, 0.00, -122.12);
  364.     CreateDynamicObject(6494, 1478.65, -1788.63, 23.58,   0.00, 0.00, -118.52);
  365.     CreateDynamicObject(6494, 1446.86, -1786.68, 23.58,   0.00, 0.00, -118.52);
  366.     CreateDynamicObject(6494, 1419.43, -1786.51, 23.58,   0.00, 0.00, -120.50);
  367.     CreateDynamicObject(6494, 1419.81, -1784.27, 23.78,   0.00, 0.00, -120.50);
  368.     CreateDynamicObject(3660, 1428.73, -1772.82, 14.54,   0.00, 0.00, -180.24);
  369.     CreateDynamicObject(3660, 1409.11, -1772.81, 14.54,   0.00, 0.00, -179.82);
  370.     CreateDynamicObject(3660, 1400.60, -1783.37, 14.54,   0.00, 0.00, 270.25);
  371.     CreateDynamicObject(3660, 1400.85, -1842.13, 14.54,   0.00, 0.00, 270.25);
  372.     CreateDynamicObject(3660, 1400.69, -1802.99, 14.54,   0.00, 0.00, 270.25);
  373.     CreateDynamicObject(3660, 1400.77, -1822.52, 14.54,   0.00, 0.00, 270.25);
  374.     CreateDynamicObject(3660, 1400.90, -1852.30, 14.54,   0.00, 0.00, 270.25);
  375.     CreateDynamicObject(3660, 1411.17, -1861.44, 14.54,   0.00, 0.00, 179.77);
  376.     CreateDynamicObject(3660, 1430.79, -1861.51, 14.54,   0.00, 0.00, 179.77);
  377.     CreateDynamicObject(3660, 1470.03, -1861.64, 14.54,   0.00, 0.00, 180.08);
  378.     CreateDynamicObject(3660, 1489.59, -1861.60, 14.54,   0.00, 0.00, 180.08);
  379.     CreateDynamicObject(3660, 1528.80, -1861.55, 14.54,   0.00, 0.00, 180.08);
  380.     CreateDynamicObject(3660, 1548.42, -1861.52, 14.54,   0.00, 0.00, 180.08);
  381.     CreateDynamicObject(3660, 1558.28, -1852.42, 14.54,   0.00, 0.00, 90.02);
  382.     CreateDynamicObject(3660, 1558.27, -1832.87, 14.54,   0.00, 0.00, 90.02);
  383.     CreateDynamicObject(3660, 1558.25, -1813.50, 14.54,   0.00, 0.00, 90.02);
  384.     CreateDynamicObject(3660, 1558.24, -1794.10, 14.54,   0.00, 0.00, 90.02);
  385.     CreateDynamicObject(3660, 1530.21, -1772.45, 14.54,   0.00, 0.00, -0.76);
  386.     CreateDynamicObject(3660, 1549.69, -1772.70, 14.54,   0.00, 0.00, -0.76);
  387.     CreateDynamicObject(3660, 1558.23, -1783.50, 14.54,   0.00, 0.00, 90.02);
  388.     CreateDynamicObject(6494, 1539.71, -1842.51, 23.68,   0.00, 0.00, -390.42);
  389.     CreateDynamicObject(3287, 1449.40, -1861.31, 11.87,   0.00, 0.00, 89.79);
  390.     CreateDynamicObject(3287, 1442.43, -1861.29, 11.87,   0.00, 0.00, 89.79);
  391.     CreateDynamicObject(3287, 1456.37, -1861.32, 11.87,   0.00, 0.00, 90.19);
  392.     CreateDynamicObject(3287, 1515.13, -1861.33, 11.87,   0.00, 0.00, 90.19);
  393.     CreateDynamicObject(3287, 1508.15, -1861.32, 11.87,   0.00, 0.00, 89.79);
  394.     CreateDynamicObject(3287, 1501.19, -1861.27, 11.87,   0.00, 0.00, 89.79);
  395.     CreateDynamicObject(737, 1414.67, -1849.99, 12.89,   0.00, 0.00, 0.00);
  396.     CreateDynamicObject(803, 1405.79, -1779.25, 13.87,   0.00, 0.00, -13.26);
  397.     CreateDynamicObject(737, 1453.42, -1809.45, 12.89,   0.00, 0.00, 0.00);
  398.     CreateDynamicObject(737, 1481.54, -1809.51, 12.89,   0.00, 0.00, 0.06);
  399.     CreateDynamicObject(737, 1510.51, -1809.05, 12.89,   0.00, 0.00, 0.00);
  400.     CreateDynamicObject(737, 1544.86, -1849.86, 12.89,   0.00, 0.00, 0.00);
  401.     CreateDynamicObject(737, 1497.61, -1849.26, 12.89,   0.00, 0.00, 0.06);
  402.     CreateDynamicObject(737, 1520.90, -1849.56, 12.89,   0.00, 0.00, 0.00);
  403.     CreateDynamicObject(737, 1462.54, -1849.65, 12.89,   0.00, 0.00, 0.00);
  404.     CreateDynamicObject(737, 1440.90, -1849.97, 12.89,   0.00, 0.00, 0.00);
  405.     CreateDynamicObject(737, 1420.34, -1788.11, 12.89,   0.00, 0.00, 0.00);
  406.     CreateDynamicObject(737, 1420.10, -1810.16, 12.89,   0.00, 0.00, 0.00);
  407.     CreateDynamicObject(737, 1542.35, -1786.54, 12.89,   0.00, 0.00, 0.00);
  408.     CreateDynamicObject(737, 1542.49, -1808.74, 12.89,   0.00, 0.00, 0.00);
  409.     CreateDynamicObject(803, 1406.14, -1856.42, 13.87,   0.00, 0.00, 67.62);
  410.     CreateDynamicObject(803, 1479.47, -1856.69, 13.87,   0.00, 0.00, 171.24);
  411.     CreateDynamicObject(803, 1553.93, -1856.09, 13.87,   0.00, 0.00, 211.98);
  412.     CreateDynamicObject(803, 1553.08, -1778.34, 13.87,   0.00, 0.00, 307.02);
  413.     CreateDynamicObject(1231, 1468.38, -1808.52, 15.29,   356.86, 0.00, -1.57);
  414.     CreateDynamicObject(1231, 1496.08, -1809.05, 15.29,   356.86, 0.00, -1.57);
  415.     CreateDynamicObject(1231, 1528.23, -1808.70, 15.29,   356.86, 0.00, -1.57);
  416.     CreateDynamicObject(1231, 1433.90, -1808.96, 15.29,   356.86, 0.00, -1.57);
  417.     CreateDynamicObject(1280, 1431.32, -1808.87, 13.01,   0.00, 0.00, 2.40);
  418.     CreateDynamicObject(1280, 1436.81, -1808.94, 13.01,   0.00, 0.00, -178.50);
  419.     CreateDynamicObject(1280, 1465.96, -1808.62, 13.03,   0.00, 0.00, 1.56);
  420.     CreateDynamicObject(1280, 1471.08, -1808.47, 13.03,   0.00, 0.00, -176.82);
  421.     CreateDynamicObject(1280, 1493.90, -1809.06, 12.98,   0.00, 0.00, 0.36);
  422.     CreateDynamicObject(1280, 1498.94, -1808.82, 13.18,   0.00, 0.00, -178.14);
  423.     CreateDynamicObject(1280, 1525.32, -1808.88, 13.11,   0.00, 0.00, 0.00);
  424.     CreateDynamicObject(1280, 1531.13, -1808.63, 13.11,   0.00, 0.00, -178.02);
  425.     CreateDynamicObject(1231, 1533.02, -1849.51, 15.29,   356.86, 0.00, -1.57);
  426.     CreateDynamicObject(1231, 1479.53, -1848.93, 15.29,   356.86, 0.00, -1.57);
  427.     CreateDynamicObject(1231, 1428.34, -1849.59, 15.29,   356.86, 0.00, -1.57);
  428.     CreateDynamicObject(1280, 1426.02, -1849.68, 13.14,   0.00, 0.00, 0.00);
  429.     CreateDynamicObject(1280, 1431.30, -1849.60, 13.14,   0.00, 0.00, -178.80);
  430.     CreateDynamicObject(1280, 1477.15, -1848.97, 13.13,   0.00, 0.00, 0.30);
  431.     CreateDynamicObject(1280, 1482.46, -1848.87, 13.13,   0.00, 0.00, -178.74);
  432.     CreateDynamicObject(1280, 1530.99, -1849.56, 13.19,   0.00, 0.00, 0.72);
  433.     CreateDynamicObject(1280, 1535.39, -1849.42, 13.09,   0.00, 0.00, -177.72);
  434.     CreateDynamicObject(1339, 1432.35, -1831.79, 13.24,   0.00, 0.00, -179.46);
  435.     CreateDynamicObject(1339, 1432.30, -1834.05, 13.24,   0.00, 0.00, -359.70);
  436.     CreateDynamicObject(1339, 1480.03, -1831.90, 13.21,   0.00, 0.00, -179.52);
  437.     CreateDynamicObject(1339, 1480.07, -1833.99, 13.22,   0.00, 0.00, -359.22);
  438.     CreateDynamicObject(1339, 1529.27, -1833.89, 13.25,   0.00, 0.00, 0.00);
  439.     CreateDynamicObject(1339, 1529.26, -1831.97, 13.25,   0.00, 0.00, -179.82);
  440.  
  441.  
  442.  
  443.     //Ponto de onibus
  444.     AddStaticVehicleEx(431,2246.70922852,-1748.82617188,13.63281250,270.00000000,-1,-1,15); //Bus
  445.     AddStaticVehicleEx(431,2275.93554688,-1749.20629883,13.63281250,270.00000000,-1,-1,15); //Bus
  446.     AddStaticVehicleEx(431,2297.37329102,-1749.33593750,13.63281250,270.00000000,-1,-1,15); //Bus
  447.     AddStaticVehicleEx(437,2333.17504883,-1748.89038086,13.62942314,270.00000000,-1,-1,15); //Coach
  448.     AddStaticVehicleEx(437,2363.02197266,-1749.21069336,13.63281250,270.00000000,-1,-1,15); //Coach
  449.     AddStaticVehicleEx(437,2389.44531250,-1749.00683594,13.63281250,270.00000000,-1,-1,15); //Coach
  450.     taxi1 = AddStaticVehicleEx(420,2393.55541992,-1737.58203125,13.39687443,93.99902344,-1,-1,15); //Taxi
  451.     taxi2 = AddStaticVehicleEx(420,2382.03735352,-1737.07470703,13.23281193,93.99902344,-1,-1,15); //Taxi
  452.     taxi3 = AddStaticVehicleEx(420,2373.29663086,-1736.93078613,13.23281193,93.99902344,-1,-1,15); //Taxi
  453.     AddStaticVehicleEx(420,2365.73632812,-1737.12182617,13.23281193,93.99902344,-1,-1,15); //Taxi
  454.     AddStaticVehicleEx(420,2357.63574219,-1736.95068359,13.23281193,93.99902344,-1,-1,15); //Taxi
  455.     AddStaticVehicleEx(420,2350.46264648,-1737.15637207,13.23281193,93.99902344,-1,-1,15); //Taxi
  456.     AddStaticVehicleEx(420,2343.82617188,-1737.11254883,13.23281193,93.99902344,-1,-1,15); //Taxi
  457.     AddStaticVehicleEx(420,2337.51586914,-1737.13854980,13.23281193,93.99902344,-1,-1,15); //Taxi
  458.     AddStaticVehicleEx(420,2330.04931641,-1737.25927734,13.23281193,93.99902344,-1,-1,15); //Taxi
  459.     AddStaticVehicleEx(420,2324.09057617,-1737.18469238,13.23281193,93.99902344,-1,-1,15); //Taxi
  460.     AddStaticVehicleEx(438,2256.62255859,-1738.57897949,13.74687481,95.99853516,-1,-1,15); //Cabbie
  461.     AddStaticVehicleEx(438,2247.70581055,-1738.78759766,13.74687481,95.99853516,-1,-1,15); //Cabbie
  462.     AddStaticVehicleEx(438,2238.35253906,-1739.43920898,13.74687481,95.99853516,-1,-1,15); //Cabbie
  463.     AddStaticVehicleEx(438,2266.07299805,-1738.36474609,13.74687481,90.00000000,-1,-1,15); //Cabbie
  464.     CreateObject(8841,2283.89697266,-1744.74719238,15.87311554,0.00000000,0.00000000,0.00000000); //object(rsdncarprk01_lvs) (2)
  465.     CreateObject(8841,2358.73828125,-1745.15136719,15.87311554,0.00000000,0.00000000,0.00000000); //object(rsdncarprk01_lvs) (3)
  466.     CreateObject(8841,2383.80322266,-1744.80383301,15.87311554,0.00000000,0.00000000,0.00000000); //object(rsdncarprk01_lvs) (5)
  467.     CreateObject(8841,2258.07983398,-1744.60290527,15.87311554,0.00000000,0.00000000,0.00000000); //object(rsdncarprk01_lvs) (7)
  468.     CreateObject(1256,2240.49267578,-1745.29309082,13.51694679,0.00000000,0.00000000,92.00000000); //object(stonebench1) (1)
  469.     CreateObject(1256,2244.07104492,-1745.50085449,13.51694679,0.00000000,0.00000000,91.99951172); //object(stonebench1) (2)
  470.     CreateObject(1256,2248.14477539,-1745.50769043,13.51694679,0.00000000,0.00000000,91.99951172); //object(stonebench1) (3)
  471.     CreateObject(1256,2251.08203125,-1745.39062500,13.51694679,0.00000000,0.00000000,91.99951172); //object(stonebench1) (4)
  472.     CreateObject(1256,2253.66625977,-1745.14953613,13.51694679,0.00000000,0.00000000,91.99951172); //object(stonebench1) (5)
  473.     CreateObject(1256,2256.24658203,-1745.02258301,13.51694679,0.00000000,0.00000000,91.99951172); //object(stonebench1) (6)
  474.     CreateObject(1256,2245.81811523,-1745.42980957,13.51694679,0.00000000,0.00000000,91.99951172); //object(stonebench1) (7)
  475.     CreateObject(1432,2260.01757812,-1743.40222168,12.85749054,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (1)
  476.     CreateObject(1432,2262.67626953,-1743.38623047,12.85749054,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (2)
  477.     CreateObject(1670,2260.09423828,-1743.49853516,13.47282887,0.00000000,0.00000000,0.00000000); //object(propcollecttable) (1)
  478.     CreateObject(1670,2262.56933594,-1743.17797852,13.47282887,0.00000000,0.00000000,0.00000000); //object(propcollecttable) (2)
  479.     CreateObject(1432,2265.34155273,-1743.35852051,12.85749054,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (4)
  480.     CreateObject(1670,2265.28588867,-1743.38586426,13.47282887,0.00000000,0.00000000,0.00000000); //object(propcollecttable) (4)
  481.     CreateObject(1229,2264.95434570,-1746.87902832,14.41717052,0.00000000,0.00000000,282.00000000); //object(bussign1) (1)
  482.     CreateObject(1229,2303.93872070,-1747.14160156,14.41717052,0.00000000,0.00000000,278.00000000); //object(bussign1) (2)
  483.     CreateObject(8841,2339.51245117,-1744.76550293,15.87311554,0.00000000,0.00000000,0.00000000); //object(rsdncarprk01_lvs) (8)
  484.     CreateObject(1229,2340.61987305,-1747.48205566,14.41717052,0.00000000,0.00000000,294.00000000); //object(bussign1) (4)
  485.     CreateObject(1229,2378.47387695,-1747.28820801,14.41717052,0.00000000,0.00000000,258.00000000); //object(bussign1) (5)
  486.     CreateObject(1229,2402.53930664,-1747.11108398,14.41717052,0.00000000,0.00000000,257.99743652); //object(bussign1) (6)
  487.     CreateObject(1262,2400.10205078,-1746.92736816,13.61711121,0.00000000,0.00000000,86.00000000); //object(mtraffic4) (1)
  488.     CreateObject(1262,2377.39086914,-1746.97326660,13.61711121,0.00000000,0.00000000,85.99548340); //object(mtraffic4) (2)
  489.     CreateObject(1262,2340.53930664,-1746.95471191,13.61711121,0.00000000,0.00000000,85.99548340); //object(mtraffic4) (3)
  490.     CreateObject(1262,2320.61791992,-1746.58715820,13.61711121,0.00000000,0.00000000,85.99548340); //object(mtraffic4) (4)
  491.     CreateObject(1262,2302.30273438,-1746.74682617,13.61711121,0.00000000,0.00000000,85.99548340); //object(mtraffic4) (5)
  492.     CreateObject(1262,2264.70410156,-1746.29858398,13.62418938,0.00000000,0.00000000,85.99548340); //object(mtraffic4) (6)
  493.     CreateObject(1262,2238.89379883,-1746.18334961,13.62418938,0.00000000,0.00000000,85.99548340); //object(mtraffic4) (7)
  494.     CreateObject(982,2391.54077148,-1750.88562012,13.06636715,0.00000000,0.00000000,270.00000000); //object(fenceshit) (1)
  495.     CreateObject(982,2376.02783203,-1750.83325195,13.06636715,0.00000000,0.00000000,270.00000000); //object(fenceshit) (2)
  496.     CreateObject(982,2352.24267578,-1750.77087402,13.06636715,0.00000000,0.00000000,270.00000000); //object(fenceshit) (3)
  497.     CreateObject(982,2333.60571289,-1750.76281738,13.06308270,0.00000000,0.00000000,270.00000000); //object(fenceshit) (4)
  498.     CreateObject(982,2250.87573242,-1751.20104980,13.06636715,0.00000000,0.00000000,270.00000000); //object(fenceshit) (5)
  499.     CreateObject(982,2269.76074219,-1751.23925781,13.06636715,0.00000000,0.00000000,270.00000000); //object(fenceshit) (6)
  500.     CreateObject(982,2290.30688477,-1751.31347656,13.06636715,0.00000000,0.00000000,270.00000000); //object(fenceshit) (7)
  501.     CreateObject(982,2292.60864258,-1751.40270996,13.06977272,0.00000000,0.00000000,270.00000000); //object(fenceshit) (8)
  502.     CreateObject(982,2240.33227539,-1751.06445312,13.07415676,0.00000000,0.00000000,270.00000000); //object(fenceshit) (9)
  503.     CreateObject(14438,2246.12695312,-1748.67175293,20.22501564,0.00000000,0.00000000,0.00000000); //object(carter-light04) (1)
  504.     CreateObject(14439,2310.83203125,-1716.93750000,19.75844383,0.00000000,0.00000000,0.00000000); //object(carter-light12) (2)
  505.     CreateObject(14438,2267.83764648,-1748.24072266,20.17758369,0.00000000,0.00000000,0.00000000); //object(carter-light04) (2)
  506.     CreateObject(14438,2287.92016602,-1747.99792480,20.13498497,0.00000000,0.00000000,0.00000000); //object(carter-light04) (3)
  507.     CreateObject(14438,2328.43115234,-1749.25842285,20.27168465,0.00000000,0.00000000,0.00000000); //object(carter-light04) (4)
  508.     CreateObject(14438,2354.24780273,-1748.67187500,20.20713615,0.00000000,0.00000000,0.00000000); //object(carter-light04) (5)
  509.     CreateObject(14438,2381.46752930,-1752.20056152,20.59123802,0.00000000,0.00000000,0.00000000); //object(carter-light04) (6)
  510.     CreateObject(14438,2372.47070312,-1749.96960449,20.34572792,0.00000000,0.00000000,0.00000000); //object(carter-light04) (8)
  511.     CreateObject(14438,2396.25903320,-1750.20141602,20.37123871,0.00000000,0.00000000,0.00000000); //object(carter-light04) (9)
  512.     CreateObject(1257,2392.98583984,-1745.83056641,14.13668251,0.00000000,0.00000000,90.00000000); //object(bustopm) (1)
  513.     CreateObject(1257,2387.47558594,-1746.12402344,14.13668251,0.00000000,0.00000000,90.00000000); //object(bustopm) (2)
  514.     CreateObject(1257,2380.23535156,-1745.61669922,14.13668251,0.00000000,0.00000000,90.00000000); //object(bustopm) (3)
  515.     CreateObject(1257,2370.00366211,-1745.66784668,14.13668251,0.00000000,0.00000000,90.00000000); //object(bustopm) (4)
  516.     CreateObject(1257,2361.97509766,-1746.18212891,14.13668251,0.00000000,0.00000000,90.00000000); //object(bustopm) (5)
  517.     CreateObject(1257,2349.40087891,-1745.64672852,14.13668251,0.00000000,0.00000000,90.00000000); //object(bustopm) (6)
  518.     CreateObject(1257,2333.46655273,-1744.93420410,14.13668251,0.00000000,0.00000000,90.00000000); //object(bustopm) (7)
  519.     CreateObject(1216,2357.31372070,-1745.58825684,13.54949284,0.00000000,0.00000000,0.00000000); //object(phonebooth1) (1)
  520.     CreateObject(1216,2355.83154297,-1744.28698730,13.54949284,0.00000000,0.00000000,0.00000000); //object(phonebooth1) (2)
  521.     CreateObject(1216,2354.22973633,-1743.33911133,13.54949284,0.00000000,0.00000000,0.00000000); //object(phonebooth1) (3)
  522.     CreateObject(1340,2269.89941406,-1744.11267090,13.98507690,0.00000000,0.00000000,266.00000000); //object(chillidogcart) (1)
  523.     CreateObject(1341,2274.32128906,-1743.59948730,13.86007690,0.00000000,0.00000000,270.00000000); //object(icescart_prop) (1)
  524.     CreateObject(1341,2276.15771484,-1743.89770508,13.86007690,0.00000000,0.00000000,270.00000000); //object(icescart_prop) (2)
  525.     CreateObject(1342,2278.05590820,-1744.11596680,13.89118385,0.00000000,0.00000000,276.00000000); //object(noodlecart_prop) (1)
  526.     CreateObject(1363,2285.15014648,-1744.22717285,13.69385338,0.00000000,0.00000000,0.00000000); //object(cj_phone_kiosk) (1)
  527.     CreateObject(3860,2288.00073242,-1743.93933105,14.02982140,0.00000000,0.00000000,358.00000000); //object(marketstall04_sfxrf) (1)
  528.     CreateObject(3861,2294.13769531,-1744.03381348,14.02982140,0.00000000,0.00000000,0.00000000); //object(marketstall01_sfxrf) (1)
  529.     CreateObject(3862,2300.83129883,-1744.16870117,14.02982140,0.00000000,0.00000000,2.00000000); //object(marketstall02_sfxrf) (1)
  530.     CreateObject(3863,2281.38476562,-1744.35180664,14.02982140,0.00000000,0.00000000,0.00000000); //object(marketstall03_sfxrf) (2)
  531.     CreateObject(955,2241.58715820,-1742.74511719,12.85749054,0.00000000,0.00000000,0.00000000); //object(cj_ext_sprunk) (1)
  532.     CreateObject(1776,2244.09887695,-1742.48522949,13.95688248,0.00000000,0.00000000,0.00000000); //object(cj_candyvendor) (1)
  533.     CreateObject(1302,2247.25756836,-1742.44555664,12.85749054,0.00000000,0.00000000,0.00000000); //object(vendmachfd) (1)
  534.     CreateObject(1977,2250.17993164,-1742.57482910,12.85749054,0.00000000,0.00000000,0.00000000); //object(vendin3) (1)
  535.     CreateObject(2427,2282.37695312,-1745.16296387,13.67541885,0.00000000,0.00000000,0.00000000); //object(cj_ff_juice_l) (1)
  536.     CreateObject(2429,2280.31469727,-1743.01879883,13.46442413,0.00000000,0.00000000,0.00000000); //object(cj_ff_cup_disp) (1)
  537.     CreateObject(2453,2281.18896484,-1745.13940430,14.05377102,0.00000000,0.00000000,0.00000000); //object(cj_pizza_dispf) (1)
  538.     CreateObject(2814,2287.09155273,-1744.66979980,13.67541885,0.00000000,0.00000000,0.00000000); //object(gb_takeaway01) (1)
  539.     CreateObject(2429,2287.46850586,-1742.58691406,13.71886253,0.00000000,0.00000000,0.00000000); //object(cj_ff_cup_disp) (2)
  540.     CreateObject(2427,2288.70361328,-1744.70056152,13.67541885,0.00000000,0.00000000,0.00000000); //object(cj_ff_juice_l) (2)
  541.     CreateObject(2880,2286.47290039,-1741.82775879,12.62709141,0.00000000,0.00000000,0.00000000); //object(cj_burg_2) (1)
  542.     CreateObject(2768,2293.01611328,-1745.15710449,13.71773434,0.00000000,0.00000000,0.00000000); //object(cj_cb_burg) (1)
  543.     CreateObject(2768,2293.50097656,-1745.24414062,13.71773434,0.00000000,0.00000000,0.00000000); //object(cj_cb_burg) (2)
  544.     CreateObject(2768,2293.88134766,-1745.18103027,13.71773434,0.00000000,0.00000000,0.00000000); //object(cj_cb_burg) (3)
  545.     CreateObject(2427,2295.12255859,-1744.85119629,13.67541885,0.00000000,0.00000000,0.00000000); //object(cj_ff_juice_l) (3)
  546.     CreateObject(2429,2295.17211914,-1742.70080566,13.77034569,0.00000000,0.00000000,0.00000000); //object(cj_ff_cup_disp) (3)
  547.     CreateObject(2767,2293.34423828,-1744.54260254,13.67541885,0.00000000,0.00000000,0.00000000); //object(cj_cb_tray) (1)
  548.     CreateObject(2222,2300.09667969,-1745.17480469,13.74377728,0.00000000,0.00000000,272.00000000); //object(rustyhigh) (1)
  549.     CreateObject(2222,2299.99243164,-1744.55078125,13.74377728,0.00000000,0.00000000,271.99951172); //object(rustyhigh) (2)
  550.     CreateObject(2427,2301.89941406,-1744.95300293,13.67541885,0.00000000,0.00000000,0.00000000); //object(cj_ff_juice_l) (4)
  551.     CreateObject(2429,2301.26171875,-1742.81994629,13.72533321,0.00000000,0.00000000,0.00000000); //object(cj_ff_cup_disp) (4)
  552.     CreateObject(1211,2262.20434570,-1741.11694336,13.15768147,0.00000000,0.00000000,0.00000000); //object(fire_hydrant) (1)
  553.     CreateObject(1211,2306.47851562,-1745.08190918,13.15768147,0.00000000,0.00000000,0.00000000); //object(fire_hydrant) (2)
  554.     CreateObject(1211,2320.34838867,-1745.21606445,13.47537518,0.00000000,0.00000000,0.00000000); //object(fire_hydrant) (3)
  555.     CreateObject(1211,2404.02075195,-1745.23095703,13.46829700,0.00000000,0.00000000,0.00000000); //object(fire_hydrant) (4)
  556.     CreateObject(643,2291.16992188,-1739.19836426,13.01734638,0.00000000,0.00000000,0.00000000); //object(kb_chr_tbl_test) (1)
  557.     CreateObject(643,2285.74096680,-1739.17004395,13.01734638,0.00000000,0.00000000,0.00000000); //object(kb_chr_tbl_test) (2)
  558.     CreateObject(643,2280.54882812,-1739.09887695,13.01734638,0.00000000,0.00000000,0.00000000); //object(kb_chr_tbl_test) (3)
  559.     CreateObject(643,2299.03027344,-1739.61547852,13.01734638,0.00000000,0.00000000,0.00000000); //object(kb_chr_tbl_test) (4)
  560.     CreateObject(643,2276.28979492,-1739.01013184,13.01734638,0.00000000,0.00000000,0.00000000); //object(kb_chr_tbl_test) (5)
  561.     CreateObject(643,2271.09960938,-1739.20361328,13.01734638,0.00000000,0.00000000,0.00000000); //object(kb_chr_tbl_test) (6)
  562.     CreateObject(2700,2267.52368164,-1744.83276367,16.75267792,0.00000000,0.00000000,0.00000000); //object(cj_sex_tv2) (1)
  563.     CreateObject(2700,2266.92358398,-1744.68859863,17.12287140,0.00000000,0.00000000,180.00000000); //object(cj_sex_tv2) (2)
  564.     CreateObject(2700,2257.48779297,-1744.53649902,17.05342293,0.00000000,0.00000000,179.99450684); //object(cj_sex_tv2) (3)
  565.     CreateObject(2700,2241.10620117,-1744.61242676,17.08003616,0.00000000,0.00000000,179.99450684); //object(cj_sex_tv2) (4)
  566.     CreateObject(2700,2272.31591797,-1744.49865723,16.94965935,0.00000000,0.00000000,198.00000000); //object(cj_sex_tv2) (5)
  567.     CreateObject(2700,2283.30517578,-1744.71166992,17.00161362,0.00000000,0.00000000,197.99560547); //object(cj_sex_tv2) (6)
  568.     CreateObject(2700,2298.13330078,-1744.77172852,17.08326530,0.00000000,0.00000000,197.99560547); //object(cj_sex_tv2) (7)
  569.     CreateObject(2700,2298.73339844,-1744.76489258,16.85235977,0.00000000,0.00000000,3.99560547); //object(cj_sex_tv2) (8)
  570.     CreateObject(2700,2283.90527344,-1744.79870605,16.95171356,0.00000000,0.00000000,3.99353027); //object(cj_sex_tv2) (9)
  571.     CreateObject(2700,2272.91601562,-1744.55383301,16.78020859,0.00000000,0.00000000,3.99353027); //object(cj_sex_tv2) (10)
  572.     CreateObject(2700,2258.08789062,-1744.57287598,16.79337120,0.00000000,0.00000000,3.99353027); //object(cj_sex_tv2) (11)
  573.     CreateObject(2700,2241.70629883,-1744.59570312,16.63220215,0.00000000,0.00000000,3.99353027); //object(cj_sex_tv2) (12)
  574.     CreateObject(2700,2322.53881836,-1744.71362305,16.96219635,0.00000000,0.00000000,179.99353027); //object(cj_sex_tv2) (13)
  575.     CreateObject(2700,2338.92041016,-1744.70178223,16.88451385,0.00000000,0.00000000,179.98901367); //object(cj_sex_tv2) (14)
  576.     CreateObject(2700,2353.74853516,-1744.63098145,16.87446976,0.00000000,0.00000000,179.98901367); //object(cj_sex_tv2) (15)
  577.     CreateObject(2700,2366.82983398,-1744.60632324,16.91942215,0.00000000,0.00000000,179.98901367); //object(cj_sex_tv2) (16)
  578.     CreateObject(2700,2383.21142578,-1744.57397461,16.74682426,0.00000000,0.00000000,179.98901367); //object(cj_sex_tv2) (17)
  579.     CreateObject(2700,2398.03955078,-1744.74902344,17.22937393,0.00000000,0.00000000,179.98901367); //object(cj_sex_tv2) (18)
  580.     CreateObject(2700,2398.63964844,-1744.85046387,16.90629959,0.00000000,0.00000000,359.98901367); //object(cj_sex_tv2) (19)
  581.     CreateObject(2700,2383.81152344,-1744.86633301,16.58543968,0.00000000,0.00000000,359.98352051); //object(cj_sex_tv2) (20)
  582.     CreateObject(2700,2373.57519531,-1745.11669922,17.00518799,0.00000000,0.00000000,359.98352051); //object(cj_sex_tv2) (21)
  583.     CreateObject(2700,2367.42993164,-1744.79235840,16.87066078,0.00000000,0.00000000,359.98352051); //object(cj_sex_tv2) (22)
  584.     CreateObject(2700,2358.74707031,-1745.12426758,17.01222610,0.00000000,0.00000000,359.98352051); //object(cj_sex_tv2) (23)
  585.     CreateObject(2700,2354.34863281,-1744.79248047,16.77287674,0.00000000,0.00000000,359.98352051); //object(cj_sex_tv2) (24)
  586.     CreateObject(2700,2342.36547852,-1745.15710449,16.81734276,0.00000000,0.00000000,359.98352051); //object(cj_sex_tv2) (25)
  587.     CreateObject(2700,2339.52050781,-1744.65734863,16.76002693,0.00000000,0.00000000,359.98352051); //object(cj_sex_tv2) (26)
  588.     CreateObject(2700,2372.97509766,-1745.38635254,16.81226540,0.00000000,0.00000000,173.98352051); //object(cj_sex_tv2) (27)
  589.     CreateObject(2700,2358.14697266,-1745.23498535,16.91577530,0.00000000,0.00000000,173.97949219); //object(cj_sex_tv2) (28)
  590.     CreateObject(2700,2339.18017578,-1825.05102539,16.05622101,0.00000000,0.00000000,173.97949219); //object(cj_sex_tv2) (29)
  591.     CreateObject(2700,2341.76538086,-1745.13342285,16.67930603,0.00000000,0.00000000,173.97949219); //object(cj_sex_tv2) (30)
  592.     CreateObject(2700,2323.13891602,-1744.71081543,16.87057495,0.00000000,0.00000000,357.97949219); //object(cj_sex_tv2) (31)
  593.  
  594.  
  595.     //Roda gigante
  596.  
  597.     gFerrisWheel = CreateObject( FERRIS_WHEEL_ID, gFerrisOrigin[0], gFerrisOrigin[1], gFerrisOrigin[2],
  598.                                  0.0, 0.0, FERRIS_WHEEL_Z_ANGLE, FERRIS_DRAW_DISTANCE );
  599.  
  600.     gFerrisBase = CreateObject( FERRIS_BASE_ID, gFerrisOrigin[0], gFerrisOrigin[1], gFerrisOrigin[2],
  601.                                  0.0, 0.0, FERRIS_WHEEL_Z_ANGLE, FERRIS_DRAW_DISTANCE );
  602.  
  603.     new x=0;
  604.     while(x != NUM_FERRIS_CAGES) {
  605.         gFerrisCages[x] = CreateObject( FERRIS_CAGE_ID, gFerrisOrigin[0], gFerrisOrigin[1], gFerrisOrigin[2],
  606.                                  0.0, 0.0, FERRIS_WHEEL_Z_ANGLE, FERRIS_DRAW_DISTANCE );
  607.  
  608.         AttachObjectToObject( gFerrisCages[x], gFerrisWheel,
  609.                               gFerrisCageOffsets[x][0],
  610.                               gFerrisCageOffsets[x][1],
  611.                               gFerrisCageOffsets[x][2],
  612.                               0.0, 0.0, FERRIS_WHEEL_Z_ANGLE, 0 );
  613.  
  614.         x++;
  615.     }
  616.  
  617.     SetTimer("RotateWheel",3*1000,0);
  618.  
  619.     //Bank
  620.     tmpobjid = CreateObject(19378,2557.927,1977.755,-6.487,0.000,90.000,0.000,300.000);
  621.     SetObjectMaterial(tmpobjid, 0, 14581, "ab_mafiasuitea", "wood02S", 0);
  622.     tmpobjid = CreateObject(19378,2557.927,1968.156,-6.487,0.000,90.000,0.000,300.000);
  623.     SetObjectMaterial(tmpobjid, 0, 14581, "ab_mafiasuitea", "wood02S", 0);
  624.     tmpobjid = CreateObject(19378,2557.927,1958.705,-6.487,0.000,90.000,0.000,300.000);
  625.     SetObjectMaterial(tmpobjid, 0, 14581, "ab_mafiasuitea", "wood02S", 0);
  626.     tmpobjid = CreateObject(19378,2547.478,1958.705,-6.487,0.000,90.000,0.000,300.000);
  627.     SetObjectMaterial(tmpobjid, 0, 14581, "ab_mafiasuitea", "wood02S", 0);
  628.     tmpobjid = CreateObject(19378,2547.478,1968.155,-6.487,0.000,90.000,0.000,300.000);
  629.     SetObjectMaterial(tmpobjid, 0, 14581, "ab_mafiasuitea", "wood02S", 0);
  630.     tmpobjid = CreateObject(19378,2547.478,1977.755,-6.487,0.000,90.000,0.000,300.000);
  631.     SetObjectMaterial(tmpobjid, 0, 14581, "ab_mafiasuitea", "wood02S", 0);
  632.     tmpobjid = CreateObject(19380,2563.112,1958.690,-1.311,0.000,0.000,0.000,300.000);
  633.     SetObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "ab_fabricRed", -16777216);
  634.     tmpobjid = CreateObject(19380,2563.112,1968.290,-1.311,0.000,0.000,0.000,300.000);
  635.     SetObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "ab_fabricRed", -16777216);
  636.     tmpobjid = CreateObject(19380,2563.112,1977.920,-1.311,0.000,0.000,0.000,300.000);
  637.     SetObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "ab_fabricRed", -16777216);
  638.     tmpobjid = CreateObject(19380,2558.332,1982.671,-1.311,0.000,0.000,90.000,300.000);
  639.     SetObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "ab_fabricRed", -16777216);
  640.     tmpobjid = CreateObject(19380,2548.713,1982.671,-1.311,0.000,0.000,90.000,300.000);
  641.     SetObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "ab_fabricRed", -16777216);
  642.     tmpobjid = CreateObject(19380,2539.113,1982.671,-1.311,0.000,0.000,90.000,300.000);
  643.     SetObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "ab_fabricRed", -16777216);
  644.     tmpobjid = CreateObject(19380,2542.321,1977.920,-1.311,0.000,0.000,0.000,300.000);
  645.     SetObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "ab_fabricRed", -16777216);
  646.     tmpobjid = CreateObject(19380,2542.321,1968.301,-1.311,0.000,0.000,0.000,300.000);
  647.     SetObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "ab_fabricRed", -16777216);
  648.     tmpobjid = CreateObject(19380,2542.321,1958.711,-1.311,0.000,0.000,0.000,300.000);
  649.     SetObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "ab_fabricRed", -16777216);
  650.     tmpobjid = CreateObject(19380,2539.113,1953.940,-1.311,0.000,0.000,90.000,300.000);
  651.     SetObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "ab_fabricRed", -16777216);
  652.     tmpobjid = CreateObject(19380,2548.713,1953.940,-1.311,0.000,0.000,90.000,300.000);
  653.     SetObjectMaterial(tmpobjid, 0, 14534, "ab_wooziea", "ab_fabricRed", -16777216);
  654.     tmpobjid = CreateObject(19380,2558.302,1953.940,-1.311,0.000,0.000,90.000,300.000);
  655.     SetObjectMaterial(tmpobjid, 0, -1, "none", "none", -16777216);
  656.     tmpobjid = CreateObject(19430,2555.247,1953.945,-4.521,90.000,180.000,270.000,300.000);
  657.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  658.     tmpobjid = CreateObject(19430,2558.686,1953.945,-4.521,90.000,180.000,270.000,300.000);
  659.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  660.     tmpobjid = CreateObject(19430,2562.177,1953.945,-4.521,90.000,180.000,270.000,300.000);
  661.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  662.     tmpobjid = CreateObject(19430,2551.776,1953.945,-4.521,90.000,180.000,270.000,300.000);
  663.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  664.     tmpobjid = CreateObject(19430,2548.286,1953.945,-4.521,90.000,180.000,270.000,300.000);
  665.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  666.     tmpobjid = CreateObject(19430,2544.796,1953.945,-4.521,90.000,180.000,270.000,300.000);
  667.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  668.     tmpobjid = CreateObject(19430,2541.376,1953.945,-4.521,90.000,180.000,270.000,300.000);
  669.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  670.     tmpobjid = CreateObject(19430,2542.324,1955.745,-4.521,90.000,180.000,360.000,300.000);
  671.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  672.     tmpobjid = CreateObject(19430,2542.324,1959.235,-4.521,90.000,180.000,360.000,300.000);
  673.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  674.     tmpobjid = CreateObject(19430,2542.324,1962.725,-4.521,90.000,180.000,360.000,300.000);
  675.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  676.     tmpobjid = CreateObject(19430,2542.324,1969.576,-4.521,90.000,180.000,360.000,300.000);
  677.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  678.     tmpobjid = CreateObject(19430,2542.324,1966.165,-4.521,90.000,180.000,360.000,300.000);
  679.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  680.     tmpobjid = CreateObject(19430,2542.324,1973.006,-4.521,90.000,180.000,360.000,300.000);
  681.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  682.     tmpobjid = CreateObject(19430,2542.324,1976.492,-4.521,90.000,180.000,360.000,300.000);
  683.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  684.     tmpobjid = CreateObject(19430,2542.324,1979.832,-4.521,90.000,180.000,360.000,300.000);
  685.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  686.     tmpobjid = CreateObject(19430,2542.324,1983.152,-4.521,90.000,180.000,360.000,300.000);
  687.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  688.     tmpobjid = CreateObject(19430,2544.144,1982.652,-4.521,90.000,180.000,450.000,300.000);
  689.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  690.     tmpobjid = CreateObject(19430,2547.645,1982.652,-4.521,90.000,180.000,450.000,300.000);
  691.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  692.     tmpobjid = CreateObject(19430,2551.115,1982.652,-4.521,90.000,180.000,450.000,300.000);
  693.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  694.     tmpobjid = CreateObject(19430,2554.575,1982.652,-4.521,90.000,180.000,450.000,300.000);
  695.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  696.     tmpobjid = CreateObject(19430,2557.995,1982.652,-4.521,90.000,180.000,450.000,300.000);
  697.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  698.     tmpobjid = CreateObject(19430,2561.485,1982.652,-4.521,90.000,180.000,450.000,300.000);
  699.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  700.     tmpobjid = CreateObject(19430,2563.075,1980.811,-4.521,90.000,180.000,540.000,300.000);
  701.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  702.     tmpobjid = CreateObject(19430,2563.075,1977.331,-4.521,90.000,180.000,540.000,300.000);
  703.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  704.     tmpobjid = CreateObject(19430,2563.075,1973.881,-4.521,90.000,180.000,540.000,300.000);
  705.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  706.     tmpobjid = CreateObject(19430,2563.075,1970.401,-4.521,90.000,180.000,540.000,300.000);
  707.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  708.     tmpobjid = CreateObject(19430,2563.075,1967.011,-4.521,90.000,180.000,540.000,300.000);
  709.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  710.     tmpobjid = CreateObject(19430,2563.075,1963.592,-4.521,90.000,180.000,540.000,300.000);
  711.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  712.     tmpobjid = CreateObject(19430,2563.075,1960.101,-4.521,90.000,180.000,540.000,300.000);
  713.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  714.     tmpobjid = CreateObject(19430,2563.075,1956.771,-4.521,90.000,180.000,540.000,300.000);
  715.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  716.     tmpobjid = CreateObject(19430,2563.075,1953.311,-4.521,90.000,180.000,540.000,300.000);
  717.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -6750208);
  718.     tmpobjid = CreateObject(19360,2561.339,1976.102,-6.921,-90.000,270.000,360.000,300.000);
  719.     SetObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "CJ_WOOD1(EDGE)", 0);
  720.     tmpobjid = CreateObject(19360,2557.869,1976.102,-6.921,-90.000,270.000,360.000,300.000);
  721.     SetObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "CJ_WOOD1(EDGE)", 0);
  722.     tmpobjid = CreateObject(19360,2554.430,1976.102,-6.921,-90.000,270.000,360.000,300.000);
  723.     SetObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "CJ_WOOD1(EDGE)", 0);
  724.     tmpobjid = CreateObject(19360,2550.949,1976.102,-6.921,-90.000,270.000,360.000,300.000);
  725.     SetObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "CJ_WOOD1(EDGE)", 0);
  726.     tmpobjid = CreateObject(19360,2547.509,1976.102,-6.921,-90.000,270.000,360.000,300.000);
  727.     SetObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "CJ_WOOD1(EDGE)", 0);
  728.     tmpobjid = CreateObject(19360,2544.058,1976.102,-6.921,-90.000,270.000,360.000,300.000);
  729.     SetObjectMaterial(tmpobjid, 0, 14652, "ab_trukstpa", "CJ_WOOD1(EDGE)", 0);
  730.     tmpobjid = CreateObject(19428,2544.158,1977.645,-4.561,90.000,180.000,450.000,300.000);
  731.     SetObjectMaterial(tmpobjid, 0, 14668, "711c", "gun_ceiling1128", 0);
  732.     tmpobjid = CreateObject(19428,2544.158,1977.645,-3.031,90.000,180.000,450.000,300.000);
  733.     SetObjectMaterial(tmpobjid, 0, 14668, "711c", "gun_ceiling1128", 0);
  734.     tmpobjid = CreateObject(19428,2544.158,1976.855,-5.401,0.000,90.000,180.000,300.000);
  735.     SetObjectMaterial(tmpobjid, 0, 14668, "711c", "gun_ceiling1128", 0);
  736.     tmpobjid = CreateObject(19428,2547.587,1978.435,-5.401,0.000,90.000,0.000,300.000);
  737.     SetObjectMaterial(tmpobjid, 0, 14668, "711c", "gun_ceiling1128", 0);
  738.     tmpobjid = CreateObject(19428,2554.407,1978.435,-5.401,0.000,90.000,0.000,300.000);
  739.     SetObjectMaterial(tmpobjid, 0, 14668, "711c", "gun_ceiling1128", 0);
  740.     tmpobjid = CreateObject(19428,2561.207,1978.435,-5.401,0.000,90.000,0.000,300.000);
  741.     SetObjectMaterial(tmpobjid, 0, 14668, "711c", "gun_ceiling1128", 0);
  742.     tmpobjid = CreateObject(19428,2547.609,1976.855,-5.401,0.000,90.000,180.000,300.000);
  743.     SetObjectMaterial(tmpobjid, 0, 14668, "711c", "gun_ceiling1128", 0);
  744.     tmpobjid = CreateObject(19428,2554.438,1976.855,-5.401,0.000,90.000,180.000,300.000);
  745.     SetObjectMaterial(tmpobjid, 0, 14668, "711c", "gun_ceiling1128", 0);
  746.     tmpobjid = CreateObject(19428,2561.237,1976.855,-5.401,0.000,90.000,180.000,300.000);
  747.     SetObjectMaterial(tmpobjid, 0, 14668, "711c", "gun_ceiling1128", 0);
  748.     tmpobjid = CreateObject(19428,2544.158,1977.645,-6.131,90.000,180.000,450.000,300.000);
  749.     SetObjectMaterial(tmpobjid, 0, 14668, "711c", "gun_ceiling1128", 0);
  750.     tmpobjid = CreateObject(19428,2545.969,1977.954,-6.131,90.000,180.000,540.000,300.000);
  751.     SetObjectMaterial(tmpobjid, 0, 14668, "711c", "gun_ceiling1128", 0);
  752.     tmpobjid = CreateObject(19428,2545.969,1982.584,-6.131,90.000,180.000,540.000,300.000);
  753.     SetObjectMaterial(tmpobjid, 0, 14668, "711c", "gun_ceiling1128", 0);
  754.     tmpobjid = CreateObject(19428,2545.969,1982.574,-4.551,90.000,180.000,540.000,300.000);
  755.     SetObjectMaterial(tmpobjid, 0, 14668, "711c", "gun_ceiling1128", 0);
  756.     tmpobjid = CreateObject(19428,2545.969,1983.984,-2.961,90.000,180.000,540.000,300.000);
  757.     SetObjectMaterial(tmpobjid, 0, 14668, "711c", "gun_ceiling1128", 0);
  758.     tmpobjid = CreateObject(19428,2545.969,1977.954,-4.541,90.000,180.000,540.000,300.000);
  759.     SetObjectMaterial(tmpobjid, 0, 14668, "711c", "gun_ceiling1128", 0);
  760.     tmpobjid = CreateObject(19428,2545.969,1977.954,-2.981,90.000,180.000,540.000,300.000);
  761.     SetObjectMaterial(tmpobjid, 0, 14668, "711c", "gun_ceiling1128", 0);
  762.     tmpobjid = CreateObject(19428,2545.969,1981.415,-2.981,90.000,180.000,540.000,300.000);
  763.     SetObjectMaterial(tmpobjid, 0, 14668, "711c", "gun_ceiling1128", 0);
  764.     tmpobjid = CreateObject(1735,2545.287,1958.989,-6.401,0.000,0.000,0.000,300.000);
  765.     SetObjectMaterial(tmpobjid, 0, -1, "none", "none", -13421620);
  766.     tmpobjid = CreateObject(1735,2545.287,1956.288,-6.401,0.000,0.000,180.000,300.000);
  767.     SetObjectMaterial(tmpobjid, 0, -1, "none", "none", -13421620);
  768.     tmpobjid = CreateObject(19378,2557.927,1977.935,-1.417,0.000,90.000,0.000,300.000);
  769.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
  770.     tmpobjid = CreateObject(19378,2557.927,1968.356,-1.417,0.000,90.000,0.000,300.000);
  771.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
  772.     tmpobjid = CreateObject(19378,2557.927,1958.826,-1.417,0.000,90.000,0.000,300.000);
  773.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
  774.     tmpobjid = CreateObject(19378,2547.488,1958.826,-1.417,0.000,90.000,0.000,300.000);
  775.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
  776.     tmpobjid = CreateObject(19378,2547.488,1968.326,-1.417,0.000,90.000,0.000,300.000);
  777.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
  778.     tmpobjid = CreateObject(19378,2547.488,1977.915,-1.417,0.000,90.000,0.000,300.000);
  779.     SetObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
  780.     tmpobjid = CreateObject(1557,2550.846,1953.969,-6.411,0.000,0.000,0.000,300.000);
  781.     tmpobjid = CreateObject(1557,2553.867,1953.969,-6.411,0.000,0.000,180.000,300.000);
  782.     tmpobjid = CreateObject(1671,2560.686,1979.717,-5.831,0.000,0.000,-20.200,300.000);
  783.     tmpobjid = CreateObject(2190,2560.291,1978.097,-5.331,0.000,0.000,180.000,300.000);
  784.     tmpobjid = CreateObject(1671,2554.024,1979.973,-5.831,0.000,0.000,-20.200,300.000);
  785.     tmpobjid = CreateObject(1671,2548.173,1979.933,-5.831,0.000,0.000,3.600,300.000);
  786.     tmpobjid = CreateObject(2066,2542.939,1980.172,-6.421,0.000,0.000,90.000,300.000);
  787.     tmpobjid = CreateObject(2066,2543.621,1982.113,-6.421,0.000,0.000,0.000,300.000);
  788.     tmpobjid = CreateObject(2066,2544.711,1982.113,-6.421,0.000,0.000,0.000,300.000);
  789.     tmpobjid = CreateObject(2066,2542.939,1981.313,-6.421,0.000,0.000,90.000,300.000);
  790.     tmpobjid = CreateObject(1649,2548.215,1976.276,-3.201,0.000,0.000,0.000,300.000);
  791.     tmpobjid = CreateObject(1649,2548.215,1976.276,-3.201,0.000,0.000,180.000,300.000);
  792.     tmpobjid = CreateObject(1649,2552.595,1976.276,-3.201,0.000,0.000,0.000,300.000);
  793.     tmpobjid = CreateObject(1649,2552.595,1976.276,-3.201,0.000,0.000,180.000,300.000);
  794.     tmpobjid = CreateObject(2190,2553.500,1978.097,-5.331,0.000,0.000,180.000,300.000);
  795.     tmpobjid = CreateObject(2190,2548.649,1978.097,-5.331,0.000,0.000,180.000,300.000);
  796.     tmpobjid = CreateObject(2894,2561.709,1978.382,-5.311,0.000,0.000,0.000,300.000);
  797.     tmpobjid = CreateObject(2894,2555.059,1978.382,-5.311,0.000,0.000,0.000,300.000);
  798.     tmpobjid = CreateObject(2894,2547.548,1978.382,-5.311,0.000,0.000,0.000,300.000);
  799.     tmpobjid = CreateObject(2066,2542.939,1979.132,-6.421,0.000,0.000,90.000,300.000);
  800.     tmpobjid = CreateObject(2066,2542.939,1978.042,-6.421,0.000,0.000,90.000,300.000);
  801.     tmpobjid = CreateObject(1216,2543.168,1976.627,-5.501,0.000,0.000,0.000,300.000);
  802.     tmpobjid = CreateObject(1216,2544.278,1976.627,-5.501,0.000,0.000,0.000,300.000);
  803.     tmpobjid = CreateObject(1216,2545.289,1976.627,-5.501,0.000,0.000,0.000,300.000);
  804.     tmpobjid = CreateObject(1649,2556.984,1976.276,-3.201,0.000,0.000,0.000,300.000);
  805.     tmpobjid = CreateObject(1829,2544.333,1978.526,-5.916,0.000,0.000,180.000,300.000);
  806.     tmpobjid = CreateObject(1649,2556.984,1976.276,-3.201,0.000,0.000,180.000,300.000);
  807.     tmpobjid = CreateObject(1649,2561.334,1976.276,-3.201,0.000,0.000,360.000,300.000);
  808.     tmpobjid = CreateObject(1649,2561.334,1976.276,-3.201,0.000,0.000,540.000,300.000);
  809.     tmpobjid = CreateObject(1706,2543.458,1960.947,-6.401,0.000,0.000,90.000,300.000);
  810.     tmpobjid = CreateObject(1706,2547.609,1961.947,-6.401,0.000,0.000,270.000,300.000);
  811.     tmpobjid = CreateObject(1706,2545.028,1963.737,-6.401,0.000,0.000,360.000,300.000);
  812.     tmpobjid = CreateObject(1827,2545.509,1961.476,-6.601,0.000,0.000,0.000,300.000);
  813.     tmpobjid = CreateObject(2942,2562.350,1956.509,-5.801,0.000,0.000,270.000,300.000);
  814.     tmpobjid = CreateObject(2942,2562.350,1958.069,-5.801,0.000,0.000,270.000,300.000);
  815.     tmpobjid = CreateObject(2942,2562.350,1959.409,-5.801,0.000,0.000,270.000,300.000);
  816.     tmpobjid = CreateObject(2942,2562.350,1960.789,-5.801,0.000,0.000,270.000,300.000);
  817.     tmpobjid = CreateObject(2942,2562.350,1962.079,-5.801,0.000,0.000,270.000,300.000);
  818.     tmpobjid = CreateObject(1808,2542.644,1966.197,-6.461,0.000,0.000,90.000,300.000);
  819.     tmpobjid = CreateObject(1722,2562.984,1967.045,-6.401,0.000,0.000,90.000,300.000);
  820.     tmpobjid = CreateObject(1722,2562.984,1968.276,-6.401,0.000,0.000,90.000,300.000);
  821.     tmpobjid = CreateObject(1722,2562.984,1969.526,-6.401,0.000,0.000,90.000,300.000);
  822.     tmpobjid = CreateObject(1722,2562.984,1970.556,-6.401,0.000,0.000,90.000,300.000);
  823.     tmpobjid = CreateObject(1722,2562.984,1971.696,-6.401,0.000,0.000,90.000,300.000);
  824.     tmpobjid = CreateObject(638,2555.625,1954.331,-5.711,0.000,0.000,90.000,300.000);
  825.     tmpobjid = CreateObject(638,2558.265,1954.331,-5.711,0.000,0.000,90.000,300.000);
  826.     tmpobjid = CreateObject(638,2560.904,1954.331,-5.711,0.000,0.000,90.000,300.000);
  827.     tmpobjid = CreateObject(638,2549.234,1954.331,-5.711,0.000,0.000,90.000,300.000);
  828.     tmpobjid = CreateObject(638,2546.564,1954.331,-5.711,0.000,0.000,90.000,300.000);
  829.     tmpobjid = CreateObject(638,2543.914,1954.331,-5.711,0.000,0.000,90.000,300.000);
  830.     tmpobjid = CreateObject(2008,2544.825,1970.919,-6.401,0.000,0.000,-129.399,300.000);
  831.     tmpobjid = CreateObject(2008,2544.808,1972.957,-6.401,0.000,0.000,-75.099,300.000);
  832.     tmpobjid = CreateObject(1671,2543.621,1971.698,-6.001,0.000,0.000,90.000,300.000);
  833.     tmpobjid = CreateObject(14455,2542.416,1959.598,-4.841,0.000,0.000,270.000,300.000);
  834.  
  835.  
  836.     //Hosp
  837.     CreateObject(2885, 1672.5996, -1715.5996, 19.3, 0, 0, 90);
  838.     CreateObject(2885, 1672.5996, -1704.7998, 19.3, 0, 0, 90);
  839.     CreateObject(2885, 1667, -1720.59998, 19.3, 0, 0, 0);
  840.     CreateObject(18001, 1672.2998, -1716.2998, 18, 0, 0, 270);
  841.     CreateObject(18001, 1672.2998, -1716.2998, 16.6, 0, 0, 270);
  842.     CreateObject(18001, 1664.2998, -1708.0996, 15.3, 0, 180.5, 90);
  843.     CreateObject(18001, 1672.2998, -1708.0996, 15.2, 0, 179.995, 270);
  844.     CreateObject(18001, 1672.2998, -1708.0996, 16.6, 0, 179.995, 269.75);
  845.     CreateObject(18001, 1672.2998, -1708.0996, 18, 0, 179.995, 270);
  846.     CreateObject(2885, 1666.9004, -1703.7002, 19.3, 0, 0, 179.995);
  847.     CreateObject(2885, 1664, -1709.4004, 19.3, 0, 0, 269.995);
  848.     CreateObject(2885, 1664, -1717.5, 19.3, 0, 0, 269.995);
  849.     CreateObject(18001, 1668.3, -1704, 15.2, 0, 0, 0);
  850.     CreateObject(18001, 1668.3, -1704, 16.6, 0, 0, 0);
  851.     CreateObject(18001, 1668.3, -1704, 18, 0, 0, 0);
  852.     CreateObject(2774, 1672.9, -1703.5, 26.5, 0, 0, 318);
  853.     CreateObject(18001, 1664.3, -1708.1, 16.7, 0, 180.5, 90);
  854.     CreateObject(18001, 1664.3, -1708.1, 18.1, 0, 180.5, 90);
  855.     CreateObject(2774, 1663.5, -1703.7002, 26.5, 0, 0, 317.994);
  856.     CreateObject(18001, 1672.3, -1716.3, 15.2, 0, 0, 270);
  857.     CreateObject(18001, 1664.2998, -1716.2998, 15.3, 0, 0, 90);
  858.     CreateObject(18001, 1664.3, -1716.3, 16.7, 0, 0, 90);
  859.     CreateObject(18001, 1664.3, -1716.3, 18.1, 0, 0, 90);
  860.     CreateObject(2774, 1663.2, -1712.3, 26.5, 0, 0, 317.994);
  861.     CreateObject(2774, 1673.4, -1712.1, 26.5, 0, 0, 317.994);
  862.     CreateObject(18001, 1668.3, -1720.3, 18, 0, 180, 180);
  863.     CreateObject(18001, 1668.3, -1720.3, 15.2, 0, 179.995, 179.995);
  864.     CreateObject(18001, 1668.2998, -1720.2998, 16.6, 0, 179.995, 179.995);
  865.     CreateObject(2774, 1672.5, -1721.2002, 26.5, 0, 0, 317.994);
  866.     CreateObject(2774, 1663.8, -1720.9, 26.5, 0, 0, 317.999);
  867.     CreateObject(2885, 1669.0996, -1713.5996, 18.8, 270, 179.995, 179.995);
  868.     CreateObject(2885, 1668.5, -1706.9, 18.8, 270, 180, 180);
  869.     CreateObject(2885, 1669.5, -1700.2, 18.8, 270, 359.996, 359.996);
  870.     CreateObject(3033, 1666.9, -1704, 14.6, 270, 180, 180);
  871.     CreateObject(3033, 1672.5, -1704, 14.6, 270, 359.996, 359.996);
  872.     CreateObject(3033, 1666.9, -1706.4, 14.6, 270, 0, 0);
  873.     CreateObject(3033, 1666.9, -1708.8, 14.6, 270, 180, 180);
  874.     CreateObject(3033, 1666.9, -1711.2, 14.6, 270, 359.996, 359.996);
  875.     CreateObject(3033, 1666.9, -1713.6, 14.6, 270, 180, 180);
  876.     CreateObject(3033, 1666.9, -1716, 14.6, 270, 359.996, 359.996);
  877.     CreateObject(3033, 1666.9, -1718.4, 14.6, 270, 180, 180);
  878.     CreateObject(3033, 1672.5, -1706.4, 14.6, 270, 359.996, 359.996);
  879.     CreateObject(3033, 1672.5, -1708.8, 14.6, 270, 180, 180);
  880.     CreateObject(3033, 1672.5, -1711.2, 14.6, 270, 359.996, 359.996);
  881.     CreateObject(3033, 1672.5, -1713.6, 14.6, 270, 180, 180);
  882.     CreateObject(3033, 1672.5, -1716, 14.6, 270, 359.996, 359.996);
  883.     CreateObject(3033, 1672.5, -1718.4, 14.6, 270, 359.995, 359.995);
  884.     CreateObject(1997, 1670.6, -1705.5, 14.7, 0, 0, 0);
  885.     CreateObject(1997, 1668.7, -1705.5, 14.7, 0, 0, 0);
  886.     CreateObject(1997, 1666.9, -1705.5, 14.7, 0, 0, 0);
  887.     CreateObject(1997, 1666.9, -1709.1, 14.7, 0, 0, 0);
  888.     CreateObject(1997, 1668.7, -1709.1, 14.7, 0, 0, 0);
  889.     CreateObject(1997, 1670.6, -1709.1, 14.7, 0, 0, 0);
  890.     CreateObject(1569, 1666.8, -1720.3, 14.6, 0, 0, 358);
  891.     CreateObject(1569, 1669.8, -1720.3, 14.6, 0, 0, 182);
  892.     CreateObject(1240, 1668.3, -1720.3, 17.3, 0, 0, 0);
  893.     CreateObject(3804, 1664.6, -1705.1, 17.8, 0, 0, 0);
  894.     CreateObject(3812, 1664.6, -1707.1, 17.9, 0, 0, 0);
  895.     CreateObject(2994, 1664.7, -1711.3, 15.2, 0, 0, 0);
  896.     CreateObject(1886, 1672.1, -1719.9, 18.6, 15.99, 357.919, 212.573);
  897.     CreateObject(2601, 1664.8, -1710.8, 15.6, 0, 0, 264);
  898.     CreateObject(1455, 1664.5, -1710.8, 15.6, 0, 0, 0);
  899.     CreateObject(1808, 1664.5, -1720.1, 14.6, 0, 0, 146);
  900.     CreateObject(2812, 1664.7, -1711.3, 15.6, 0, 0, 0);
  901.     CreateObject(2822, 1664.8, -1711.3, 15.3, 0, 0, 0);
  902.     CreateObject(2864, 1664.8, -1711.3, 15, 0, 0, 0);
  903.     CreateObject(14532, 1664.7, -1706.5, 15.6, 0, 0, 270);
  904.     CreateObject(2008, 1671.3, -1715.8, 14.6, 0, 0, 90);
  905.     CreateObject(2249, 1671, -1714.5, 16.1, 0, 0, 0);
  906.     CreateObject(932, 1671.8, -1719.9, 14.6, 0, 0, 182);
  907.     CreateObject(932, 1671.8, -1719.8, 14.6, 0, 0, 182);
  908.     CreateObject(932, 1671.8, -1719.7, 14.6, 0, 0, 182);
  909.     CreateObject(3393, 1664.5, -1708.7, 14.6, 0, 0, 180);
  910.     CreateObject(3386, 1664.5, -1705.1, 14.3, 0, 0, 0);
  911.     CreateObject(1235, 1666.3, -1720, 15.1, 0, 0, 0);
  912.     CreateObject(1775, 1664.7, -1713.1, 15.8, 0, 0, 90);
  913.     CreateObject(1776, 1664.7, -1714.5, 15.8, 0, 0, 90);
  914.  
  915.     CreatePickup(19132, 1, 1172.6122, -1323.5563, 15.4031, 0);
  916.     Create3DTextLabel("[Hospital]", COLOR_LIGHTORANGE, 1172.6122, -1323.5563, 15.4031, 40.0, 0, 0);
  917.  
  918.     //Saida Hospital
  919.     Create3DTextLabel("[Saida]", COLOR_LIGHTORANGE, 1668.3256, -1719.4587, 15.6094, 40.0, 0, 0);
  920.  
  921.     //Barraquinha
  922.     CreateObject(1340, 1213.2494, -1319.8055, 13.5581, 0.0, 0.0, 0.0, 0.0);
  923.     CreateActor(168, 1214.6685, -1319.8698, 13.5659, 87.2126);
  924.     Create3DTextLabel("Aperte ALT", COLOR_LIGHTORANGE, 1213.2494, -1319.8055, 13.5581, 40.0, 0, 0);
  925.    
  926.     //Barraquinha 2
  927.     CreateObject(1340, 1362.8732, -1739.3807, 13.5469, 0.0, 0.0, 90.0, 0.0);
  928.     CreateActor(209, 1362.7599, -1740.4601, 13.5469, 0.3272);
  929.     Create3DTextLabel("Aperte ALT", COLOR_LIGHTORANGE, 1362.8732, -1739.3807, 13.5469, 40.0, 0, 0);
  930.  
  931.     //Pickup de vida
  932.     pickupvida = CreatePickup(1240, 1, 1667.8604, -1710.7042, 15.6094, 0);
  933.     CreatePickup(1239, 1, 1668.3256, -1719.4587, 15.6094, 0);
  934.  
  935.     /*===> PREFEITURA E DEPARTAMENTO POLICIAL <===*/
  936.     CreateObject(717, 1458.1, -1738.3, 12.6, 0, 0, 0);
  937.     CreateObject(717, 1458, -1745.9, 12.6, 0, 0, 0);
  938.     CreateObject(717, 1504.6, -1738.2, 12.6, 0, 0, 0);
  939.     CreateObject(717, 1504.5, -1745.6, 12.6, 0, 0, 0);
  940.     CreateObject(717, 1450, -1738.3, 12.6, 0, 0, 0);
  941.     CreateObject(717, 1440, -1738.3, 12.6, 0, 0, 0);
  942.     CreateObject(717, 1430, -1738.3, 12.6, 0, 0, 0);
  943.     CreateObject(717, 1420, -1738.3, 12.6, 0, 0, 0);
  944.     CreateObject(717, 1410, -1738.3, 12.6, 0, 0, 0);
  945.     CreateObject(717, 1400, -1738.3, 12.6, 0, 0, 0);
  946.     CreateObject(717, 1511.9, -1738.2, 12.6, 0, 0, 0);
  947.     CreateObject(717, 1520, -1738.2, 12.6, 0, 0, 0);
  948.     CreateObject(717, 1530, -1738.2, 12.6, 0, 0, 0);
  949.     CreateObject(717, 1540, -1738.2, 12.6, 0, 0, 0);
  950.     CreateObject(717, 1550, -1738.2, 12.6, 0, 0, 0);
  951.     CreateObject(717, 1558.5, -1738.3, 12.6, 0, 0, 0);
  952.     CreateObject(1280, 1459.4, -1741.7, 12.9, 0, 0, 180);
  953.     CreateObject(1280, 1503.3, -1742.2, 12.9, 0, 0, 0);
  954.     CreateObject(3458, 1520.2, -1703, 14.1, 0, 0, 270);
  955.     CreateObject(3458, 1520.2, -1663, 14.1, 0, 0, 270);
  956.     CreateObject(3458, 1520.2, -1622.8, 14.1, 0, 0, 270);
  957.     CreateObject(3578, 1519.4, -1720.5, 11.8, 0, 0, 0);
  958.     CreateObject(3578, 1519.4, -1713.3, 11.8, 0, 0, 0);
  959.     CreateObject(3578, 1519.4, -1706.3, 11.8, 0, 0, 0);
  960.     CreateObject(3578, 1519.4, -1699.3, 11.8, 0, 0, 0);
  961.     CreateObject(3578, 1519.4, -1692.3, 11.8, 0, 0, 0);
  962.     CreateObject(3578, 1519.4, -1685.3, 11.8, 0, 0, 0);
  963.     CreateObject(3578, 1519.4, -1680.7, 11.8, 0, 0, 0);
  964.     CreateObject(3578, 1519.4, -1673.3, 11.8, 0, 0, 0);
  965.     CreateObject(3578, 1519.4, -1666.3, 11.8, 0, 0, 0);
  966.     CreateObject(717, 1517.3, -1659.3, 12.7, 0, 0, 0);
  967.     CreateObject(3578, 1519.4, -1659.3, 11.8, 0, 0, 0);
  968.     CreateObject(717, 1515.8, -1659.3, 12.7, 0, 0, 0);
  969.     CreateObject(717, 1514.4, -1659.3, 12.7, 0, 0, 0);
  970.     CreateObject(3578, 1519.4, -1652.3, 11.8, 0, 0, 0);
  971.     CreateObject(717, 1517.4, -1652.3, 12.7, 0, 0, 0);
  972.     CreateObject(717, 1515.9, -1652.3, 12.7, 0, 0, 0);
  973.     CreateObject(717, 1514.4, -1652.3, 12.7, 0, 0, 0);
  974.     CreateObject(3578, 1519.4, -1645.4, 11.8, 0, 0, 0);
  975.     CreateObject(717, 1516.2, -1645.3, 12.7, 0, 0, 0);
  976.     CreateObject(717, 1517.5, -1645.3, 12.7, 0, 0, 0);
  977.     CreateObject(3578, 1519.4, -1640.5, 11.8, 0, 0, 0);
  978.     CreateObject(3578, 1519.4, -1633.1, 11.8, 0, 0, 0);
  979.     CreateObject(3578, 1519.4, -1626.2, 11.8, 0, 0, 0);
  980.     CreateObject(3578, 1519.4, -1619.1, 11.8, 0, 0, 0);
  981.     CreateObject(3578, 1519.4, -1612.1, 11.8, 0, 0, 0);
  982.     CreateObject(3578, 1519.4, -1605.1, 11.8, 0, 0, 0);
  983.     CreateObject(984, 1518, -1714.2, 13.3, 0, 0, 0);
  984.     CreateObject(984, 1517.9, -1701.4, 13.3, 0, 0, 0);
  985.     CreateObject(984, 1517.9, -1688.6, 13.3, 0, 0, 0);
  986.     CreateObject(984, 1517.9, -1675.8, 13.3, 0, 0, 0);
  987.     CreateObject(984, 1517.9, -1670.2, 13.3, 0, 0, 0);
  988.     CreateObject(983, 1514.7, -1663.9, 13.4, 0, 0, 270);
  989.     CreateObject(983, 1508.3, -1663.9, 13.4, 0, 0, 270);
  990.     CreateObject(984, 1517.9, -1636.5, 13.3, 0, 0, 0);
  991.     CreateObject(984, 1517.8, -1623.6, 13.3, 0, 0, 0);
  992.     CreateObject(984, 1517.7, -1610.8, 13.3, 0, 0, 0);
  993.     CreateObject(717, 1535.7, -1714.3, 12.6, 0, 0, 0);
  994.     CreateObject(717, 1535.7, -1709, 12.6, 0, 0, 0);
  995.     CreateObject(717, 1535.7, -1704, 12.6, 0, 0, 0);
  996.     CreateObject(717, 1535.7, -1699, 12.6, 0, 0, 0);
  997.     CreateObject(717, 1535.7, -1694, 12.6, 0, 0, 0);
  998.     CreateObject(717, 1535.7, -1689, 12.6, 0, 0, 0);
  999.     CreateObject(717, 1535.7, -1684, 12.6, 0, 0, 0);
  1000.     CreateObject(717, 1535.6, -1662, 12.6, 0, 0, 0);
  1001.     CreateObject(717, 1535.6, -1657, 12.6, 0, 0, 0);
  1002.     CreateObject(717, 1535.6, -1652, 12.6, 0, 0, 0);
  1003.     CreateObject(717, 1535.6, -1647, 12.6, 0, 0, 0);
  1004.     CreateObject(717, 1535.6, -1642, 12.6, 0, 0, 0);
  1005.     CreateObject(717, 1535.8, -1617.5, 12.6, 0, 0, 0);
  1006.     CreateObject(717, 1535.8, -1612, 12.6, 0, 0, 0);
  1007.     CreateObject(717, 1535.8, -1607, 12.6, 0, 0, 0);
  1008.     CreateObject(717, 1535.8, -1602, 12.6, 0, 0, 0);
  1009.     /*===> PREFEITURA E DEPARTAMENTO POLICIAL <===*/
  1010.  
  1011.  
  1012.  
  1013.     textVelocimetro[0] = TextDrawCreate(379.000000, 378.000000, "i");
  1014.     TextDrawBackgroundColor(textVelocimetro[0], 0);
  1015.     TextDrawFont(textVelocimetro[0], 2);
  1016.     TextDrawLetterSize(textVelocimetro[0], 28.800073, 2.600000);
  1017.     TextDrawColor(textVelocimetro[0], 80);
  1018.     TextDrawSetOutline(textVelocimetro[0], 0);
  1019.     TextDrawSetProportional(textVelocimetro[0], 1);
  1020.     TextDrawSetShadow(textVelocimetro[0], 1);
  1021.     TextDrawSetSelectable(textVelocimetro[0], 0);
  1022.  
  1023.     textVelocimetro[1] = TextDrawCreate(379.000000, 392.000000, "i");
  1024.     TextDrawBackgroundColor(textVelocimetro[1], 0);
  1025.     TextDrawFont(textVelocimetro[1], 2);
  1026.     TextDrawLetterSize(textVelocimetro[1], 28.800073, 2.600000);
  1027.     TextDrawColor(textVelocimetro[1], 80);
  1028.     TextDrawSetOutline(textVelocimetro[1], 0);
  1029.     TextDrawSetProportional(textVelocimetro[1], 1);
  1030.     TextDrawSetShadow(textVelocimetro[1], 1);
  1031.     TextDrawSetSelectable(textVelocimetro[1], 0);
  1032.  
  1033.     textVelocimetro[2] = TextDrawCreate(379.000000, 406.000000, "i");
  1034.     TextDrawBackgroundColor(textVelocimetro[2], 0);
  1035.     TextDrawFont(textVelocimetro[2], 2);
  1036.     TextDrawLetterSize(textVelocimetro[2], 28.800073, 2.600000);
  1037.     TextDrawColor(textVelocimetro[2], 80);
  1038.     TextDrawSetOutline(textVelocimetro[2], 0);
  1039.     TextDrawSetProportional(textVelocimetro[2], 1);
  1040.     TextDrawSetShadow(textVelocimetro[2], 1);
  1041.     TextDrawSetSelectable(textVelocimetro[2], 0);
  1042.  
  1043.     textVelocimetro[3] = TextDrawCreate(379.000000, 420.000000, "i");
  1044.     TextDrawBackgroundColor(textVelocimetro[3], 0);
  1045.     TextDrawFont(textVelocimetro[3], 2);
  1046.     TextDrawLetterSize(textVelocimetro[3], 28.800073, 2.600000);
  1047.     TextDrawColor(textVelocimetro[3], 80);
  1048.     TextDrawSetOutline(textVelocimetro[3], 0);
  1049.     TextDrawSetProportional(textVelocimetro[3], 1);
  1050.     TextDrawSetShadow(textVelocimetro[3], 1);
  1051.     TextDrawSetSelectable(textVelocimetro[3], 0);
  1052.  
  1053.     textVelocimetro[4] = TextDrawCreate(531.000000, 387.000000, "Carro~n~~n~Velocidade~n~~n~Combustivel~n~~n~Lataria");
  1054.     TextDrawAlignment(textVelocimetro[4], 3);
  1055.     TextDrawBackgroundColor(textVelocimetro[4], 0);
  1056.     TextDrawFont(textVelocimetro[4], 2);
  1057.     TextDrawLetterSize(textVelocimetro[4], 0.210000, 0.799999);
  1058.     TextDrawColor(textVelocimetro[4], -186);
  1059.     TextDrawSetOutline(textVelocimetro[4], 0);
  1060.     TextDrawSetProportional(textVelocimetro[4], 1);
  1061.     TextDrawSetShadow(textVelocimetro[4], 1);
  1062.     TextDrawSetSelectable(textVelocimetro[4], 0);
  1063.  
  1064.  
  1065.  
  1066. /*    TDEditor_TD[0] = TextDrawCreate(555.651672, 3.916637, "A");
  1067.     TextDrawLetterSize(TDEditor_TD[0], 0.598652, 3.099169);
  1068.     TextDrawAlignment(TDEditor_TD[0], 1);
  1069.     TextDrawColor(TDEditor_TD[0], -16776961);
  1070.     TextDrawSetShadow(TDEditor_TD[0], 0);
  1071.     TextDrawSetOutline(TDEditor_TD[0], 0);
  1072.     TextDrawBackgroundColor(TDEditor_TD[0], 255);
  1073.     TextDrawFont(TDEditor_TD[0], 0);
  1074.     TextDrawSetProportional(TDEditor_TD[0], 1);
  1075.     TextDrawSetShadow(TDEditor_TD[0], 0);
  1076.  
  1077.     TDEditor_TD[1] = TextDrawCreate(572.049865, 8.000009, "labama");
  1078.     TextDrawLetterSize(TDEditor_TD[1], 0.400000, 1.600000);
  1079.     TextDrawAlignment(TDEditor_TD[1], 1);
  1080.     TextDrawColor(TDEditor_TD[1], -1);
  1081.     TextDrawSetShadow(TDEditor_TD[1], 0);
  1082.     TextDrawSetOutline(TDEditor_TD[1], 0);
  1083.     TextDrawBackgroundColor(TDEditor_TD[1], 255);
  1084.     TextDrawFont(TDEditor_TD[1], 1);
  1085.     TextDrawSetProportional(TDEditor_TD[1], 1);
  1086.     TextDrawSetShadow(TDEditor_TD[1], 0);
  1087.  
  1088.     TDEditor_TD[2] = TextDrawCreate(572.050415, 19.666662, "roleplay");
  1089.     TextDrawLetterSize(TDEditor_TD[2], 0.214933, 1.564999);
  1090.     TextDrawAlignment(TDEditor_TD[2], 1);
  1091.     TextDrawColor(TDEditor_TD[2], -1);
  1092.     TextDrawSetShadow(TDEditor_TD[2], 0);
  1093.     TextDrawSetOutline(TDEditor_TD[2], 0);
  1094.     TextDrawBackgroundColor(TDEditor_TD[2], 255);
  1095.     TextDrawFont(TDEditor_TD[2], 2);
  1096.     TextDrawSetProportional(TDEditor_TD[2], 1);
  1097.     TextDrawSetShadow(TDEditor_TD[2], 0); */
  1098.    
  1099. /*    TDEditor_TD[0] = TextDrawCreate(562.211303, 10.333308, "ALABAMA");
  1100.     TextDrawLetterSize(TDEditor_TD[0], 0.251009, 1.378334);
  1101.     TextDrawAlignment(TDEditor_TD[0], 1);
  1102.     TextDrawColor(TDEditor_TD[0], -5897985);
  1103.     TextDrawSetShadow(TDEditor_TD[0], 0);
  1104.     TextDrawSetOutline(TDEditor_TD[0], 0);
  1105.     TextDrawBackgroundColor(TDEditor_TD[0], 255);
  1106.     TextDrawFont(TDEditor_TD[0], 1);
  1107.     TextDrawSetProportional(TDEditor_TD[0], 1);
  1108.     TextDrawSetShadow(TDEditor_TD[0], 0);
  1109.  
  1110.     TDEditor_TD[1] = TextDrawCreate(562.210998, 20.833358, "ROLE_PLAY");
  1111.     TextDrawLetterSize(TDEditor_TD[1], 0.222898, 0.824166);
  1112.     TextDrawAlignment(TDEditor_TD[1], 1);
  1113.     TextDrawColor(TDEditor_TD[1], -111);
  1114.     TextDrawSetShadow(TDEditor_TD[1], 0);
  1115.     TextDrawSetOutline(TDEditor_TD[1], 0);
  1116.     TextDrawBackgroundColor(TDEditor_TD[1], 255);
  1117.     TextDrawFont(TDEditor_TD[1], 1);
  1118.     TextDrawSetProportional(TDEditor_TD[1], 1);
  1119.     TextDrawSetShadow(TDEditor_TD[1], 0); */
  1120.    
  1121.     TDEditor_TD[0] = TextDrawCreate(541.127380, 3.916668, "ALABAMA");
  1122.     TextDrawLetterSize(TDEditor_TD[0], 0.400000, 1.600000);
  1123.     TextDrawAlignment(TDEditor_TD[0], 1);
  1124.     TextDrawColor(TDEditor_TD[0], -6487809);
  1125.     TextDrawSetShadow(TDEditor_TD[0], 0);
  1126.     TextDrawSetOutline(TDEditor_TD[0], 0);
  1127.     TextDrawBackgroundColor(TDEditor_TD[0], 255);
  1128.     TextDrawFont(TDEditor_TD[0], 1);
  1129.     TextDrawSetProportional(TDEditor_TD[0], 1);
  1130.     TextDrawSetShadow(TDEditor_TD[0], 0);
  1131.  
  1132.     TDEditor_TD[1] = TextDrawCreate(605.783447, 6.250008, "box");
  1133.     TextDrawLetterSize(TDEditor_TD[1], 0.000000, 1.332358);
  1134.     TextDrawTextSize(TDEditor_TD[1], 619.000000, 0.000000);
  1135.     TextDrawAlignment(TDEditor_TD[1], 1);
  1136.     TextDrawColor(TDEditor_TD[1], -65281);
  1137.     TextDrawUseBox(TDEditor_TD[1], 1);
  1138.     TextDrawBoxColor(TDEditor_TD[1], -6553345);
  1139.     TextDrawSetShadow(TDEditor_TD[1], 0);
  1140.     TextDrawSetOutline(TDEditor_TD[1], 0);
  1141.     TextDrawBackgroundColor(TDEditor_TD[1], 255);
  1142.     TextDrawFont(TDEditor_TD[1], 1);
  1143.     TextDrawSetProportional(TDEditor_TD[1], 1);
  1144.     TextDrawSetShadow(TDEditor_TD[1], 0);
  1145.  
  1146.     TDEditor_TD[2] = TextDrawCreate(604.846496, 3.916665, "RP");
  1147.     TextDrawLetterSize(TDEditor_TD[2], 0.400000, 1.600000);
  1148.     TextDrawAlignment(TDEditor_TD[2], 1);
  1149.     TextDrawColor(TDEditor_TD[2], -1);
  1150.     TextDrawSetShadow(TDEditor_TD[2], 0);
  1151.     TextDrawSetOutline(TDEditor_TD[2], 0);
  1152.     TextDrawBackgroundColor(TDEditor_TD[2], 255);
  1153.     TextDrawFont(TDEditor_TD[2], 1);
  1154.     TextDrawSetProportional(TDEditor_TD[2], 1);
  1155.     TextDrawSetShadow(TDEditor_TD[2], 0);
  1156.  
  1157.     //Actor
  1158.     CreateActor(20, 1127.5110, -1414.5490, 13.5889, 180.5489);
  1159.     Create3DTextLabel("Bem vindo ao Alabama Role Play, ara!", 0xFFFF00AA, 1127.5110, -1414.5490, 13.5889, 50.0, 0, 0);
  1160.  
  1161.  
  1162.     //Veiculo
  1163.     txtveiculo1 = Create3DTextLabel("[Veiculo publico]", COLOR_LIGHTORANGE, 2794.8088, 1295.2334, 10.2656, 50.0, 0);
  1164.     txtveiculo2 = Create3DTextLabel("[Veiculo publico]", COLOR_LIGHTORANGE, 2791.4829, 1295.0797, 10.2656, 50.0, 0);
  1165.     txtveiculo3 = Create3DTextLabel("[Veiculo publico]", COLOR_LIGHTORANGE, 2788.2441, 1295.1041, 10.2659, 50.0, 0);
  1166.     txtveiculo4 = Create3DTextLabel("[Veiculo publico]", COLOR_LIGHTORANGE, 2785.0964, 1294.9896, 10.2663, 50.0, 0);
  1167.     txtveiculo5 = Create3DTextLabel("[Veiculo publico]", COLOR_LIGHTORANGE, 2781.8022, 1294.8815, 10.2661, 50.0, 0);
  1168.     txtveiculo6 = Create3DTextLabel("[Veiculo publico]", COLOR_LIGHTORANGE, 2778.7500, 1294.7993, 10.2665, 50.0, 0);
  1169.     txtveiculo7 = Create3DTextLabel("[Veiculo publico]", COLOR_LIGHTORANGE, 2775.5659, 1294.8186, 10.2667, 50.0, 0);
  1170.    
  1171.     taxivip1 = Create3DTextLabel("[Alabama Taxi]", COLOR_LIGHTORANGE, 0, 0, 0, 50.0, 0);
  1172.     taxivip2 = Create3DTextLabel("[Alabama Taxi]", COLOR_LIGHTORANGE, 0, 0, 0, 50.0, 0);
  1173.     taxivip3 = Create3DTextLabel("[Alabama Taxi]", COLOR_LIGHTORANGE, 0, 0, 0, 50.0, 0);
  1174.  
  1175.     //Bikes Spawn
  1176.     veiculo1 = AddStaticVehicle(481,362.9130,-1535.5465,32.9128,141.7329,6,6); // bike 1
  1177.     veiculo2 = AddStaticVehicle(481,367.3380,-1530.1464,32.7141,139.3316,6,6); // bike 2
  1178.     veiculo3 = AddStaticVehicle(481,371.8174,-1524.9314,32.5268,139.3303,6,6); // bike 3
  1179.     veiculo4 = AddStaticVehicle(481,377.1962,-1520.2043,32.3264,127.9304,6,6); // bike 4
  1180.     veiculo5 = AddStaticVehicle(481,383.3857,-1515.5063,32.1116,126.7084,6,6); // bike 5
  1181.     veiculo6 = AddStaticVehicle(481,389.2745,-1511.1143,31.9179,126.7013,6,6); // bike 6
  1182.     veiculo7 = AddStaticVehicle(481,394.7879,-1507.1544,31.6555,127.7597,6,6); // bike 7
  1183.    
  1184.     Attach3DTextLabelToVehicle(txtveiculo1, veiculo1, 0.0,0.0,0.0);
  1185.     Attach3DTextLabelToVehicle(txtveiculo2, veiculo2, 0.0,0.0,0.0);
  1186.     Attach3DTextLabelToVehicle(txtveiculo3, veiculo3, 0.0,0.0,0.0);
  1187.     Attach3DTextLabelToVehicle(txtveiculo4, veiculo4, 0.0,0.0,0.0);
  1188.     Attach3DTextLabelToVehicle(txtveiculo5, veiculo5, 0.0,0.0,0.0);
  1189.     Attach3DTextLabelToVehicle(txtveiculo6, veiculo6, 0.0,0.0,0.0);
  1190.     Attach3DTextLabelToVehicle(txtveiculo7, veiculo7, 0.0,0.0,0.0);
  1191.     Attach3DTextLabelToVehicle(taxivip1, taxi1, 0.0, 0.0, 0.0);
  1192.     Attach3DTextLabelToVehicle(taxivip2, taxi2, 0.0, 0.0, 0.0);
  1193.     Attach3DTextLabelToVehicle(taxivip3, taxi3, 0.0, 0.0, 0.0);
  1194.  
  1195.  
  1196.     SetGameModeText("Role Play");
  1197.    
  1198.     for(new i=1; i<MAX_VEHICLES; i++)
  1199.     {
  1200.         SetVehicleNumberPlate(i, "ALABAMA");
  1201.     }
  1202.     return 1;
  1203. }
  1204.  
  1205. public OnGameModeExit()
  1206. {
  1207.     DOF2_Exit();
  1208.  
  1209.     Elevator_Destroy();
  1210.     new x=0;
  1211.  
  1212.     DestroyObject(gFerrisWheel);
  1213.     DestroyObject(gFerrisBase);
  1214.  
  1215.     x=0;
  1216.     while(x != NUM_FERRIS_CAGES) {
  1217.         DestroyObject(gFerrisCages[x]);
  1218.         x++;
  1219.     }
  1220.     return 1;
  1221. }
  1222.  
  1223. public OnPlayerRequestClass(playerid, classid)
  1224. {
  1225.     InterpolateCameraPos(playerid, 2113.331298, 1241.824584, 73.120719, 1329.608398, -1082.510742, 150.812438, 9000);
  1226.     InterpolateCameraLookAt(playerid, 2116.562988, 1244.470581, 70.372108, 1330.883300, -1078.045288, 148.959289, 9000);
  1227.     return 1;
  1228. }
  1229.  
  1230. public OnPlayerConnect(playerid)
  1231. {
  1232.     new file[64];
  1233.     GetPlayerName(playerid,file,sizeof(file));
  1234.     format(file,sizeof(file),DOF2_File(file));
  1235.     if(DOF2_FileExists(file))
  1236.     {
  1237.         ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT,"{3ECEA7}Bem-Vindo!","{FFFFFF}Digite sua senha para logar!","Logar","Sair");
  1238.        
  1239.     }
  1240.     else
  1241.     {
  1242.         ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT,"{3ECEA7}Registre-se","{FFFFFF}Digite sua senha para logar.","Registrar","Sair");
  1243.        
  1244.     }
  1245.  
  1246.     if(IsPlayerNPC(playerid)) return 0;
  1247.  
  1248.     LoadStats(playerid);
  1249.  
  1250.     SetTimerEx("Upar", 30000*60, true, "i", playerid);
  1251.  
  1252.     RemoveBuildingForPlayer(playerid, 4024, 1479.8672, -1790.3984, 56.0234, 0.25);
  1253.     RemoveBuildingForPlayer(playerid, 4044, 1481.1875, -1785.0703, 22.3828, 0.25);
  1254.     RemoveBuildingForPlayer(playerid, 4046, 1479.5234, -1852.6406, 24.5156, 0.25);
  1255.     RemoveBuildingForPlayer(playerid, 4047, 1531.6328, -1852.6406, 24.5156, 0.25);
  1256.     RemoveBuildingForPlayer(playerid, 1527, 1448.2344, -1755.8984, 14.5234, 0.25);
  1257.     RemoveBuildingForPlayer(playerid, 4217, 1449.2500, -1852.5703, 22.3672, 0.25);
  1258.     RemoveBuildingForPlayer(playerid, 1266, 1482.0859, -1859.9688, 25.0391, 0.25);
  1259.     RemoveBuildingForPlayer(playerid, 1265, 1465.4766, -1848.2500, 12.9922, 0.25);
  1260.     RemoveBuildingForPlayer(playerid, 1372, 1466.9453, -1847.8438, 12.6641, 0.25);
  1261.     RemoveBuildingForPlayer(playerid, 1372, 1419.7344, -1846.5469, 12.6641, 0.25);
  1262.     RemoveBuildingForPlayer(playerid, 1265, 1420.4297, -1845.3438, 12.9844, 0.25);
  1263.     RemoveBuildingForPlayer(playerid, 1372, 1419.6953, -1844.2031, 12.6641, 0.25);
  1264.     RemoveBuildingForPlayer(playerid, 1220, 1420.4922, -1842.4375, 12.9297, 0.25);
  1265.     RemoveBuildingForPlayer(playerid, 1220, 1419.7266, -1842.8516, 12.9297, 0.25);
  1266.     RemoveBuildingForPlayer(playerid, 1230, 1419.6719, -1842.0313, 12.9766, 0.25);
  1267.     RemoveBuildingForPlayer(playerid, 4170, 1433.9531, -1844.4063, 21.4219, 0.25);
  1268.     RemoveBuildingForPlayer(playerid, 1260, 1482.0859, -1859.9688, 25.0391, 0.25);
  1269.     RemoveBuildingForPlayer(playerid, 4004, 1479.5234, -1852.6406, 24.5156, 0.25);
  1270.     RemoveBuildingForPlayer(playerid, 1357, 1487.6953, -1848.1094, 12.8125, 0.25);
  1271.     RemoveBuildingForPlayer(playerid, 1372, 1486.2109, -1848.1250, 12.6641, 0.25);
  1272.     RemoveBuildingForPlayer(playerid, 1372, 1468.0625, -1847.7891, 12.6641, 0.25);
  1273.     RemoveBuildingForPlayer(playerid, 1230, 1488.9219, -1848.2734, 12.9766, 0.25);
  1274.     RemoveBuildingForPlayer(playerid, 4171, 1503.3984, -1848.3359, 21.4609, 0.25);
  1275.     RemoveBuildingForPlayer(playerid, 1265, 1515.3828, -1850.0547, 12.9844, 0.25);
  1276.     RemoveBuildingForPlayer(playerid, 1265, 1514.4219, -1850.0391, 12.9922, 0.25);
  1277.     RemoveBuildingForPlayer(playerid, 1372, 1516.6875, -1850.0547, 12.6641, 0.25);
  1278.     RemoveBuildingForPlayer(playerid, 4002, 1479.8672, -1790.3984, 56.0234, 0.25);
  1279.     RemoveBuildingForPlayer(playerid, 3980, 1481.1875, -1785.0703, 22.3828, 0.25);
  1280.     RemoveBuildingForPlayer(playerid, 4003, 1481.0781, -1747.0313, 33.5234, 0.25);
  1281.     RemoveBuildingForPlayer(playerid, 4048, 1531.6328, -1852.6406, 24.5156, 0.25);
  1282.     RemoveBuildingForPlayer(playerid, 1372, 1538.9453, -1849.2734, 12.6641, 0.25);
  1283.     RemoveBuildingForPlayer(playerid, 1230, 1538.8359, -1847.6250, 13.6719, 0.25);
  1284.     RemoveBuildingForPlayer(playerid, 1220, 1538.3906, -1847.9297, 12.9297, 0.25);
  1285.     RemoveBuildingForPlayer(playerid, 1220, 1539.1016, -1847.2969, 12.9297, 0.25);
  1286.  
  1287.     SetPlayerMapIcon(playerid, 4, 1213.2494, -1319.8055, 13.5581, 29, 0, MAPICON_LOCAL); //Barraca do seu ze
  1288.     SetPlayerMapIcon(playerid, 5, 1172.6122, -1323.5563, 15.4031, 22, 0, MAPICON_LOCAL); //Hospital
  1289.     SetPlayerMapIcon(playerid, 6, 1127.4562, -1424.3643, 15.7969, 35, 0, MAPICON_LOCAL); //Spawn
  1290.     SetPlayerMapIcon(playerid, 7, 1286.0106, -1329.3807, 13.5514, 52, 0, MAPICON_LOCAL); //Banco
  1291.     SetPlayerMapIcon(playerid, 8, 1480.1147, -1759.8763, 13.5469, 56, 0, MAPICON_LOCAL); //Cityhall
  1292.     SetPlayerMapIcon(playerid, 9, 1362.8732, -1739.3807, 13.5469, 29, 0, MAPICON_LOCAL); //Barraca do seu ze 2
  1293.  
  1294.     //Entrada Banco
  1295.     CreatePickup(1274, 1, 1286.0106, -1329.3807, 13.5514, 0);
  1296.     Create3DTextLabel("[Banco]", COLOR_LIGHTORANGE, 1286.0106, -1329.3807, 13.5514, 50.0, 0, 0);
  1297.    
  1298.     CreatePickup(19132, 1, 1480.1147, -1759.8763, 13.5469, 0);
  1299.     Create3DTextLabel("[Hall da cidade]", COLOR_LIGHTORANGE, 1480.1147, -1759.8763, 13.5469, 50.0, 0, 0);
  1300.    
  1301.     CreatePickup(19132, 1, 389.9933, 173.8433, 1008.3828, 0);
  1302.     Create3DTextLabel("[Saida]", COLOR_LIGHTORANGE, 389.9933, 173.8433, 1008.3828, 50.0, 0, 0);
  1303.  
  1304.  
  1305.     PlayerVelocimetro[playerid] = false ;
  1306.  
  1307.     textPlayerVelocimetro[0][playerid] = CreatePlayerTextDraw(playerid,615.000000, 385.000000, "Nenhum");
  1308.     PlayerTextDrawAlignment(playerid,textPlayerVelocimetro[0][playerid], 3);
  1309.     PlayerTextDrawBackgroundColor(playerid,textPlayerVelocimetro[0][playerid], 0);
  1310.     PlayerTextDrawFont(playerid,textPlayerVelocimetro[0][playerid], 1);
  1311.     PlayerTextDrawLetterSize(playerid,textPlayerVelocimetro[0][playerid], 0.330000, 1.299999);
  1312.     PlayerTextDrawColor(playerid,textPlayerVelocimetro[0][playerid], -156);
  1313.     PlayerTextDrawSetOutline(playerid,textPlayerVelocimetro[0][playerid], 0);
  1314.     PlayerTextDrawSetProportional(playerid,textPlayerVelocimetro[0][playerid], 1);
  1315.     PlayerTextDrawSetShadow(playerid,textPlayerVelocimetro[0][playerid], 1);
  1316.     PlayerTextDrawSetSelectable(playerid,textPlayerVelocimetro[0][playerid], 0);
  1317.  
  1318.     textPlayerVelocimetro[1][playerid] = CreatePlayerTextDraw(playerid,615.000000, 399.000000, "000 km/h");
  1319.     PlayerTextDrawAlignment(playerid,textPlayerVelocimetro[1][playerid], 3);
  1320.     PlayerTextDrawBackgroundColor(playerid,textPlayerVelocimetro[1][playerid], 0);
  1321.     PlayerTextDrawFont(playerid,textPlayerVelocimetro[1][playerid], 2);
  1322.     PlayerTextDrawLetterSize(playerid,textPlayerVelocimetro[1][playerid], 0.250000, 1.299999);
  1323.     PlayerTextDrawColor(playerid,textPlayerVelocimetro[1][playerid], -156);
  1324.     PlayerTextDrawSetOutline(playerid,textPlayerVelocimetro[1][playerid], 0);
  1325.     PlayerTextDrawSetProportional(playerid,textPlayerVelocimetro[1][playerid], 1);
  1326.     PlayerTextDrawSetShadow(playerid,textPlayerVelocimetro[1][playerid], 1);
  1327.     PlayerTextDrawSetSelectable(playerid,textPlayerVelocimetro[1][playerid], 0);
  1328.  
  1329.     textPlayerVelocimetro[2][playerid] = CreatePlayerTextDraw(playerid,615.000000, 413.000000, "0 litros");
  1330.     PlayerTextDrawAlignment(playerid,textPlayerVelocimetro[2][playerid], 3);
  1331.     PlayerTextDrawBackgroundColor(playerid,textPlayerVelocimetro[2][playerid], 0);
  1332.     PlayerTextDrawFont(playerid,textPlayerVelocimetro[2][playerid], 2);
  1333.     PlayerTextDrawLetterSize(playerid,textPlayerVelocimetro[2][playerid], 0.250000, 1.299999);
  1334.     PlayerTextDrawColor(playerid,textPlayerVelocimetro[2][playerid], -156);
  1335.     PlayerTextDrawSetOutline(playerid,textPlayerVelocimetro[2][playerid], 0);
  1336.     PlayerTextDrawSetProportional(playerid,textPlayerVelocimetro[2][playerid], 1);
  1337.     PlayerTextDrawSetShadow(playerid,textPlayerVelocimetro[2][playerid], 1);
  1338.     PlayerTextDrawSetSelectable(playerid,textPlayerVelocimetro[2][playerid], 0);
  1339.  
  1340.     textPlayerVelocimetro[3][playerid] = CreatePlayerTextDraw(playerid,615.000000, 427.000000, "0%");
  1341.     PlayerTextDrawAlignment(playerid,textPlayerVelocimetro[3][playerid], 3);
  1342.     PlayerTextDrawBackgroundColor(playerid,textPlayerVelocimetro[3][playerid], 0);
  1343.     PlayerTextDrawFont(playerid,textPlayerVelocimetro[3][playerid], 2);
  1344.     PlayerTextDrawLetterSize(playerid,textPlayerVelocimetro[3][playerid], 0.250000, 1.299999);
  1345.     PlayerTextDrawColor(playerid,textPlayerVelocimetro[3][playerid], -156);
  1346.     PlayerTextDrawSetOutline(playerid,textPlayerVelocimetro[3][playerid], 0);
  1347.     PlayerTextDrawSetProportional(playerid,textPlayerVelocimetro[3][playerid], 1);
  1348.     PlayerTextDrawSetShadow(playerid,textPlayerVelocimetro[3][playerid], 1);
  1349.     PlayerTextDrawSetSelectable(playerid,textPlayerVelocimetro[3][playerid], 0);
  1350.  
  1351.  
  1352.     SendClientMessage(playerid, COLOR_LIGHTORANGE, "Conectado...");
  1353.     SendClientMessage(playerid, COLOR_LIGHTORANGE, "Aguarde...");
  1354.     return 1;
  1355. }
  1356.  
  1357. CMD:aduty(playerid, params[])
  1358. {
  1359.     if(IsPlayerAdmin(playerid))
  1360.     {
  1361.     SendClientMessage(playerid, COLOR_AQUA, "Voce esta trabalhando");
  1362.     SetPlayerSkin(playerid, 217);
  1363.     SendClientMessageToAll(COLOR_AQUA, "[Administracao] Fundador: {FFFFFF}Cougar esta em modo trabalho!");
  1364.     }
  1365.     return 1;
  1366. }
  1367.  
  1368. CMD:offduty(playerid, params[])
  1369. {
  1370.     if(IsPlayerAdmin(playerid))
  1371.     {
  1372.     SendClientMessage(playerid, COLOR_AQUA, "Voce saiu do modo trabalho!");
  1373.     SetPlayerSkin(playerid, skin);
  1374.     SendClientMessageToAll(COLOR_AQUA, "[Administracao] Fundador: {FFFFFF}Cougar saiu do modo trabalho!");
  1375.     }
  1376.     return 1;
  1377. }
  1378.  
  1379. public OnPlayerDisconnect(playerid, reason)
  1380. {
  1381.     new file[64];
  1382.     GetPlayerName(playerid,file,sizeof(file));
  1383.     format(file,sizeof(file),DOF2_File(file));
  1384.     DOF2_SetInt(file, "Kills",PlayerInfo[playerid][pKills]);
  1385.     DOF2_SetInt(file, "Deaths",PlayerInfo[playerid][pDeaths]);
  1386.     DOF2_SetInt(file, "Money",PlayerInfo[playerid][pMoney]);
  1387.     DOF2_SetInt(file, "AdminLevel",PlayerInfo[playerid][pAdmin]);
  1388.  
  1389.     skin = GetPlayerSkin(playerid);
  1390.     if (PlayerVelocimetro[playerid]) {
  1391.         KillTimer(PlayerVelocimetroTimer[playerid]);
  1392.     }
  1393.    
  1394.     if (!dini_Exists(Skin(playerid)))
  1395.     {
  1396.         dini_Create(Skin(playerid));
  1397.     }
  1398.     SaveStats(playerid);
  1399.     return 1;
  1400. }
  1401.  
  1402. public OnPlayerSpawn(playerid)
  1403. {
  1404.     if (dini_Exists(Skin(playerid))) {
  1405.         SetPlayerSkin(playerid, skin);
  1406.     }
  1407.  
  1408.     TextDrawShowForPlayer(playerid, TDEditor_TD[0]);
  1409.     TextDrawShowForPlayer(playerid, TDEditor_TD[1]);
  1410.     TextDrawShowForPlayer(playerid, TDEditor_TD[2]);
  1411.     return 1;
  1412. }
  1413.  
  1414. SaveStats(playerid)
  1415. {
  1416.   dini_IntSet(Skin(playerid), "skin", (skin));
  1417. }
  1418.  
  1419. LoadStats(playerid)
  1420. {
  1421.   skin = dini_Int(Skin(playerid), "skin");
  1422. }
  1423.  
  1424. PlayerSkin(playerid)
  1425. {
  1426.  new player[MAX_PLAYER_NAME];
  1427.  GetPlayerName(playerid, player, sizeof(player));
  1428.  return player;
  1429. }
  1430.  
  1431. Skin(playerid)
  1432. {
  1433.   new a[256]; format(a, sizeof(a), "%s.ini",udb_encode(PlayerSkin(playerid)));
  1434.   return a;
  1435. }
  1436.  
  1437.  
  1438. public OnPlayerDeath(playerid, killerid, reason)
  1439. {
  1440.     PlayerInfo[killerid][pKills]++;
  1441.     PlayerInfo[playerid][pDeaths]++;
  1442.  
  1443.     if(killerid != INVALID_PLAYER_ID)
  1444.     {
  1445.         if(GetPlayerWeapon(killerid) == 38) Ban(killerid);
  1446.         SendClientMessageToAll(COLOR_RED, "[Aviso] Um jogador foi banido automaticamente | Motivo: Weapon Hack");
  1447.     }
  1448.    
  1449.     SetPlayerHealth(playerid, 15);
  1450.     SendClientMessage(playerid, COLOR_RED, "[Hospital] Voce foi nocauteado e por isso foi levado ao hospital as pressas! Voce sobreviveu!");
  1451.     SetPlayerInterior(playerid, 6);
  1452.     SetPlayerPos(playerid, 1668.7855, -1705.6234, 16.4379);
  1453.     TogglePlayerControllable(playerid, 0);
  1454.     SetTimerEx("Hospitalizado", 5000, false, "i", playerid);
  1455.     return 1;
  1456. }
  1457.  
  1458. public OnVehicleSpawn(vehicleid)
  1459. {
  1460.     return 1;
  1461. }
  1462.  
  1463. public OnVehicleDeath(vehicleid, killerid)
  1464. {
  1465.     return 1;
  1466. }
  1467.  
  1468. public OnPlayerText(playerid, text[])
  1469. {
  1470.     ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,0,1,0);
  1471.     return 1;
  1472. }
  1473.  
  1474. CMD:ban(playerid, params[])
  1475. {
  1476.     new id, reason[50], string[128], banned[MAX_PLAYER_NAME];
  1477.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"[Aviso] Voce nao tem permissao para isso!");
  1478.     if(sscanf(params, "uz", id, reason)) return SendClientMessage(playerid, -1, "USO: /ban [playerid] [motivo]");
  1479.     GetPlayerName(id, banned, sizeof(banned));
  1480.     format(string, sizeof(string), "[Administrador] %s foi banido permanentemente por %s. motivo: %s", banned, GetName(playerid), reason);
  1481.     SendClientMessageToAll(COLOR_RED, string);
  1482.     SetTimerEx("Banir", 500, false, "d", id);
  1483.     return 1;
  1484. }
  1485.  
  1486. CMD:ahelp(playerid, params[])
  1487. {
  1488.     if(IsPlayerAdmin(playerid))
  1489.     ShowPlayerDialog(playerid, 9002, DIALOG_STYLE_MSGBOX, "{EF9B12}«Admin CMDS»", "/ban\n/kick\n/clearchat\n/kick", "Okay", "");
  1490.     return 1;
  1491. }
  1492.  
  1493. CMD:kick(playerid, params[])
  1494. {
  1495.     new id, reason[50], string[128], banned[MAX_PLAYER_NAME];
  1496.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"[Aviso] Voce nao tem permissao para isso!");
  1497.     if(sscanf(params, "uz", id, reason)) return SendClientMessage(playerid, -1, "USO: /kick [playerid] [motivo]");
  1498.     GetPlayerName(id, banned, sizeof(banned));
  1499.     format(string, sizeof(string), "[Administrador] %s foi kickado por %s. motivo: %s", banned, GetName(playerid), reason);
  1500.     SendClientMessageToAll(COLOR_RED, string);
  1501.     SetTimerEx("Kickar", 500, false, "d", id);
  1502.     return 1;
  1503. }
  1504.  
  1505. CMD:afk(playerid, params[])
  1506. {
  1507.     TogglePlayerControllable(playerid,0);
  1508.     GameTextForPlayer(playerid, "~r~Voce esta ~b~ afk !", 5000, 5);
  1509.     SetPlayerHealth(playerid, 1000000);
  1510.     SendClientMessage(playerid, -1, "{FF0000}[ --> AFK <-- ] : Digite /back quando voltar!");
  1511.     return 1;
  1512. }
  1513.  
  1514. CMD:handsup(playerid,params[])
  1515. {
  1516.     SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
  1517.     SendClientMessage(playerid, COLOR_LIGHTBLUE, "Para parar uma anim aperte Y");
  1518.     return 1;
  1519. }
  1520.  
  1521. CMD:clearchat(playerid, params[])
  1522. {
  1523.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "[Aviso] Voce nao tem permissao para isso!");
  1524.     SendClientMessageToAll(-1, "");
  1525.     SendClientMessageToAll(-1, "");
  1526.     SendClientMessageToAll(-1, "");
  1527.     SendClientMessageToAll(-1, "");
  1528.     SendClientMessageToAll(-1, "");
  1529.     SendClientMessageToAll(-1, "");
  1530.     SendClientMessageToAll(-1, "");
  1531.     SendClientMessageToAll(-1, "");
  1532.     SendClientMessageToAll(-1, "");
  1533.     SendClientMessageToAll(-1, "");
  1534.     SendClientMessageToAll(-1, "");
  1535.     SendClientMessageToAll(-1, "");
  1536.     SendClientMessageToAll(-1, "");
  1537.     SendClientMessageToAll(-1, "");
  1538.     SendClientMessageToAll(-1, "");
  1539.     SendClientMessageToAll(-1, "");
  1540.     SendClientMessageToAll(-1, "");
  1541.     SendClientMessageToAll(-1, "");
  1542.     SendClientMessageToAll(COLOR_GREEN, "Um administrador limpou o chat!");
  1543.     return 1;
  1544. }
  1545.  
  1546. CMD:back(playerid, params [])
  1547. {
  1548.     TogglePlayerControllable(playerid,1);
  1549.     GameTextForPlayer(playerid, "~r~Voce ~w~ voltou !", 5000, 5);
  1550.     SetPlayerHealth(playerid, 100);
  1551.     SendClientMessage(playerid, -1, "{FF0000}[ --> AFK <-- ] : Voce voltou ao PC!");
  1552.     return 1;
  1553. }
  1554.  
  1555. CMD:admins(playerid, params[])
  1556. {
  1557.     new name[MAX_PLAYER_NAME], string[128];
  1558.     for(new i=0; i<MAX_PLAYERS; i++)
  1559.     {
  1560.         if(IsPlayerAdmin(i))
  1561.         {
  1562.             GetPlayerName(i, name, sizeof(name));
  1563.             format(string, sizeof(string), "%s", name);
  1564.             ShowPlayerDialog(playerid, 9000, DIALOG_STYLE_MSGBOX, "(« Admins online »)", string, "OK","");
  1565.         }
  1566.     }
  1567.     return 1;
  1568. }
  1569.  
  1570. CMD:asay(playerid,params[])
  1571. {
  1572.     new asaytxt[60], asayftxt[128];
  1573.     if(IsPlayerAdmin(playerid))
  1574.     {
  1575.         if(sscanf(params, "s[60]", asaytxt)) return
  1576.         SendClientMessage(playerid, COLOR_LIGHTORANGE, "Uso: /asay [Text] ") &&
  1577.         SendClientMessage(playerid, COLOR_LIGHTORANGE, "Funcao: Anunciamento como Admin!");
  1578.         else
  1579.         {
  1580.             format(asayftxt, 128, "{F2F608}[Administrador] | {FFFFFF}%s ", asaytxt, playerid);
  1581.             return SendClientMessageToAll(-1, asayftxt);
  1582.         }
  1583.     }
  1584.     else return SendClientMessage(playerid, COLOR_RED, "ERRO: Voce nao tem permissao!");
  1585. }
  1586.  
  1587. CMD:beer(playerid, params[])
  1588. {
  1589.     SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER );
  1590.     SetPlayerDrunkLevel(playerid, 2);
  1591.     return 1;
  1592. }
  1593.  
  1594. CMD:report(playerid, params[])
  1595. {
  1596.     new string[128];
  1597.     if(!isnull(params))
  1598.     {
  1599.         SendClientMessage(playerid, COLOR_YELLOW, "Seu relatorio foi enviado a administracao:");
  1600.         format(string, sizeof(string), "%s", params);
  1601.         SendClientMessage(playerid, COLOR_YELLOW, string);
  1602.         for(new i=0; i<MAX_PLAYERS; i++)
  1603.         {
  1604.             if(IsPlayerAdmin(playerid))
  1605.             {
  1606.                 format(string, sizeof(string), "Relatorio de %s[%d]: %s", GetName(playerid), playerid, params);
  1607.                 SendClientMessage(i, COLOR_AQUA, string);
  1608.             }
  1609.         }
  1610.     }
  1611.     else
  1612.     {
  1613.         SendClientMessage(playerid, COLOR_LIGHTBLUE, "USO: /report [Texto]");
  1614.     }
  1615.     return 1;
  1616. }
  1617.  
  1618. stock GetName(playerid)
  1619. {
  1620.     new
  1621.         pName[MAX_PLAYER_NAME];
  1622.  
  1623.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  1624.     return pName;
  1625. }
  1626.  
  1627. public OnPlayerCommandText(playerid, cmdtext[])
  1628. {
  1629.     if (strcmp("/stats", cmdtext, true, 10) == 0)
  1630.     {
  1631.         if(IsPlayerConnected(playerid))
  1632.         {
  1633.             new statstring[128];
  1634.             SendClientMessage(playerid, COLOR_GREEN, "*** Seu status ***");
  1635.             format(statstring, sizeof(statstring), "Kills: %d",PlayerInfo[playerid][pKills]);
  1636.             SendClientMessage(playerid, COLOR_WHITE, statstring);
  1637.             format(statstring, sizeof(statstring), "Mortes: %d",PlayerInfo[playerid][pDeaths]);
  1638.             SendClientMessage(playerid, COLOR_WHITE, statstring);
  1639.             format(statstring, sizeof(statstring), "Dinheiro: $%d",GetPlayerMoney(playerid));
  1640.             SendClientMessage(playerid, COLOR_WHITE, statstring);
  1641.         }
  1642.         return 1;
  1643.     }
  1644.     return SendClientMessage(playerid, COLOR_RED, "Comando Invalido! - Use /report para falar com um admin!");
  1645. }
  1646.  
  1647. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  1648. {
  1649.     return 1;
  1650. }
  1651.  
  1652. public OnPlayerExitVehicle(playerid, vehicleid)
  1653. {
  1654.     return 1;
  1655. }
  1656.  
  1657. public OnPlayerStateChange(playerid, newstate, oldstate)
  1658. {
  1659.     if ( newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) {
  1660.     ShowPlayerVelocimetro(playerid) ;
  1661.     } else {
  1662.     HidePlayerVelocimetro(playerid) ;
  1663.     }
  1664.     return 1;
  1665. }
  1666.  
  1667. public OnPlayerEnterCheckpoint(playerid)
  1668. {
  1669.     return 1;
  1670. }
  1671.  
  1672. public OnPlayerLeaveCheckpoint(playerid)
  1673. {
  1674.     return 1;
  1675. }
  1676.  
  1677. public OnPlayerEnterRaceCheckpoint(playerid)
  1678. {
  1679.     return 1;
  1680. }
  1681.  
  1682. public OnPlayerLeaveRaceCheckpoint(playerid)
  1683. {
  1684.     return 1;
  1685. }
  1686.  
  1687. public OnRconCommand(cmd[])
  1688. {
  1689.     return 1;
  1690. }
  1691.  
  1692. public OnPlayerRequestSpawn(playerid)
  1693. {
  1694.     return 1;
  1695. }
  1696.  
  1697. public OnObjectMoved(objectid)
  1698. {
  1699.     new Float:x, Float:y, Float:z;
  1700.     for(new i; i < sizeof(Obj_FloorDoors); i ++)
  1701.     {
  1702.         if(objectid == Obj_FloorDoors[i][0])
  1703.         {
  1704.             GetObjectPos(Obj_FloorDoors[i][0], x, y, z);
  1705.  
  1706.             if(x < X_DOOR_L_OPENED - 0.5)
  1707.             {
  1708.                 Elevator_MoveToFloor(ElevatorQueue[0]);
  1709.                 RemoveFirstQueueFloor();
  1710.             }
  1711.         }
  1712.     }
  1713.  
  1714.     if(objectid == Obj_Elevator)
  1715.     {
  1716.         KillTimer(ElevatorBoostTimer);
  1717.  
  1718.         FloorRequestedBy[ElevatorFloor] = INVALID_PLAYER_ID;
  1719.  
  1720.         Elevator_OpenDoors();
  1721.         Floor_OpenDoors(ElevatorFloor);
  1722.  
  1723.         GetObjectPos(Obj_Elevator, x, y, z);
  1724.         Label_Elevator  = Create3DTextLabel("{CCCCCC}Aperte '{FFFFFF}~k~~CONVERSATION_NO~{CCCCCC}' para usar o elevador", 0xCCCCCCAA, 1784.9822, -1302.0426, z - 0.9, 4.0, 0, 1);
  1725.  
  1726.         ElevatorState   = ELEVATOR_STATE_WAITING;
  1727.         SetTimer("Elevator_TurnToIdle", ELEVATOR_WAIT_TIME, 0);
  1728.     }
  1729.  
  1730.  
  1731.     if(objectid != gFerrisWheel) return 0;
  1732.  
  1733.     SetTimer("RotateWheel",3*1000,0);
  1734.     return 1;
  1735. }
  1736.  
  1737. public OnPlayerObjectMoved(playerid, objectid)
  1738. {
  1739.     return 1;
  1740. }
  1741.  
  1742. public OnPlayerPickUpPickup(playerid, pickupid)
  1743. {
  1744.     if(pickupid == pickupvida)
  1745.     {
  1746.         SetPlayerHealth(playerid, 100.0);
  1747.         GameTextForPlayer(playerid, "+HP!", 3000, 3);
  1748.     }
  1749.     return 1;
  1750. }
  1751.  
  1752. public OnVehicleMod(playerid, vehicleid, componentid)
  1753. {
  1754.     return 1;
  1755. }
  1756.  
  1757. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  1758. {
  1759.     return 1;
  1760. }
  1761.  
  1762. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  1763. {
  1764.     return 1;
  1765. }
  1766.  
  1767. public OnPlayerSelectedMenuRow(playerid, row)
  1768. {
  1769.     return 1;
  1770. }
  1771.  
  1772. public OnPlayerExitedMenu(playerid)
  1773. {
  1774.     return 1;
  1775. }
  1776.  
  1777. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  1778. {
  1779.     return 1;
  1780. }
  1781.  
  1782. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  1783. {
  1784.     if(!IsPlayerInAnyVehicle(playerid) && (newkeys & KEY_NO))
  1785.     {
  1786.         new Float:pos[3];
  1787.         GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
  1788.         if(pos[1] < -1301.4 && pos[1] > -1303.2417 && pos[0] < 1786.2131 && pos[0] > 1784.1555)    // He is using the elevator button
  1789.             ShowElevatorDialog(playerid);
  1790.         else    // Is he in a floor button?
  1791.         {
  1792.             if(pos[1] > -1301.4 && pos[1] < -1299.1447 && pos[0] < 1785.6147 && pos[0] > 1781.9902)
  1793.             {
  1794.                 // He is most likely using it, check floor:
  1795.                 new i=20;
  1796.                 while(pos[2] < GetDoorsZCoordForFloor(i) + 3.5 && i > 0)
  1797.                     i --;
  1798.  
  1799.                 if(i == 0 && pos[2] < GetDoorsZCoordForFloor(0) + 2.0)
  1800.                     i = -1;
  1801.  
  1802.                 if(i <= 19)
  1803.                 {
  1804.                     CallElevator(playerid, i + 1);
  1805.                     GameTextForPlayer(playerid, "~r~Elevador chamado", 3500, 4);
  1806.                 }
  1807.             }
  1808.         }
  1809.     }
  1810.  
  1811.     if(newkeys & KEY_YES)
  1812.     {
  1813.         ClearAnimations(playerid);
  1814.     }
  1815.  
  1816.     if(newkeys & KEY_WALK)
  1817.     {
  1818.         if(IsPlayerInRangeOfPoint(playerid, 2.0, 1172.6122,-1323.5563,15.4031)) //Hospital
  1819.         {
  1820.           SetPlayerInterior(playerid, 18);
  1821.           SetPlayerPos(playerid, 1667.9747, -1715.1517, 15.6094);
  1822.         }
  1823.         if(IsPlayerInRangeOfPoint(playerid, 2.0, 1668.3256,-1719.4587,15.6094)) //Saida hosp
  1824.         {
  1825.           SetPlayerInterior(playerid, 0);
  1826.           SetPlayerPos(playerid, 1182.4596,-1324.1005,13.5794);
  1827.           GameTextForPlayer(playerid, "Los Santos", 2000, 3);
  1828.         }
  1829.         if(IsPlayerInRangeOfPoint(playerid, 2.0, 1286.0106, -1329.3807, 13.5514)) //Entrada banco
  1830.         {
  1831.             SetPlayerPos(playerid, 2552.5757, 1961.3040, -5.4011);
  1832.         }
  1833.  
  1834.         if(IsPlayerInRangeOfPoint(playerid, 1.0, 2552.2229, 1955.4025, -5.4011)) //Saida banco
  1835.         {
  1836.             SetPlayerPos(playerid, 1279.7527, -1329.7865, 13.3692);
  1837.         }
  1838.        
  1839.         if(IsPlayerInRangeOfPoint(playerid, 2.0, 1480.1147, -1759.8763, 13.5469)) //Entrada Hall
  1840.         {
  1841.             SetPlayerInterior(playerid, 3);
  1842.             SetPlayerPos(playerid, 384.808624, 173.804992, 1008.382812);
  1843.         }
  1844.        
  1845.         if(IsPlayerInRangeOfPoint(playerid, 3.0, 389.9933, 173.8433, 1008.3828)) //Saida Hall
  1846.         {
  1847.             SetPlayerInterior(playerid, 0);
  1848.             SetPlayerPos(playerid, 1480.1147, -1759.8763, 13.5469);
  1849.         }
  1850.        
  1851.         if(IsPlayerInRangeOfPoint(playerid, 2.0, 1362.8732, -1739.3807, 13.5469)) //Barraquinha 2
  1852.         {
  1853.             GivePlayerHealth(playerid, 15.0);
  1854.             GivePlayerMoney(playerid, -5);
  1855.             SendClientMessage(playerid, COLOR_LIGHTORANGE, "[Aviso] Voce comeu um lanche e aumentou sua vida!");
  1856.             SendClientMessage(playerid, COLOR_LIGHTORANGE, "[Custo] O lanche custou R$5!");
  1857.         }
  1858.        
  1859.         if(IsPlayerInRangeOfPoint(playerid, 2.0, 1213.2494, -1319.8055, 13.5581)) //Barraquinha 1
  1860.         {
  1861.             GivePlayerHealth(playerid, 15.0);
  1862.             GivePlayerMoney(playerid, -5);
  1863.             SendClientMessage(playerid, COLOR_LIGHTORANGE, "[Aviso] Voce comeu um lanche e aumentou sua vida!");
  1864.             SendClientMessage(playerid, COLOR_LIGHTORANGE, "[Custo] O lanche custou R$5!");
  1865.         }
  1866.     }
  1867.     return 1;
  1868. }
  1869.  
  1870. public OnRconLoginAttempt(ip[], password[], success)
  1871. {
  1872.     return 1;
  1873. }
  1874.  
  1875. public OnPlayerUpdate(playerid)
  1876. {
  1877.     if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
  1878.     {
  1879.         SendClientMessageToAll(COLOR_RED,"[Aviso] Um jogador foi banido automaticamente || Motivo: Jetpack Hack");
  1880.         Ban(playerid);
  1881.     }
  1882.     return 1;
  1883. }
  1884.  
  1885. public OnPlayerStreamIn(playerid, forplayerid)
  1886. {
  1887.     return 1;
  1888. }
  1889.  
  1890. public OnPlayerStreamOut(playerid, forplayerid)
  1891. {
  1892.     return 1;
  1893. }
  1894.  
  1895. public OnVehicleStreamIn(vehicleid, forplayerid)
  1896. {
  1897.     return 1;
  1898. }
  1899.  
  1900. public OnVehicleStreamOut(vehicleid, forplayerid)
  1901. {
  1902.     return 1;
  1903. }
  1904.  
  1905. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1906. {
  1907.     switch(dialogid)
  1908.     {
  1909.         case DIALOG_REGISTER:
  1910.         {
  1911.             if(!response) Kick(playerid);
  1912.             if(!strlen(inputtext)) return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT,"{3ECEA7}Registre-se!","{FFFFFF}Digite sua senha para registrar-se.","Registrar","Sair");
  1913.            
  1914.             if(response)
  1915.             {
  1916.                 new file[64];
  1917.                 GetPlayerName(playerid,file,sizeof(file));
  1918.                 format(file,sizeof(file),DOF2_File(file));
  1919.                 DOF2_CreateFile(file, inputtext);
  1920.                 DOF2_SetInt(file, "Kills", 0);
  1921.                 DOF2_SetInt(file, "Deaths", 0);
  1922.                 DOF2_SetInt(file, "Money", 1000);
  1923.                 DOF2_SetInt(file, "AdminLevel", 0);
  1924.                 DOF2_SaveFile();
  1925.                 SetSpawnInfo(playerid, 0, 78, 398.5277, -1530.0431, 32.2734, 41.6983, 0, 0, 0, 0, 0, 0);
  1926.                 SpawnPlayer(playerid);
  1927.             }
  1928.         }
  1929.         case DIALOG_LOGIN:
  1930.         {
  1931.             if(!response) Kick(playerid);
  1932.             if(response)
  1933.             {
  1934.                 new file[64];
  1935.                 GetPlayerName(playerid,file,sizeof(file));
  1936.                 format(file,sizeof(file),DOF2_File(file));
  1937.                 if(DOF2_FileExists(file))
  1938.                 {
  1939.                     if(DOF2_CheckLogin(file,inputtext))
  1940.                     {
  1941.                         PlayerInfo[playerid][pKills] = DOF2_GetInt(file,"Kills");
  1942.                         PlayerInfo[playerid][pDeaths] = DOF2_GetInt(file,"Deaths");
  1943.                         PlayerInfo[playerid][pMoney] = DOF2_GetInt(file,"Money");
  1944.                         PlayerInfo[playerid][pAdmin] = DOF2_GetInt(file,"AdminLevel");
  1945.                         SetSpawnInfo(playerid, 0, 78, 398.5277, -1530.0431, 32.2734, 41.6983, 0, 0, 0, 0, 0, 0);
  1946.                         SpawnPlayer(playerid);
  1947.                         GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
  1948.                         return 1;
  1949.                     }
  1950.                     else
  1951.                     {
  1952.                         ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT,"{FF0000}Senha incorreta!","{FFFFFF}Senha incorreta, digite-a corretamente","Logar","Sair");
  1953.                         return 1;
  1954.                     }
  1955.                 }
  1956.             }
  1957.         }
  1958.     }
  1959.  
  1960.     if(dialogid == DIALOG_ID)
  1961.     {
  1962.         if(!response)
  1963.             return 0;
  1964.  
  1965.         if(FloorRequestedBy[listitem] != INVALID_PLAYER_ID || IsFloorInQueue(listitem))
  1966.             GameTextForPlayer(playerid, "~r~O Andar ja esta na fila", 3500, 4);
  1967.         else if(DidPlayerRequestElevator(playerid))
  1968.             GameTextForPlayer(playerid, "~r~Elevador ja foi chamado", 3500, 4);
  1969.         else
  1970.             CallElevator(playerid, listitem);
  1971.     }
  1972.     return 1;
  1973. }
  1974.  
  1975. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  1976. {
  1977.     return 1;
  1978. }
  1979.  
  1980. public UpdatePlayerVelocimetro(playerid) {
  1981.  
  1982.         new playervehicle;
  1983.  
  1984.         if ( (playervehicle = GetPlayerVehicleID(playerid)) != INVALID_VEHICLE_ID) {
  1985.  
  1986.             new string_velo[15];
  1987.  
  1988.             format(string_velo, sizeof (string_velo), "%02d km/h", GetVehicleSpeed(playervehicle));
  1989.             PlayerTextDrawSetString(playerid, textPlayerVelocimetro[1][playerid], string_velo);
  1990.  
  1991.             format(string_velo, sizeof (string_velo), "%.0f%", GetVehicleHealthEx(playervehicle));
  1992.             PlayerTextDrawSetString(playerid, textPlayerVelocimetro[3][playerid], string_velo);
  1993.  
  1994.             /* Desativado:
  1995.             format(string_velo, sizeof (string_velo), "%02d Litros", Combustivel[playervehicle]);
  1996.             PlayerTextDrawSetString(playerid, textPlayerVelocimetro[2][playerid], string_velo);
  1997.                 */
  1998.         }
  1999.         return 1;
  2000. }
  2001.  
  2002. stock ShowPlayerVelocimetro(playerid) {
  2003.         if ( PlayerVelocimetro[playerid] ) {
  2004.             return 0;
  2005.         }
  2006.  
  2007.         PlayerTextDrawSetString(playerid, textPlayerVelocimetro[0][playerid], getVehicleName(GetPlayerVehicleID(playerid)));
  2008.  
  2009.         for( new text; text != 5; text++) TextDrawShowForPlayer(playerid, textVelocimetro[text]);
  2010.         for( new text; text != 4; text++) PlayerTextDrawShow(playerid, textPlayerVelocimetro[text][playerid]);
  2011.         PlayerVelocimetro[playerid] = true ;
  2012.         PlayerVelocimetroTimer[playerid] = SetTimerEx("UpdatePlayerVelocimetro", 100, true, "i", playerid);
  2013.         return 1;
  2014. }
  2015.  
  2016. stock HidePlayerVelocimetro(playerid) {
  2017.         if ( !PlayerVelocimetro[playerid] ) {
  2018.             return 0;
  2019.         }
  2020.         for( new text; text != 5; text++) TextDrawHideForPlayer(playerid, textVelocimetro[text]);
  2021.         for( new text; text != 4; text++) PlayerTextDrawHide(playerid, textPlayerVelocimetro[text][playerid]);
  2022.         PlayerVelocimetro[playerid] = false ;
  2023.         KillTimer(PlayerVelocimetroTimer[playerid]);
  2024.         return 1;
  2025. }
  2026.  
  2027. stock getVehicleName(vehicleid){
  2028.         new vehmodel = GetVehicleModel(vehicleid);
  2029.         new nameVeh[75];
  2030.  
  2031.         if (vehmodel < 400 || vehmodel > 611) {
  2032.                 strcat(nameVeh, "Nenhum");
  2033.                 return nameVeh;
  2034.         }
  2035.         strcat(nameVeh, VehicleNames[vehmodel - 400]);
  2036.         return nameVeh;
  2037. }
  2038.  
  2039. stock GetVehicleSpeed(vehicleid)
  2040. {
  2041.         new Float:xPos[3];
  2042.         GetVehicleVelocity(vehicleid, xPos[0], xPos[1], xPos[2]);
  2043.         return floatround(floatsqroot(xPos[0] * xPos[0] + xPos[1] * xPos[1] + xPos[2] * xPos[2]) * 170.00);
  2044. }
  2045.  
  2046. forward UpdatePlayerVelocimetro(playerid);
  2047.  
  2048. forward payday();
  2049. public payday()
  2050. {
  2051.     for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
  2052.     {
  2053.         GameTextForPlayer(i, "PAYDAY", 1000, 1);
  2054.         GivePlayerMoney(i, 1000);
  2055.         SetPlayerScore(i ,GetPlayerScore(i)+1);
  2056.         SendClientMessageToAll(-1, " ");
  2057.         SendClientMessageToAll(-1, " ");
  2058.         SendClientMessageToAll(-1, " ");
  2059.         SendClientMessageToAll(-1, " ");
  2060.         SendClientMessageToAll(-1, " ");
  2061.         SendClientMessageToAll(-1, " ");
  2062.         SendClientMessageToAll(-1, " ");
  2063.         SendClientMessageToAll(-1, " ");
  2064.         SendClientMessageToAll(-1, " ");
  2065.         SendClientMessageToAll(-1, " ");
  2066.         SendClientMessageToAll(-1, " ");
  2067.         SendClientMessageToAll(COLOR_YELLOW, "=========================");
  2068.         SendClientMessageToAll(COLOR_YELLOW, "=========================");
  2069.         SendClientMessageToAll(COLOR_YELLOW, "======   Payday   =======");
  2070.         SendClientMessageToAll(COLOR_YELLOW, "=========================");
  2071.         SendClientMessageToAll(COLOR_YELLOW, "=========================");
  2072.         SendClientMessageToAll(-1, " ");
  2073.         SendClientMessageToAll(COLOR_YELLOW, "Todos ganharam +1 Score e 1k de money!");
  2074.     }
  2075.     return 1;
  2076. }
  2077.  
  2078. forward Banir(playerid);
  2079. public Banir(playerid)
  2080. {
  2081.     Ban(playerid);
  2082.     return 1;
  2083. }
  2084.  
  2085. forward Kickar(playerid);
  2086. public Kickar(playerid)
  2087. {
  2088.     Kick(playerid);
  2089.     return 1;
  2090. }
  2091.  
  2092. forward SendMSG();
  2093. public SendMSG()
  2094. {
  2095.     new randMSG = random(sizeof(RandomMSG));
  2096.     SendClientMessageToAll(-1, RandomMSG[randMSG]);
  2097. }
  2098.  
  2099. forward Upar(playerid);
  2100. public Upar(playerid)
  2101. {
  2102.     new str[256];
  2103.     XP[playerid] ++;
  2104.     if(XP[playerid] == 4) // Checa se o jogador tem 4 pontos de XP
  2105.     {
  2106.     new Nivel = GetPlayerScore(playerid);
  2107.     SetPlayerScore(playerid,Nivel+1); // Seta o Nivel do Jogador
  2108.     XP[playerid] = 0; // Reseta os XP após upar
  2109.     PlayerPlaySound(playerid,1149,0.0,0.0,0.0), GameTextForPlayer(playerid,"UP!",5000,6);
  2110.     return false;
  2111.     }
  2112.     PlayerPlaySound(playerid,1139,0.0,0.0,0.0), GameTextForPlayer(playerid,"+XP",5000,6);
  2113.     return true;
  2114. }
  2115.  
  2116. stock GivePlayerHealth(playerid,Float:quantiahealth)
  2117. {
  2118.     new Float:health;
  2119.     GetPlayerHealth(playerid,health);
  2120.     SetPlayerHealth(playerid,health+quantiahealth);
  2121. }
  2122.  
  2123. forward RotateWheel();
  2124.  
  2125. UpdateWheelTarget()
  2126. {
  2127.     gCurrentTargetYAngle += 36.0;
  2128.     if(gCurrentTargetYAngle >= 360.0) {
  2129.         gCurrentTargetYAngle = 0.0;
  2130.     }
  2131.     if(gWheelTransAlternate) gWheelTransAlternate = 0;
  2132.     else gWheelTransAlternate = 1;
  2133. }
  2134.  
  2135. public RotateWheel()
  2136. {
  2137.     UpdateWheelTarget();
  2138.  
  2139.     new Float:fModifyWheelZPos = 0.0;
  2140.     if(gWheelTransAlternate) fModifyWheelZPos = 0.05;
  2141.  
  2142.     MoveObject( gFerrisWheel, gFerrisOrigin[0], gFerrisOrigin[1], gFerrisOrigin[2]+fModifyWheelZPos,
  2143.                 FERRIS_WHEEL_SPEED, 0.0, gCurrentTargetYAngle, FERRIS_WHEEL_Z_ANGLE );
  2144. }
  2145.  
  2146. forward CallElevator(playerid, floorid);
  2147. forward ShowElevatorDialog(playerid);
  2148.  
  2149. forward Elevator_Initialize();
  2150. forward Elevator_Destroy();
  2151.  
  2152. forward Elevator_OpenDoors();
  2153. forward Elevator_CloseDoors();
  2154. forward Floor_OpenDoors(floorid);
  2155. forward Floor_CloseDoors(floorid);
  2156.  
  2157. forward Elevator_MoveToFloor(floorid);
  2158. forward Elevator_Boost(floorid);
  2159. forward Elevator_TurnToIdle();
  2160.  
  2161. forward ReadNextFloorInQueue();
  2162. forward RemoveFirstQueueFloor();
  2163. forward AddFloorToQueue(floorid);
  2164. forward IsFloorInQueue(floorid);
  2165. forward ResetElevatorQueue();
  2166.  
  2167. forward DidPlayerRequestElevator(playerid);
  2168.  
  2169. forward Float:GetElevatorZCoordForFloor(floorid);
  2170. forward Float:GetDoorsZCoordForFloor(floorid);
  2171.  
  2172. stock Elevator_Initialize()
  2173. {
  2174.     // Initializes the elevator.
  2175.  
  2176.     Obj_Elevator            = CreateObject(18755, 1786.678100, -1303.459472, GROUND_Z_COORD + ELEVATOR_OFFSET, 0.000000, 0.000000, 270.000000);
  2177.     Obj_ElevatorDoors[0]    = CreateObject(18757, X_DOOR_CLOSED, -1303.459472, GROUND_Z_COORD, 0.000000, 0.000000, 270.000000);
  2178.     Obj_ElevatorDoors[1]    = CreateObject(18756, X_DOOR_CLOSED, -1303.459472, GROUND_Z_COORD, 0.000000, 0.000000, 270.000000);
  2179.  
  2180.     Label_Elevator          = Create3DTextLabel("{CCCCCC}Aperte '{FFFFFF}~k~~CONVERSATION_NO~{CCCCCC}' para usar o elevador", 0xCCCCCCAA, 1784.9822, -1302.0426, 13.6491, 4.0, 0, 1);
  2181.  
  2182.     new string[128],
  2183.         Float:z;
  2184.  
  2185.     for(new i; i < sizeof(Obj_FloorDoors); i ++)
  2186.     {
  2187.         Obj_FloorDoors[i][0]    = CreateObject(18757, X_DOOR_CLOSED, -1303.171142, GetDoorsZCoordForFloor(i), 0.000000, 0.000000, 270.000000);
  2188.         Obj_FloorDoors[i][1]    = CreateObject(18756, X_DOOR_CLOSED, -1303.171142, GetDoorsZCoordForFloor(i), 0.000000, 0.000000, 270.000000);
  2189.  
  2190.         format(string, sizeof(string), "{CCCCCC}[%s]\n{CCCCCC}Aperte '{FFFFFF}~k~~CONVERSATION_NO~{CCCCCC}' para chamar", FloorNames[i]);
  2191.  
  2192.         if(i == 0)
  2193.             z = 13.4713;
  2194.         else
  2195.             z = 13.4713 + 8.7396 + ((i-1) * 5.45155);
  2196.  
  2197.         Label_Floors[i]         = Create3DTextLabel(string, 0xCCCCCCAA, 1783.9799, -1300.7660, z, 10.5, 0, 1);
  2198.         // Label_Elevator, Text3D:Label_Floors[21];
  2199.     }
  2200.  
  2201.     // Open ground floor doors:
  2202.     Floor_OpenDoors(0);
  2203.     Elevator_OpenDoors();
  2204.  
  2205.     return 1;
  2206. }
  2207.  
  2208. stock Elevator_Destroy()
  2209. {
  2210.     // Destroys the elevator.
  2211.  
  2212.     DestroyObject(Obj_Elevator);
  2213.     DestroyObject(Obj_ElevatorDoors[0]);
  2214.     DestroyObject(Obj_ElevatorDoors[1]);
  2215.     Delete3DTextLabel(Label_Elevator);
  2216.  
  2217.     for(new i; i < sizeof(Obj_FloorDoors); i ++)
  2218.     {
  2219.         DestroyObject(Obj_FloorDoors[i][0]);
  2220.         DestroyObject(Obj_FloorDoors[i][1]);
  2221.         Delete3DTextLabel(Label_Floors[i]);
  2222.     }
  2223.  
  2224.     return 1;
  2225. }
  2226.  
  2227. stock Elevator_OpenDoors()
  2228. {
  2229.     // Opens the elevator's doors.
  2230.  
  2231.     new Float:x, Float:y, Float:z;
  2232.  
  2233.     GetObjectPos(Obj_ElevatorDoors[0], x, y, z);
  2234.     MoveObject(Obj_ElevatorDoors[0], X_DOOR_L_OPENED, y, z, DOORS_SPEED);
  2235.     MoveObject(Obj_ElevatorDoors[1], X_DOOR_R_OPENED, y, z, DOORS_SPEED);
  2236.  
  2237.     return 1;
  2238. }
  2239.  
  2240. stock Elevator_CloseDoors()
  2241. {
  2242.     // Closes the elevator's doors.
  2243.  
  2244.     if(ElevatorState == ELEVATOR_STATE_MOVING)
  2245.         return 0;
  2246.  
  2247.     new Float:x, Float:y, Float:z;
  2248.  
  2249.     GetObjectPos(Obj_ElevatorDoors[0], x, y, z);
  2250.     MoveObject(Obj_ElevatorDoors[0], X_DOOR_CLOSED, y, z, DOORS_SPEED);
  2251.     MoveObject(Obj_ElevatorDoors[1], X_DOOR_CLOSED, y, z, DOORS_SPEED);
  2252.  
  2253.     return 1;
  2254. }
  2255.  
  2256. stock Floor_OpenDoors(floorid)
  2257. {
  2258.     // Opens the doors at the specified floor.
  2259.  
  2260.     MoveObject(Obj_FloorDoors[floorid][0], X_DOOR_L_OPENED, -1303.171142, GetDoorsZCoordForFloor(floorid), DOORS_SPEED);
  2261.     MoveObject(Obj_FloorDoors[floorid][1], X_DOOR_R_OPENED, -1303.171142, GetDoorsZCoordForFloor(floorid), DOORS_SPEED);
  2262.  
  2263.     PlaySoundForPlayersInRange(6401, 50.0, X_DOOR_CLOSED, -1303.171142, GetDoorsZCoordForFloor(floorid) + 5.0);
  2264.  
  2265.     return 1;
  2266. }
  2267.  
  2268. stock Floor_CloseDoors(floorid)
  2269. {
  2270.  
  2271.     MoveObject(Obj_FloorDoors[floorid][0], X_DOOR_CLOSED, -1303.171142, GetDoorsZCoordForFloor(floorid), DOORS_SPEED);
  2272.     MoveObject(Obj_FloorDoors[floorid][1], X_DOOR_CLOSED, -1303.171142, GetDoorsZCoordForFloor(floorid), DOORS_SPEED);
  2273.  
  2274.     PlaySoundForPlayersInRange(6401, 50.0, X_DOOR_CLOSED, -1303.171142, GetDoorsZCoordForFloor(floorid) + 5.0);
  2275.  
  2276.     return 1;
  2277. }
  2278.  
  2279. stock Elevator_MoveToFloor(floorid)
  2280. {
  2281.  
  2282.     ElevatorState = ELEVATOR_STATE_MOVING;
  2283.     ElevatorFloor = floorid;
  2284.  
  2285.     MoveObject(Obj_Elevator, 1786.678100, -1303.459472, GetElevatorZCoordForFloor(floorid), 0.25);
  2286.     MoveObject(Obj_ElevatorDoors[0], X_DOOR_CLOSED, -1303.459472, GetDoorsZCoordForFloor(floorid), 0.25);
  2287.     MoveObject(Obj_ElevatorDoors[1], X_DOOR_CLOSED, -1303.459472, GetDoorsZCoordForFloor(floorid), 0.25);
  2288.     Delete3DTextLabel(Label_Elevator);
  2289.  
  2290.     ElevatorBoostTimer = SetTimerEx("Elevator_Boost", 2000, 0, "i", floorid);
  2291.  
  2292.     return 1;
  2293. }
  2294.  
  2295. public Elevator_Boost(floorid)
  2296. {
  2297.     StopObject(Obj_Elevator);
  2298.     StopObject(Obj_ElevatorDoors[0]);
  2299.     StopObject(Obj_ElevatorDoors[1]);
  2300.  
  2301.     MoveObject(Obj_Elevator, 1786.678100, -1303.459472, GetElevatorZCoordForFloor(floorid), ELEVATOR_SPEED);
  2302.     MoveObject(Obj_ElevatorDoors[0], X_DOOR_CLOSED, -1303.459472, GetDoorsZCoordForFloor(floorid), ELEVATOR_SPEED);
  2303.     MoveObject(Obj_ElevatorDoors[1], X_DOOR_CLOSED, -1303.459472, GetDoorsZCoordForFloor(floorid), ELEVATOR_SPEED);
  2304.  
  2305.     return 1;
  2306. }
  2307.  
  2308. public Elevator_TurnToIdle()
  2309. {
  2310.     ElevatorState = ELEVATOR_STATE_IDLE;
  2311.     ReadNextFloorInQueue();
  2312.  
  2313.     return 1;
  2314. }
  2315.  
  2316. stock RemoveFirstQueueFloor()
  2317. {
  2318.  
  2319.     for(new i; i < sizeof(ElevatorQueue) - 1; i ++)
  2320.         ElevatorQueue[i] = ElevatorQueue[i + 1];
  2321.  
  2322.     ElevatorQueue[sizeof(ElevatorQueue) - 1] = INVALID_FLOOR;
  2323.  
  2324.     return 1;
  2325. }
  2326.  
  2327. stock AddFloorToQueue(floorid)
  2328. {
  2329.     new slot = -1;
  2330.     for(new i; i < sizeof(ElevatorQueue); i ++)
  2331.     {
  2332.         if(ElevatorQueue[i] == INVALID_FLOOR)
  2333.         {
  2334.             slot = i;
  2335.             break;
  2336.         }
  2337.     }
  2338.  
  2339.     if(slot != -1)
  2340.     {
  2341.         ElevatorQueue[slot] = floorid;
  2342.  
  2343.         if(ElevatorState == ELEVATOR_STATE_IDLE)
  2344.             ReadNextFloorInQueue();
  2345.  
  2346.         return 1;
  2347.     }
  2348.  
  2349.     return 0;
  2350. }
  2351.  
  2352. stock ResetElevatorQueue()
  2353. {
  2354.  
  2355.     for(new i; i < sizeof(ElevatorQueue); i ++)
  2356.     {
  2357.         ElevatorQueue[i]    = INVALID_FLOOR;
  2358.         FloorRequestedBy[i] = INVALID_PLAYER_ID;
  2359.     }
  2360.  
  2361.     return 1;
  2362. }
  2363.  
  2364. stock IsFloorInQueue(floorid)
  2365. {
  2366.  
  2367.     for(new i; i < sizeof(ElevatorQueue); i ++)
  2368.         if(ElevatorQueue[i] == floorid)
  2369.             return 1;
  2370.  
  2371.     return 0;
  2372. }
  2373.  
  2374. stock ReadNextFloorInQueue()
  2375. {
  2376.     if(ElevatorState != ELEVATOR_STATE_IDLE || ElevatorQueue[0] == INVALID_FLOOR)
  2377.         return 0;
  2378.  
  2379.     Elevator_CloseDoors();
  2380.     Floor_CloseDoors(ElevatorFloor);
  2381.  
  2382.     return 1;
  2383. }
  2384.  
  2385. stock DidPlayerRequestElevator(playerid)
  2386. {
  2387.     for(new i; i < sizeof(FloorRequestedBy); i ++)
  2388.         if(FloorRequestedBy[i] == playerid)
  2389.             return 1;
  2390.  
  2391.     return 0;
  2392. }
  2393.  
  2394. stock ShowElevatorDialog(playerid)
  2395. {
  2396.     new string[512];
  2397.     for(new i; i < sizeof(ElevatorQueue); i ++)
  2398.     {
  2399.         if(FloorRequestedBy[i] != INVALID_PLAYER_ID)
  2400.             strcat(string, "{FF0000}");
  2401.  
  2402.         strcat(string, FloorNames[i]);
  2403.         strcat(string, "\n");
  2404.     }
  2405.  
  2406.     ShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_LIST, "Elevador", string, "Aceitar", "Cancelar");
  2407.  
  2408.     return 1;
  2409. }
  2410.  
  2411. stock CallElevator(playerid, floorid)
  2412. {
  2413.  
  2414.     if(FloorRequestedBy[floorid] != INVALID_PLAYER_ID || IsFloorInQueue(floorid))
  2415.         return 0;
  2416.  
  2417.     FloorRequestedBy[floorid] = playerid;
  2418.     AddFloorToQueue(floorid);
  2419.  
  2420.     return 1;
  2421. }
  2422.  
  2423. stock Float:GetElevatorZCoordForFloor(floorid)
  2424.     return (GROUND_Z_COORD + FloorZOffsets[floorid] + ELEVATOR_OFFSET); // A small offset for the elevator object itself.
  2425.  
  2426. stock Float:GetDoorsZCoordForFloor(floorid)
  2427.     return (GROUND_Z_COORD + FloorZOffsets[floorid]);
  2428.    
  2429. forward Hospitalizado(playerid);
  2430.  
  2431. public Hospitalizado(playerid) return TogglePlayerControllable(playerid, 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement