Guest User

GameMode GrandLarc

a guest
Dec 7th, 2013
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.49 KB | None | 0 0
  1. //----------------------------------------------------------
  2. //
  3. // Play Brasil v2.0
  4. // Divirta-s no nosso servidor
  5. //
  6. //----------------------------------------------------------
  7.  
  8. #include <a_samp>
  9. #include <core>
  10. #include <float>
  11. #include "../include/gl_common.inc"
  12. #include "../include/gl_spawns.inc"
  13.  
  14. #pragma tabsize 0
  15.  
  16. //----------------------------------------------------------
  17.  
  18. #define COLOR_WHITE 0xFFFFFFFF
  19. #define COLOR_NORMAL_PLAYER 0xFFBB7777
  20.  
  21. #define CITY_LOS_SANTOS 0
  22. #define CITY_SAN_FIERRO 1
  23. #define CITY_LAS_VENTURAS 2
  24.  
  25. new total_vehicles_from_files=0;
  26.  
  27. // Class selection globals
  28. new gPlayerCitySelection[MAX_PLAYERS];
  29. new gPlayerHasCitySelected[MAX_PLAYERS];
  30. new gPlayerLastCitySelectionTick[MAX_PLAYERS];
  31.  
  32. new Text:txtClassSelHelper;
  33. new Text:txtLosSantos;
  34. new Text:txtSanFierro;
  35. new Text:txtLasVenturas;
  36.  
  37. new thisanimid=0;
  38. new lastanimid=0;
  39.  
  40. //----------------------------------------------------------
  41.  
  42. main()
  43. {
  44. print("\n---------------------------------------");
  45. print("Iniciando Play Brasil v2.0\n");
  46. print("---------------------------------------\n");
  47. }
  48.  
  49. //----------------------------------------------------------
  50.  
  51. public OnPlayerConnect(playerid)
  52. {
  53. SendDeathMessage(playerid, -1, 200);
  54. TextDrawShowForPlayer(playerid, forum[playerid]);
  55. DisablePlayerCheckpoint(playerid);
  56. KillTimer(timer[playerid]);
  57. Watching[playerid] = 0;
  58. Goto[playerid] = 0;
  59. //DP DA POLICIA CIVIL
  60. RemoveBuildingForPlayer(playerid, 5926, 816.3359, -1217.1484, 26.4453, 0.25);
  61. RemoveBuildingForPlayer(playerid, 6005, 895.2578, -1256.9297, 31.2344, 0.25);
  62. RemoveBuildingForPlayer(playerid, 5836, 816.3359, -1217.1484, 26.4453, 0.25);
  63. RemoveBuildingForPlayer(playerid, 5838, 895.2578, -1256.9297, 31.2344, 0.25);
  64. if(IsPlayerNPC(playerid)){SpawnPlayer(playerid);return true;}
  65. IPlog(playerid);
  66. if(strfind(PlayerName(playerid), "_", true) == -1 || strfind(PlayerName(playerid), "[", true) != -1 || strfind(PlayerName(playerid), "]", true) != -1 || strfind(PlayerName(playerid), "lixo", true) != -1 || strfind(PlayerName(playerid), "buceta", true) != -1 || strfind(PlayerName(playerid), "caralho", true) != -1 || strfind(PlayerName(playerid), "[", true) != -1 || strfind(PlayerName(playerid), "server", true) != -1
  67. || strfind(PlayerName(playerid), "servidor", true) != -1 || strfind(PlayerName(playerid), "crash", true) != -1 || strfind(PlayerName(playerid), "bpl", true) != -1 || strfind(PlayerName(playerid), "gamerx", true) != -1 || strfind(PlayerName(playerid), "[", true) != -1 || strfind(PlayerName(playerid), "189", true) != -1 || strfind(PlayerName(playerid), "201", true) != -1 || strfind(PlayerName(playerid), "200", true) != -1 || strfind(PlayerName(playerid), ".", true) != -1
  68. || strfind(PlayerName(playerid), "*", true) != -1 || strfind(PlayerName(playerid), "(", true) != -1 || strfind(PlayerName(playerid), ")", true) != -1 || strfind(PlayerName(playerid), "@", true) != -1 || strfind(PlayerName(playerid), "amx", true) != -1 || strfind(PlayerName(playerid), "prn", true) != -1 || strfind(PlayerName(playerid), "__", true) != -1){
  69. ShowPlayerDialog(playerid, 676, DIALOG_STYLE_MSGBOX, "Nick Incorreto", "Você foi kickado pelo uso de nome incorreto\nUse nicks RPG's exemplo: John_Cena\nO uso de nicks conhecido como MalBots resultará em Ban Permanente","Ok","Cancelar");
  70. format(gstring,64,"Contas/%s.ini",PlayerName(playerid));Kick(playerid);fremove(gstring);return true;}
  71. if(strcmp("Mijao_Bundao",PlayerName(playerid),true)==0)
  72. {
  73. SendClientMessage(playerid,COLOR_AZULBB,"Não tente imitar Mijao_Bundao ele não gosta disso!");
  74. SendClientMessage(playerid,COLOR_AZULBB,"Mijao_Bundao te kickou!");Kick(playerid);
  75. }
  76. for(new i; i<sizeof(NicksProibidos); i++)
  77. {
  78. if(strcmp(NicksProibidos[i],PlayerName(playerid),true)==0)
  79. {
  80. SendClientMessage(playerid,COLOR_WHITE,"Você está usando um nome que é proibido.");
  81. SendClientMessage(playerid,COLOR_AZULBB,"Você foi banido!");getdate(Ano, Mes, Dia);
  82. SBan(playerid, "Pego Usando um nome que é proibido no servidor.", "Automático");
  83. }
  84. }
  85. gActivePlayers[playerid]++;numplayers++;
  86. strmid(BanInfo[playerid][pMotivo], "Nenhum", 0, strlen("Nenhum"), 256);
  87. strmid(BanInfo[playerid][pAdmBan], "Nenhum", 0, strlen("Nenhum"), 256);
  88. strmid(BanInfo[playerid][pData], "0/0/0", 0, strlen("0/0/0"), 256);
  89. strmid(BanInfo[playerid][pHora], "0:0:0", 0, strlen("0:0:0"), 256);
  90. pban[playerid] = 0;
  91. Reduzido[playerid] = 0; // pedagio
  92. var1[playerid] = 0;
  93. EmDialog[playerid] = 0;
  94. gmsg[playerid] = 0;
  95. PlayerInfo[playerid][pGun1] = 0;
  96. TruckMission[playerid] = 0;
  97. PlayerInfo[playerid][pGun2] = 0;
  98. PlayerInfo[playerid][pGun3] = 0;
  99. PlayerInfo[playerid][pGun4] = 0;
  100. storeexit[playerid] = 0;
  101. PlayerInfo[playerid][pGrampo] = INVALID_PLAYER_ID;
  102. barexit[playerid] = 0;
  103. lotericaexit[playerid] = 0;
  104. away[playerid] = 0;
  105. pCofreOrg[playerid] = 0;
  106. InviteOffer[playerid] = 999;
  107. InviteJob[playerid] = 0;
  108. PlayerInfo[playerid][pGun5] = 0;
  109. mudandonick[playerid] = 0;
  110. gpTimes[playerid] = 0;
  111. PlayerInfo[playerid][pGun6] = 0;
  112. PlayerInfo[playerid][pGun7] = 0;
  113. PlayerInfo[playerid][pGun8] = 0;
  114. PlayerInfo[playerid][pGun9] = 0;
  115. PlayerInfo[playerid][pGun10] = 0;
  116. gPlayerTerminal[playerid] = 0;
  117. PlayerInfo[playerid][pGun11] = 0;
  118. PlayerInfo[playerid][pGun12] = 0;
  119. PlayerInfo[playerid][pAmmo1] = 0;
  120. PlayerInfo[playerid][pCheckInfoOrg] = 0;
  121. PlayerInfo[playerid][pAmmo2] = 0;
  122. gSpamCount[playerid][0] = 0;
  123. gSpamCount[playerid][1] = 0;
  124. PlayerInfo[playerid][pAmmo3] = 0;
  125. PlayerInfo[playerid][pAmmo4] = 0;
  126. PlayerInfo[playerid][pAmmo5] = 0;
  127. PlayerInfo[playerid][pAmmo6] = 0;
  128. PlayerInfo[playerid][pAmmo7] = 0;
  129. PlayerInfo[playerid][pAmmo8] = 0;
  130. PlayerInfo[playerid][pAmmo9] = 0;
  131. PlayerInfo[playerid][pAmmo10] = 0;
  132. PlayerInfo[playerid][pAmmo11] = 0;
  133. PlayerInfo[playerid][pAmmo12] = 0;
  134. HidePM[playerid] = 0;
  135. SelectChar[playerid] = 0; PhoneOnline[playerid] = 0; OfAssalto[playerid] = 999; precoassalto[playerid] = 0;
  136. SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0; SemBombas[playerid] = 0;
  137. GettingEmprego[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0;
  138. AdvOffer[playerid] = 999; AdvPrice[playerid] = 0;
  139. ApprovedAdvogado[playerid] = 0; CallAdvogado[playerid] = 0; WantAdvogado[playerid] = 0;
  140. KickPlayer[playerid] = 0; CurrentMoney[playerid] = 0; UsedFind[playerid] = 0;
  141. CP[playerid] = 0; Robbed[playerid] = 0; PlayerInfo[playerid][pSpawn] = 0;
  142. CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; CarCalls[playerid] = 0;
  143. RobbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0;
  144. SexOffer[playerid] = 999; SexPrice[playerid] = 0;
  145. RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0; RingTone[playerid] = 0;
  146. TalkingLive[playerid] = 255; LiveOffer[playerid] = 999;
  147. RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0;
  148. DrugOffer[playerid] = 999; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0;
  149. PlayerAtingido[playerid] = 0; PlayerAtingidoTime[playerid] = 0;
  150. DrugPrice[playerid] = 0; RegistrationStep[playerid] = 0;
  151. DrugGram[playerid] = 0; ConnectedToPC[playerid] = 0; OrderReady[playerid] = 0;
  152. JailPrice[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; MedicBill[playerid] = 0; GotHit[playerid] = 0;
  153. WantedPoints[playerid] = 0; SetPlayerWantedLevel(playerid, 0); GoChase[playerid] = 999; GetChased[playerid] = 999; PlacedNews[playerid] = 0;
  154. OnDuty[playerid] = 0;
  155. BoxWaitTime[playerid] = 0; ChangePos2[playerid][1] = 0;
  156. SafeTime[playerid] = 60; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0;
  157. BusCallTime[playerid] = 0; CopsrondaCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; MechanicCallTime[playerid] = 0;
  158. BusrouteEast[playerid][0] = 0; BusrouteWest[playerid][0] = 0; BusShowLocation[playerid][0] = 0; BusShowLocationC[playerid] = 0;
  159. FindTimePoints[playerid] = 0; FindTime[playerid] = 0; EmpregoDuty[playerid] = 0;
  160. Mobile[playerid] = 255; Music[playerid] = 0;
  161. Spectate[playerid] = 255; PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0;
  162. Unspec[playerid][sLocal] = 255; ConsumingMoney[playerid] = 0;
  163. gLastCar[playerid] = 0;
  164. gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0;
  165. gPlayerLogged[playerid] = 0; gPlayerLogTries[playerid] = 0; gPlayerConta[playerid] = 0;
  166. gPlayerSpawned[playerid] = 0;
  167. PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0; TicketOffer[playerid] = 999; TicketMoney[playerid] = 0;
  168. MatsHolding[playerid] = 0;
  169. gPlayerMission[playerid] = 0; TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999; MedicAccepted[playerid] = 999; MechanicAccepted[playerid] = 999; CopsrondaAccepted[playerid] = 999;
  170. PlayerInfo[playerid][pCash] = 1000; NoFuel[playerid] = 0;
  171. HireCar[playerid] = 0;
  172. TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
  173. Locator[playerid] = 0;
  174. WatchingTV[playerid] = 0;
  175. ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999;
  176. GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
  177. MudarNickAceito[playerid] = 0;
  178. MudarSenhaAceito[playerid] = 0;
  179. InAFoodPlace[playerid] = 0;
  180. OnEquipado[playerid] = 0;
  181. OnMafiaEquipado[playerid] = 0;
  182. VisionInfo[playerid][PLojaA1] = 0;
  183. VisionInfo[playerid][PLojaA2] = 0;
  184. VisionInfo[playerid][PLojaA3] = 0;
  185. VisionInfo[playerid][PLojaA4] = 0;
  186. VisionInfo[playerid][PpLoja247] = 0;
  187. VisionInfo[playerid][PpLoja2472] = 0;
  188. PlayerInfo[playerid][pLevel] = 0;
  189. PlayerInfo[playerid][pAdmin] = 0;
  190. PlayerInfo[playerid][pHelper] = 0;
  191. PlayerInfo[playerid][pAjustado] = 0;
  192. PlayerInfo[playerid][pVoto] = 0;
  193. PlayerInfo[playerid][pRecebeuSalario] = 0;
  194. PlayerInfo[playerid][pVIP] = 0;
  195. PlayerInfo[playerid][gPupgrade] = 0;
  196. PlayerInfo[playerid][pConnectTime] = 0;
  197. PlayerInfo[playerid][pReg] = 0;
  198. PlayerInfo[playerid][pSex] = 0;
  199. PlayerInfo[playerid][pAge] = 0;
  200. PlayerInfo[playerid][pOrigem] = 0;
  201. PlayerInfo[playerid][pExp] = 0;
  202. PlayerInfo[playerid][pConta] = 0;
  203. PlayerInfo[playerid][pCrimes] = 0;
  204. PlayerInfo[playerid][pDeaths] = 0;
  205. PlayerInfo[playerid][pPhoneBook] = 0;
  206. PlayerInfo[playerid][pLottoNr] = 0;
  207. StreetCallTime[playerid] = 0;
  208. PlayerInfo[playerid][pEmprego] = 0;
  209. PlayerInfo[playerid][pSalario] = 0;
  210. PlayerInfo[playerid][pHeadValue] = 0;
  211. PlayerInfo[playerid][pHeadValueT] = 0;
  212. PlayerInfo[playerid][pJailed] = 0;
  213. PlayerInfo[playerid][pJailTime] = 0;
  214. PlayerInfo[playerid][pMats] = 0;
  215. PlayerInfo[playerid][pDorgado] = 0;
  216. PlayerInfo[playerid][pDorgado2] = 0;
  217. PlayerInfo[playerid][pDoenca] = 0;
  218. PlayerInfo[playerid][pDrogas] = 0;
  219. PlayerInfo[playerid][pDrogas2] = 0;
  220. PlayerInfo[playerid][pDrogas3] = 0;
  221. PlayerInfo[playerid][pSafeDrogas] = 0;
  222. PlayerInfo[playerid][pSafeDrogas2] = 0;
  223. PlayerInfo[playerid][pSafeDrogas3] = 0;
  224. PlayerInfo[playerid][pLider] = 0;
  225. PlayerInfo[playerid][pGerente] = 0;
  226. PlayerInfo[playerid][pMembro] = 0;
  227. PlayerInfo[playerid][pCargo] = 0;
  228. PlayerInfo[playerid][pContractTime] = 0;
  229. PlayerInfo[playerid][pDetSkill] = 0;
  230. PlayerInfo[playerid][pSexSkill] = 0;
  231. PlayerInfo[playerid][pBoxSkill] = 0;
  232. PlayerInfo[playerid][pLawSkill] = 0;
  233. PlayerInfo[playerid][pMechSkill] = 0;
  234. PlayerInfo[playerid][pNewsSkill] = 0;
  235. PlayerInfo[playerid][pDrogasSkill] = 0;
  236. PlayerInfo[playerid][pCookSkill] = 0;
  237. PlayerInfo[playerid][pSHealth] = 0.0;
  238. PlayerInfo[playerid][pPos_x] = 2246.6;
  239. PlayerInfo[playerid][pPos_y] = -1161.9;
  240. PlayerInfo[playerid][pPos_z] = 1029.7;
  241. PlayerInfo[playerid][pInt] = 0;
  242. PlayerInfo[playerid][pLocal] = 255;
  243. PlayerInfo[playerid][pTeam] = 3;
  244. PlayerInfo[playerid][pSkin] = 0;
  245. PlayerInfo[playerid][pGold] = 0;
  246. admtrampando[playerid] = 0;
  247. admhide[playerid] = 0;
  248. helperhide[playerid] = 0;
  249. helpertrampando[playerid] = 0;
  250. new randphone = 1000 + random(9999);//minimum 1000 max 9999 //giving one at the start
  251. PlayerInfo[playerid][pPnumber] = randphone;
  252. PlayerInfo[playerid][pPHousekey] = 255;
  253. PlayerInfo[playerid][pPbiskey] = 255;
  254. PlayerInfo[playerid][pCarLic] = 0;
  255. PlayerInfo[playerid][pFlyLic] = 0;
  256. PlayerInfo[playerid][pBoatLic] = 0;
  257. PlayerInfo[playerid][pGunLic] = 0;
  258. PlayerInfo[playerid][pPayDay] = 0;
  259. PlayerInfo[playerid][pCDPlayer] = 0;
  260. PlayerInfo[playerid][pWins] = 0;
  261. PlayerInfo[playerid][pLoses] = 0;
  262. PlayerInfo[playerid][pAlcoholPerk] = 0;
  263. PlayerInfo[playerid][pDrugPerk] = 0;
  264. PlayerInfo[playerid][pMiserPerk] = 0;
  265. PlayerInfo[playerid][pPainPerk] = 0;
  266. PlayerInfo[playerid][pTraderPerk] = 0;
  267. PlayerInfo[playerid][pTut] = 0;
  268. PlayerInfo[playerid][pWarns] = 0;
  269. pRoadblock[playerid] = 0;
  270. pRoadCones[playerid] = 0;
  271. SpikeInfo[playerid][sCreated] = 0;
  272. PlayerInfo[playerid][pRequestingBackup] = 0;
  273. PlayerInfo[playerid][pMask] = 0;
  274. PlayerInfo[playerid][pMaskuse] = 0;
  275. PlayerInfo[playerid][pLuta] = 0;
  276. strmid(PlayerInfo[playerid][pLastLogin], "0/0/0/0/0/0", 0, strlen("0/0/0/0/0/0"),255);
  277. ClearCrime(playerid);
  278. ClearCooking(playerid);
  279. ClearGroceries(playerid);
  280. ClearMarriage(playerid);
  281. SetPlayerColor(playerid,COLOR_GRAD2);
  282. TextShow[playerid] = false;
  283. HouseEntered[playerid] = 255;
  284. new string2[64];
  285. format(string2, sizeof(string2), "Contas/%s.ini", PlayerName(playerid));
  286. SendClientMessage(playerid, COLOR_YELLOW, "Carregando...");
  287. GameTextForPlayer(playerid, "~r~Brasil ~g~Start ~y~Life ~b~RPG", 15000, 6);
  288. TextDrawShowForPlayer(playerid, BULText[playerid]);
  289. SetPlayerMapIcon(playerid, 1,1552.6703,-1675.5068,16.1953, 30, 0xE6E6E6E6);//dp ls
  290. SetPlayerMapIcon(playerid, 1,-1606.6907,674.6328,-5.2422, 30, 0xE6E6E6E6);//dp sf
  291. SetPlayerMapIcon(playerid, 2,1480.9403,-1770.8481,18.7958, 56, 0xE6E6E6E6);//Prefeitura
  292. SetPlayerMapIcon(playerid, 2,-2766.1321,375.6091,6.3347, 56, 0xE6E6E6E6);//Prefeitura
  293. SetPlayerMapIcon(playerid, 3,2243.6750,-1669.8136,21.0313, 45, 0xE6E6E6E6);//Binco
  294. SetPlayerMapIcon(playerid, 4,1456.9010,-1137.6941,23.9617, 45, 0xE6E6E6E6);//ZIP
  295. SetPlayerMapIcon(playerid, 3,-2374.2454,910.2137,45.4453, 45, 0xE6E6E6E6);//Binco SF
  296. SetPlayerMapIcon(playerid, 5,1461.8320,-1010.3407,26.8438, 52, 0xE6E6E6E6);//Banco
  297. SetPlayerMapIcon(playerid, 6,1367.3584,-1287.9617,35.3292, 18, 0xE6E6E6E6);//Ammu Nation
  298. SetPlayerMapIcon(playerid, 8,334.0479,-1507.9438,36.0391, 30, 0xE6E6E6E6); //dp ROTAM
  299. SetPlayerMapIcon(playerid, 8,-1753.9988,963.4703,24.8828, 30, 0xE6E6E6E6); //dp ROTAM
  300. SetPlayerMapIcon(playerid, 9,918.9910,-1252.1665,16.2109, 30, 0xE6E6E6E6); //dp pc
  301. SetPlayerMapIcon(playerid, 10,1791.212036,-1164.631713,23.828100, 18 , 0xE6E6E6E6);//Loja de Armas 1
  302. SetPlayerMapIcon(playerid, 11,-2456.1401,503.9361,30.0781, 30 , 0xE6E6E6E6);//Dp PF
  303. SetPlayerMapIcon(playerid, 12,2104.2051,-1806.5345,13.5547, 29 , 0xE6E6E6E6);//PIZZARIA LS
  304. SetPlayerMapIcon(playerid, 13,550.7012,-1278.5721,17.2482, 19 , 0xE6E6E6E6);//Carros Aluguel 1
  305. SetPlayerMapIcon(playerid, 14,2158.1355,-1172.6049,23.8200, 19 , 0xE6E6E6E6);//Carros Aluguel 2
  306. SetPlayerMapIcon(playerid, 15,1219.2595,-1812.4048,16.5938, 19 , 0xE6E6E6E6); //aluguel de carros perto spawn
  307. SetPlayerMapIcon(playerid, 16,1330.193603,-984.074523,33.896598, 19 , 0xE6E6E6E6); //aluguel de carros 2
  308. SetPlayerMapIcon(playerid, 17,-1968.559814,296.269592,35.171901, 19 , 0xE6E6E6E6); //wang cars
  309. SetPlayerMapIcon(playerid, 18,-1529.5208,476.5718,7.1875, 30 , 0xE6E6E6E6); // HQ Forças Armadas
  310. SetPlayerMapIcon(playerid, 19,1703.2197,-1470.1509,13.5469, 51 , 0xE6E6E6E6); //produtos
  311. SetPlayerMapIcon(playerid, 21,1833.6124,-1842.4968,13.5781, 17 , 0xE6E6E6E6); //mercado
  312. SetPlayerMapIcon(playerid, 22,1000.5861,-919.8832,42.3281, 17 , 0xE6E6E6E6); //mercado
  313. SetPlayerMapIcon(playerid, 23,1928.6006,-1776.4480,13.5469, 17 , 0xE6E6E6E6); //mercado
  314. SetPlayerMapIcon(playerid, 24,1315.5110,-898.9860,39.5781, 17 , 0xE6E6E6E6); //mercado
  315. SetPlayerMapIcon(playerid, 25,1352.4357,-1759.0243,13.5078, 17 , 0xE6E6E6E6); //mercado
  316. SetPlayerMapIcon(playerid, 26,1837.0278,-1682.3890,13.3233, 48 , 0xE6E6E6E6); //alhambra
  317. SetPlayerMapIcon(playerid, 27,-2661.2688,638.2703,14.4531, 22 , 0xE6E6E6E6); //Médicos SF hospital
  318. SetPlayerMapIcon(playerid, 27,2027.6760,-1405.0399,16.7958, 22 , 0xE6E6E6E6); //hospital pista
  319. SetPlayerMapIcon(playerid, 29,1440.1481,-2229.0723,13.5469, 55 , 0xE6E6E6E6); //MECANICOS
  320. SetPlayerMapIcon(playerid, 30,1203.9453,-921.0353,42.6221, 10 , 0xE6E6E6E6); //BURGER SHOT ls
  321. SetPlayerMapIcon(playerid, 33,461.3484,-1500.9084,31.0592, 45, 0xE6E6E6E6);//VICTIM
  322. if(donoestacao == 0)
  323. {
  324. GangZoneShowForPlayer(playerid, GZEstacao, 0xC0C0C0AA);
  325. }
  326. if(donoestacao == 1)
  327. {
  328. GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_LH);
  329. }
  330. if(donoestacao == 2)
  331. {
  332. GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_YAKUZA);
  333. }
  334. if(donoestacao == 3)
  335. {
  336. GangZoneShowForPlayer(playerid, GZEstacao, COLORGZ_PF);
  337. }
  338. if(donocasarao == 0)
  339. {
  340. GangZoneShowForPlayer(playerid, GZCasarao, 0xC0C0C0AA);
  341. }
  342. if(donocasarao == 1)
  343. {
  344. GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_LH);
  345. }
  346. if(donocasarao == 2)
  347. {
  348. GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_YAKUZA);
  349. }
  350. if(donocasarao == 3)
  351. {
  352. GangZoneShowForPlayer(playerid, GZCasarao, COLORGZ_PF);
  353. }
  354. if(donoFavela == 0)
  355. {
  356. GangZoneShowForPlayer(playerid, GZFavela, 0xC0C0C0AA);
  357. }
  358. if(donoFavela == 1)
  359. {
  360. GangZoneShowForPlayer(playerid, GZFavela, TEAM_GROVE_COLOR);
  361. }
  362. if(donoFavela == 2)
  363. {
  364. GangZoneShowForPlayer(playerid, GZFavela, TEAM_BALLAS_COLOR);
  365. }
  366. if(donoFavela == 3)
  367. {
  368. GangZoneShowForPlayer(playerid, GZFavela, TEAM_VAGOS_COLOR);
  369. }
  370. if(donoFavela == 4)
  371. {
  372. GangZoneShowForPlayer(playerid, GZFavela, TEAM_AZTECAS_COLOR);
  373. }
  374. if(donoFavela == 5)
  375. {
  376. GangZoneShowForPlayer(playerid, GZFavela, COR_ROTAM);
  377. }
  378. if(donoFavela == 6)
  379. {
  380. GangZoneShowForPlayer(playerid, GZFavela, GCOP_COLOR);
  381. }
  382. if(donoFavela == 7)
  383. {
  384. GangZoneShowForPlayer(playerid, GZFavela, 0xF6000000);
  385. }
  386. if(donoFavela == 8)
  387. {
  388. GangZoneShowForPlayer(playerid, GZFavela, COR_SONS);
  389. }
  390. if(donoFavela == 9)
  391. {
  392. GangZoneShowForPlayer(playerid, GZFavela, COR_PR);
  393. }
  394. if(donoFavela == 10)
  395. {
  396. GangZoneShowForPlayer(playerid, GZFavela, COR_DRIFT);
  397. }
  398. if(donoConstrucao == 0)
  399. {
  400. GangZoneShowForPlayer(playerid, GZConstrucao, 0xC0C0C0AA);
  401. }
  402. if(donoConstrucao == 1)
  403. {
  404. GangZoneShowForPlayer(playerid, GZConstrucao, TEAM_GROVE_COLOR);
  405. }
  406. if(donoConstrucao == 2)
  407. {
  408. GangZoneShowForPlayer(playerid, GZConstrucao, COR_PCC);
  409. }
  410. if(donoConstrucao == 3)
  411. {
  412. GangZoneShowForPlayer(playerid, GZConstrucao, 0xF6000000);
  413. }
  414. if(donoConstrucao == 4)
  415. {
  416. GangZoneShowForPlayer(playerid, GZConstrucao, TEAM_BALLAS_COLOR);
  417. }
  418. if(donoConstrucao == 5)
  419. {
  420. GangZoneShowForPlayer(playerid, GZConstrucao, TEAM_VAGOS_COLOR);
  421. }
  422. if(donoConstrucao == 6)
  423. {
  424. GangZoneShowForPlayer(playerid, GZConstrucao, TEAM_AZTECAS_COLOR);
  425. }
  426. if(donoConstrucao == 7)
  427. {
  428. GangZoneShowForPlayer(playerid, GZConstrucao, GCOP_COLOR);
  429. }
  430. if(donoConstrucao == 8)
  431. {
  432. GangZoneShowForPlayer(playerid, GZConstrucao, COLORGZ_PF);
  433. }
  434. if(donoConstrucao == 9)
  435. {
  436. GangZoneShowForPlayer(playerid, GZConstrucao, COR_ROTAM);
  437. }
  438. if(donoConstrucao == 10)
  439. {
  440. GangZoneShowForPlayer(playerid, GZConstrucao, COR_PR);
  441. }
  442. if(donoPraia == 0)
  443. {
  444. GangZoneShowForPlayer(playerid, GZPraia, 0xC0C0C0AA);
  445. }
  446. if(donoPraia == 1)
  447. {
  448. GangZoneShowForPlayer(playerid, GZPraia, TEAM_GROVE_COLOR);
  449. }
  450. if(donoPraia == 2)
  451. {
  452. GangZoneShowForPlayer(playerid, GZPraia, COR_PCC);
  453. }
  454. if(donoPraia == 3)
  455. {
  456. GangZoneShowForPlayer(playerid, GZPraia, 0xF6000000);
  457. }
  458. if(donoPraia == 4)
  459. {
  460. GangZoneShowForPlayer(playerid, GZPraia, TEAM_BALLAS_COLOR);
  461. }
  462. if(donoPraia == 5)
  463. {
  464. GangZoneShowForPlayer(playerid, GZPraia, TEAM_VAGOS_COLOR);
  465. }
  466. if(donoPraia == 6)
  467. {
  468. GangZoneShowForPlayer(playerid, GZPraia, TEAM_AZTECAS_COLOR);
  469. }
  470. if(donoPraia == 7)
  471. {
  472. GangZoneShowForPlayer(playerid, GZPraia, GCOP_COLOR);
  473. }
  474. if(donoPraia == 8)
  475. {
  476. GangZoneShowForPlayer(playerid, GZPraia, COLORGZ_PF);
  477. }
  478. if(donoPraia == 9)
  479. {
  480. GangZoneShowForPlayer(playerid, GZPraia, COR_ROTAM);
  481. }
  482. if(donoPraia == 10)
  483. {
  484. GangZoneShowForPlayer(playerid, GZPraia, COR_PR);
  485. }
  486. if(donoPuteiro == 0)
  487. {
  488. GangZoneShowForPlayer(playerid, GZPuteiro, 0xC0C0C0AA);
  489. }
  490. if(donoPuteiro == 1)
  491. {
  492. GangZoneShowForPlayer(playerid, GZPuteiro, TEAM_GROVE_COLOR);
  493. }
  494. if(donoPuteiro == 2)
  495. {
  496. GangZoneShowForPlayer(playerid, GZPuteiro, COR_PCC);
  497. }
  498. if(donoPuteiro == 3)
  499. {
  500. GangZoneShowForPlayer(playerid, GZPuteiro, 0xF6000000);
  501. }
  502. if(donoPuteiro == 4)
  503. {
  504. GangZoneShowForPlayer(playerid, GZPuteiro, TEAM_BALLAS_COLOR);
  505. }
  506. if(donoPuteiro == 5)
  507. {
  508. GangZoneShowForPlayer(playerid, GZPuteiro, TEAM_VAGOS_COLOR);
  509. }
  510. if(donoPuteiro == 6)
  511. {
  512. GangZoneShowForPlayer(playerid, GZPuteiro, TEAM_AZTECAS_COLOR);
  513. }
  514. if(donoPuteiro == 7)
  515. {
  516. GangZoneShowForPlayer(playerid, GZPuteiro, GCOP_COLOR);
  517. }
  518. if(donoPuteiro == 8)
  519. {
  520. GangZoneShowForPlayer(playerid, GZPuteiro, COLORGZ_PF);
  521. }
  522. if(donoPuteiro == 9)
  523. {
  524. GangZoneShowForPlayer(playerid, GZPuteiro, COR_ROTAM);
  525. }
  526. if(donoPuteiro == 10)
  527. {
  528. GangZoneShowForPlayer(playerid, GZPuteiro, COR_PR);
  529. }
  530. if(donoNavio == 0)
  531. {
  532. GangZoneShowForPlayer(playerid, GZNavio, 0xC0C0C0AA);
  533. }
  534. if(donoNavio == 1)
  535. {
  536. GangZoneShowForPlayer(playerid, GZNavio, TEAM_GROVE_COLOR);
  537. }
  538. if(donoNavio == 2)
  539. {
  540. GangZoneShowForPlayer(playerid, GZNavio, COR_PCC);
  541. }
  542. if(donoNavio == 3)
  543. {
  544. GangZoneShowForPlayer(playerid, GZNavio, 0xF6000000);
  545. }
  546. if(donoNavio == 4)
  547. {
  548. GangZoneShowForPlayer(playerid, GZNavio, TEAM_BALLAS_COLOR);
  549. }
  550. if(donoNavio == 5)
  551. {
  552. GangZoneShowForPlayer(playerid, GZNavio, TEAM_VAGOS_COLOR);
  553. }
  554. if(donoNavio == 6)
  555. {
  556. GangZoneShowForPlayer(playerid, GZNavio, TEAM_AZTECAS_COLOR);
  557. }
  558. if(donoNavio == 7)
  559. {
  560. GangZoneShowForPlayer(playerid, GZNavio, GCOP_COLOR);
  561. }
  562. if(donoNavio == 8)
  563. {
  564. GangZoneShowForPlayer(playerid, GZNavio, COLORGZ_PF);
  565. }
  566. if(donoNavio == 9)
  567. {
  568. GangZoneShowForPlayer(playerid, GZNavio, COR_ROTAM);
  569. }
  570. if(donoNavio == 10)
  571. {
  572. GangZoneShowForPlayer(playerid, GZNavio, COR_PR);
  573. }
  574. if(donoskate == 0)
  575. {
  576. GangZoneShowForPlayer(playerid, GZSkate, 0xC0C0C0AA);
  577. }
  578. if(donoskate == 1)
  579. {
  580. GangZoneShowForPlayer(playerid, GZSkate, TEAM_GROVE_COLOR);
  581. }
  582. if(donoskate == 2)
  583. {
  584. GangZoneShowForPlayer(playerid, GZSkate, TEAM_BALLAS_COLOR);
  585. }
  586. if(donoskate == 3)
  587. {
  588. GangZoneShowForPlayer(playerid, GZSkate, TEAM_VAGOS_COLOR);
  589. }
  590. if(donoskate == 4)
  591. {
  592. GangZoneShowForPlayer(playerid, GZSkate, TEAM_AZTECAS_COLOR);
  593. }
  594. if(donoskate == 5)
  595. {
  596. GangZoneShowForPlayer(playerid, GZSkate, COR_ROTAM);
  597. }
  598. if(donoskate == 6)
  599. {
  600. GangZoneShowForPlayer(playerid, GZSkate, GCOP_COLOR);
  601. }
  602. if(donoskate == 7)
  603. {
  604. GangZoneShowForPlayer(playerid, GZSkate, 0xF6000000);
  605. }
  606. if(donoskate == 8)
  607. {
  608. GangZoneShowForPlayer(playerid, GZSkate, COR_SONS);
  609. }
  610. if(donoskate == 9)
  611. {
  612. GangZoneShowForPlayer(playerid, GZSkate, COR_PR);
  613. }
  614. if(donoskate == 10)
  615. {
  616. GangZoneShowForPlayer(playerid, GZSkate, COR_DRIFT);
  617. }
  618.  
  619. if(donoaero == 0)
  620. {
  621. GangZoneShowForPlayer(playerid, GZAero, 0xC0C0C0AA);
  622. }
  623. if(donoaero == 1)
  624. {
  625. GangZoneShowForPlayer(playerid, GZAero, TEAM_GROVE_COLOR);
  626. }
  627. if(donoaero == 2)
  628. {
  629. GangZoneShowForPlayer(playerid, GZAero, TEAM_BALLAS_COLOR);
  630. }
  631. if(donoaero == 3)
  632. {
  633. GangZoneShowForPlayer(playerid, GZAero, TEAM_VAGOS_COLOR);
  634. }
  635. if(donoaero == 4)
  636. {
  637. GangZoneShowForPlayer(playerid, GZAero, TEAM_AZTECAS_COLOR);
  638. }
  639. if(donoaero == 5)
  640. {
  641. GangZoneShowForPlayer(playerid, GZAero, COR_ROTAM);
  642. }
  643. if(donoaero == 6)
  644. {
  645. GangZoneShowForPlayer(playerid, GZAero, GCOP_COLOR);
  646. }
  647. if(donoaero == 7)
  648. {
  649. GangZoneShowForPlayer(playerid, GZAero, 0xF6000000);
  650. }
  651. if(donoaero == 8)
  652. {
  653. GangZoneShowForPlayer(playerid, GZAero, COR_SONS);
  654. }
  655. if(donoaero == 9)
  656. {
  657. GangZoneShowForPlayer(playerid, GZAero, COR_PR);
  658. }
  659. if(donoaero == 10)
  660. {
  661. GangZoneShowForPlayer(playerid, GZAero, COR_DRIFT);
  662. }
  663. if(donopark == 0)
  664. {
  665. GangZoneShowForPlayer(playerid, GZPark, 0xC0C0C0AA);
  666. }
  667. if(donopark == 1)
  668. {
  669. GangZoneShowForPlayer(playerid, GZPark, TEAM_GROVE_COLOR);
  670. }
  671. if(donopark == 2)
  672. {
  673. GangZoneShowForPlayer(playerid, GZPark, TEAM_BALLAS_COLOR);
  674. }
  675. if(donopark == 3)
  676. {
  677. GangZoneShowForPlayer(playerid, GZPark, TEAM_VAGOS_COLOR);
  678. }
  679. if(donopark == 4)
  680. {
  681. GangZoneShowForPlayer(playerid, GZPark, TEAM_AZTECAS_COLOR);
  682. }
  683. if(donopark == 5)
  684. {
  685. GangZoneShowForPlayer(playerid, GZPark, COR_ROTAM);
  686. }
  687. if(donopark == 6)
  688. {
  689. GangZoneShowForPlayer(playerid, GZPark, GCOP_COLOR);
  690. }
  691. if(donopark == 7)
  692. {
  693. GangZoneShowForPlayer(playerid, GZPark, 0xF6000000);
  694. }
  695. if(donopark == 8)
  696. {
  697. GangZoneShowForPlayer(playerid, GZPark, COR_SONS);
  698. }
  699. if(donopark == 9)
  700. {
  701. GangZoneShowForPlayer(playerid, GZPark, COR_PR);
  702. }
  703. if(donopark == 10)
  704. {
  705. GangZoneShowForPlayer(playerid, GZPark, COR_DRIFT);
  706. }
  707.  
  708. ClearChatbox(playerid, 100);
  709. if(fexist(string2))
  710. {
  711. gPlayerConta[playerid] = 1;
  712. }
  713. else
  714. {
  715. gPlayerConta[playerid] = 0;
  716. }
  717. return true;
  718. }
  719.  
  720. //----------------------------------------------------------
  721.  
  722. public OnPlayerSpawn(playerid)
  723. {
  724. AntiDeAMX();
  725. RecentlyShot[playerid] = 0;
  726. TextDrawHideForAll(Reloginho1);
  727. TextDrawShowForPlayer(playerid, Reloginho1);
  728. TextDrawHideForAll(Reloginho2);
  729. TextDrawShowForPlayer(playerid, Reloginho2);
  730. TextDrawHideForPlayer(playerid, BULText[playerid]);
  731. TextDrawShowForPlayer(playerid, embaixo);
  732. if(sincronizando[playerid] == 1)
  733. {
  734. return true;
  735. }
  736. gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
  737. if (gTeam[playerid] == 4) //medic / criminal reset team
  738. {
  739. gTeam[playerid] = 3;
  740. }
  741. if(gPlayerLogged[playerid] == 0)
  742. {
  743. SendClientMessage(playerid, COLOR_LIGHTRED, "AdmCmd: Você foi kickado pelo Sistema, Motivo: Spawn sem login");
  744. SendClientMessage(playerid, COLOR_LIGHTRED,"Mijao_Bundao te kickou do servidor, e não o contrarie novamente");
  745. Kick(playerid);
  746. return true;
  747. }
  748. CheckInfoOrg(playerid);
  749. if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLider] < 1)
  750. {
  751. MedicBill[playerid] = 0;
  752. SendClientMessage(playerid, COLOR_LIGHTRED, "Você não foi aprovado pelo líder, agora é um Civil !");
  753. PlayerInfo[playerid][pTeam] = 3;
  754. gTeam[playerid] = 3;
  755. if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 23; } else { PlayerInfo[playerid][pSkin] = 40; }
  756. SetSpawnInfo(playerid, gTeam[playerid], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
  757. SpawnPlayer(playerid);
  758. }
  759. if(gTeam[playerid] == 5)
  760. {
  761. if(PlayerInfo[playerid][pMembro] < 1)
  762. {
  763. MedicBill[playerid] = 0;
  764. SendClientMessage(playerid, COLOR_LIGHTRED, "Você não faz parte de uma familia, agora é um Civil !");
  765. PlayerInfo[playerid][pTeam] = 3;
  766. gTeam[playerid] = 3;
  767. if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 23; } else { PlayerInfo[playerid][pSkin] = 40; }
  768. SetSpawnInfo(playerid, gTeam[playerid], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
  769. SpawnPlayer(playerid);
  770. }
  771. }
  772. if(gTeam[playerid] == 10)
  773. {
  774. if(PlayerInfo[playerid][pMembro] != 8 && PlayerInfo[playerid][pMembro] != 22)
  775. {
  776. MedicBill[playerid] = 0;
  777. SendClientMessage(playerid, COLOR_LIGHTRED, "Você não faz parte de uma agencia, é um Civil !");
  778. PlayerInfo[playerid][pTeam] = 3;
  779. gTeam[playerid] = 3;
  780. if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 23; } else { PlayerInfo[playerid][pSkin] = 40; }
  781. SetSpawnInfo(playerid, gTeam[playerid], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
  782. SpawnPlayer(playerid);
  783. }
  784. }
  785. if(gTeam[playerid] == 2)
  786. {
  787. if(PlayerInfo[playerid][pMembro] != 1 && PlayerInfo[playerid][pMembro] != 2 && PlayerInfo[playerid][pMembro] != 3 && PlayerInfo[playerid][pMembro] != 16 && PlayerInfo[playerid][pMembro] != 11)
  788. {
  789. MedicBill[playerid] = 0;
  790. SendClientMessage(playerid, COLOR_LIGHTRED, "Você não é mais um oficial, é um Civil !");
  791. PlayerInfo[playerid][pTeam] = 3;
  792. gTeam[playerid] = 3;
  793. if(PlayerInfo[playerid][pSex] == 1) { PlayerInfo[playerid][pSkin] = 23; } else { PlayerInfo[playerid][pSkin] = 40; }
  794. SetSpawnInfo(playerid, gTeam[playerid], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
  795. SpawnPlayer(playerid);
  796. }
  797. }
  798. if(gTeam[playerid] == 3)
  799. {
  800. if(PlayerInfo[playerid][pMembro] > 0 || PlayerInfo[playerid][pLider] > 0)
  801. {
  802. MedicBill[playerid] = 0;
  803. if(PlayerInfo[playerid][pMembro] == 1) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
  804. else if(PlayerInfo[playerid][pMembro] == 2) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
  805. else if(PlayerInfo[playerid][pMembro] == 3) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
  806. else if(PlayerInfo[playerid][pMembro] == 4) { SetSpawnInfo(playerid, 1, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; }
  807. else if(PlayerInfo[playerid][pMembro] == 5) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
  808. else if(PlayerInfo[playerid][pMembro] == 7) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  809. else if(PlayerInfo[playerid][pMembro] == 6) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
  810. else if(PlayerInfo[playerid][pMembro] == 8) { SetSpawnInfo(playerid, 10, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; }
  811. else if(PlayerInfo[playerid][pMembro] == 9) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
  812. else if(PlayerInfo[playerid][pMembro] == 10) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
  813. else if(PlayerInfo[playerid][pMembro] == 11) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
  814. else if(PlayerInfo[playerid][pMembro] == 12) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 22; }
  815. else if(PlayerInfo[playerid][pMembro] == 13) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 20; }
  816. else if(PlayerInfo[playerid][pMembro] == 14) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 15; }
  817. else if(PlayerInfo[playerid][pMembro] == 15) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 16; }
  818. else if(PlayerInfo[playerid][pMembro] == 16) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
  819. else if(PlayerInfo[playerid][pMembro] == 17) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 18; }
  820. else if(PlayerInfo[playerid][pMembro] == 18) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
  821. else if(PlayerInfo[playerid][pMembro] == 19) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
  822. else if(PlayerInfo[playerid][pMembro] == 20) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
  823. else if(PlayerInfo[playerid][pMembro] == 21) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
  824. else if(PlayerInfo[playerid][pMembro] == 23) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
  825. else if(PlayerInfo[playerid][pMembro] == 22) { SetSpawnInfo(playerid, 10, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; }
  826. else if(PlayerInfo[playerid][pMembro] == 25) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
  827. else if(PlayerInfo[playerid][pMembro] == 24) { SetSpawnInfo(playerid, 10, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; }
  828. else if(PlayerInfo[playerid][pMembro] == 26) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
  829. else if(PlayerInfo[playerid][pMembro] == 27) { SetSpawnInfo(playerid, 1, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; }
  830. else if(PlayerInfo[playerid][pMembro] == 28) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 19; }
  831. else if(PlayerInfo[playerid][pMembro] == 30) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  832. else if(PlayerInfo[playerid][pMembro] == 31) { SetSpawnInfo(playerid, 5, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
  833. else if(PlayerInfo[playerid][pMembro] == 32) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
  834. else if(PlayerInfo[playerid][pMembro] == 33) { SetSpawnInfo(playerid, 12, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
  835. else if(PlayerInfo[playerid][pMembro] == 34) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
  836. else if(PlayerInfo[playerid][pMembro] == 35) { SetSpawnInfo(playerid, 2, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
  837. //SPAAWN LIDER
  838. else if(PlayerInfo[playerid][pLider] == 1) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  839. else if(PlayerInfo[playerid][pLider] == 2) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  840. else if(PlayerInfo[playerid][pLider] == 3) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  841. else if(PlayerInfo[playerid][pLider] == 4) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  842. else if(PlayerInfo[playerid][pLider] == 5) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  843. else if(PlayerInfo[playerid][pLider] == 6) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  844. else if(PlayerInfo[playerid][pLider] == 7) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  845. else if(PlayerInfo[playerid][pLider] == 8) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  846. else if(PlayerInfo[playerid][pLider] == 9) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  847. else if(PlayerInfo[playerid][pLider] == 10) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  848. else if(PlayerInfo[playerid][pLider] == 11) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  849. else if(PlayerInfo[playerid][pLider] == 12) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 22; }
  850. else if(PlayerInfo[playerid][pLider] == 13) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 20; }
  851. else if(PlayerInfo[playerid][pLider] == 14) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 15; }
  852. else if(PlayerInfo[playerid][pLider] == 24) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 15; }
  853. else if(PlayerInfo[playerid][pLider] == 15) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 16; }
  854. else if(PlayerInfo[playerid][pLider] == 16) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  855. else if(PlayerInfo[playerid][pLider] == 17) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 18; }
  856. else if(PlayerInfo[playerid][pLider] == 18) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
  857. else if(PlayerInfo[playerid][pLider] == 25) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
  858. else if(PlayerInfo[playerid][pLider] == 19) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
  859. else if(PlayerInfo[playerid][pLider] == 20) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
  860. else if(PlayerInfo[playerid][pLider] == 21) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
  861. else if(PlayerInfo[playerid][pLider] == 22) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  862. else if(PlayerInfo[playerid][pLider] == 23) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
  863. else if(PlayerInfo[playerid][pLider] == 27) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  864. else if(PlayerInfo[playerid][pLider] == 28) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
  865. else if(PlayerInfo[playerid][pLider] == 29) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 19; }
  866. else if(PlayerInfo[playerid][pLider] == 30) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  867. else if(PlayerInfo[playerid][pLider] == 31) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  868. else if(PlayerInfo[playerid][pLider] == 32) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  869. else if(PlayerInfo[playerid][pLider] == 33) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  870. else if(PlayerInfo[playerid][pLider] == 34) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  871. else if(PlayerInfo[playerid][pLider] == 35) { SetSpawnInfo(playerid, 11, PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
  872. SpawnPlayer(playerid);
  873. }
  874. }
  875. if(PlayerInfo[playerid][pSkin] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); }
  876. else
  877. {
  878. if(PlayerInfo[playerid][pSex] == 1) { SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); }
  879. else { PlayerInfo[playerid][pSkin] = 40; SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); }
  880. }
  881. SetPlayerWeapons(playerid);
  882. SetPlayerSpawn(playerid);
  883. SetPlayerToTeamColor(playerid);
  884. PlayerFixRadio(playerid);
  885. return true;
  886.  
  887. //----------------------------------------------------------
  888.  
  889. public OnPlayerDeath(playerid, killerid, reason)
  890. {
  891. new string[256];
  892. antifakekill[playerid] ++;
  893. SetTimerEx("antifakekill2", 1000,false,"i",playerid);
  894. SendDeathMessage(killerid, playerid, reason);
  895. RemovePlayerAttachedObject(playerid,3);
  896. RemovePlayerAttachedObject(playerid, 3);
  897. Watching[playerid] = 0;
  898. Goto[playerid] = 0;
  899. if (gPlayerTerminal[playerid] != 0)
  900. {
  901. BusrouteEnd(playerid);
  902. }
  903. SetPlayerCriminal(killerid, 255, "Assasinato");
  904. PlayerInfo[killerid][pKills] += 1;
  905. if(TendoGuerra == 1 && IsPlayerInTerritorio(playerid) && IsPlayerInTerritorio(killerid))
  906. {
  907. if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
  908. {
  909. if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
  910. {
  911. Territorio[talmortos] += 1;
  912. }
  913. if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
  914. {
  915. Territorio[almortos] += 1;
  916. }
  917. }
  918. if(PlayerInfo[killerid][pMembro] == 6 || PlayerInfo[killerid][pLider] == 6)
  919. {
  920. if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
  921. {
  922. Territorio[exemortos] += 1;
  923. }
  924. if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
  925. {
  926. Territorio[almortos] += 1;
  927. }
  928. }
  929. if(PlayerInfo[killerid][pMembro] == 15 || PlayerInfo[killerid][pLider] == 15)
  930. {
  931. if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
  932. {
  933. Territorio[exemortos] += 1;
  934. }
  935. if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
  936. {
  937. Territorio[talmortos] += 1;
  938. }
  939. }
  940. }
  941.  
  942.  
  943. //----------------------------------------------------------
  944.  
  945. ClassSel_HandleCitySelection(playerid)
  946. {
  947. new Keys,ud,lr;
  948. GetPlayerKeys(playerid,Keys,ud,lr);
  949.  
  950. if(gPlayerCitySelection[playerid] == -1) {
  951. ClassSel_SwitchToNextCity(playerid);
  952. return;
  953. }
  954.  
  955. // only allow new selection every ~500 ms
  956. if( (GetTickCount() - gPlayerLastCitySelectionTick[playerid]) < 500 ) return;
  957.  
  958. if(Keys & KEY_FIRE) {
  959. gPlayerHasCitySelected[playerid] = 1;
  960. TextDrawHideForPlayer(playerid,txtClassSelHelper);
  961. TextDrawHideForPlayer(playerid,txtLosSantos);
  962. TextDrawHideForPlayer(playerid,txtSanFierro);
  963. TextDrawHideForPlayer(playerid,txtLasVenturas);
  964. TogglePlayerSpectating(playerid,0);
  965. return;
  966. }
  967.  
  968. if(lr > 0) {
  969. ClassSel_SwitchToNextCity(playerid);
  970. }
  971. else if(lr < 0) {
  972. ClassSel_SwitchToPreviousCity(playerid);
  973. }
  974. }
  975.  
  976. //----------------------------------------------------------
  977.  
  978. public OnPlayerRequestClass(playerid, classid)
  979. {
  980. if(IsPlayerNPC(playerid)) return 1;
  981.  
  982. if(gPlayerHasCitySelected[playerid]) {
  983. ClassSel_SetupCharSelection(playerid);
  984. return 1;
  985. } else {
  986. if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING) {
  987. TogglePlayerSpectating(playerid,1);
  988. TextDrawShowForPlayer(playerid, txtClassSelHelper);
  989. gPlayerCitySelection[playerid] = -1;
  990. }
  991. }
  992.  
  993. return 0;
  994. }
  995.  
  996. //----------------------------------------------------------
  997.  
  998. public OnGameModeInit()
  999. {
  1000. SetGameModeText("Play Brasil v2.0");
  1001. ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
  1002. ShowNameTags(1);
  1003. SetNameTagDrawDistance(40.0);
  1004. EnableStuntBonusForAll(0);
  1005. DisableInteriorEnterExits();
  1006. SetWeather(2);
  1007. SetWorldTime(11);
  1008.  
  1009. //UsePlayerPedAnims();
  1010. //ManualVehicleEngineAndLights();
  1011. //LimitGlobalChatRadius(300.0);
  1012.  
  1013. ClassSel_InitTextDraws();
  1014.  
  1015. // Player Class
  1016. AddPlayerClass(281,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1017. AddPlayerClass(282,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1018. AddPlayerClass(283,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1019. AddPlayerClass(284,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1020. AddPlayerClass(285,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1021. AddPlayerClass(286,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1022. AddPlayerClass(287,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1023. AddPlayerClass(288,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1024. AddPlayerClass(289,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1025. AddPlayerClass(265,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1026. AddPlayerClass(266,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1027. AddPlayerClass(267,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1028. AddPlayerClass(268,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1029. AddPlayerClass(269,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1030. AddPlayerClass(270,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1031. AddPlayerClass(1,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1032. AddPlayerClass(2,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1033. AddPlayerClass(3,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1034. AddPlayerClass(4,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1035. AddPlayerClass(5,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1036. AddPlayerClass(6,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1037. AddPlayerClass(8,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1038. AddPlayerClass(42,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1039. AddPlayerClass(65,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1040. //AddPlayerClass(74,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1041. AddPlayerClass(86,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1042. AddPlayerClass(119,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1043. AddPlayerClass(149,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1044. AddPlayerClass(208,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1045. AddPlayerClass(273,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1046. AddPlayerClass(289,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1047.  
  1048. AddPlayerClass(47,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1049. AddPlayerClass(48,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1050. AddPlayerClass(49,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1051. AddPlayerClass(50,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1052. AddPlayerClass(51,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1053. AddPlayerClass(52,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1054. AddPlayerClass(53,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1055. AddPlayerClass(54,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1056. AddPlayerClass(55,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1057. AddPlayerClass(56,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1058. AddPlayerClass(57,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1059. AddPlayerClass(58,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1060. AddPlayerClass(68,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1061. AddPlayerClass(69,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1062. AddPlayerClass(70,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1063. AddPlayerClass(71,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1064. AddPlayerClass(72,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1065. AddPlayerClass(73,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1066. AddPlayerClass(75,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1067. AddPlayerClass(76,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1068. AddPlayerClass(78,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1069. AddPlayerClass(79,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1070. AddPlayerClass(80,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1071. AddPlayerClass(81,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1072. AddPlayerClass(82,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1073. AddPlayerClass(83,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1074. AddPlayerClass(84,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1075. AddPlayerClass(85,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1076. AddPlayerClass(87,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1077. AddPlayerClass(88,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1078. AddPlayerClass(89,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1079. AddPlayerClass(91,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1080. AddPlayerClass(92,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1081. AddPlayerClass(93,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1082. AddPlayerClass(95,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1083. AddPlayerClass(96,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1084. AddPlayerClass(97,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1085. AddPlayerClass(98,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1086. AddPlayerClass(99,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
  1087.  
  1088. // SPECIAL
  1089. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/trains.txt");
  1090. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/pilots.txt");
  1091.  
  1092. // LAS VENTURAS
  1093. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_law.txt");
  1094. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_airport.txt");
  1095. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_gen.txt");
  1096.  
  1097. // SAN FIERRO
  1098. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_law.txt");
  1099. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_airport.txt");
  1100. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_gen.txt");
  1101.  
  1102. // LOS SANTOS
  1103. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_law.txt");
  1104. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_airport.txt");
  1105. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_inner.txt");
  1106. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_outer.txt");
  1107.  
  1108. // OTHER AREAS
  1109. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/whetstone.txt");
  1110. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/bone.txt");
  1111. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/flint.txt");
  1112. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/tierra.txt");
  1113. total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/red_county.txt");
  1114.  
  1115. printf("Total de veículos carregados: %d",total_vehicles_from_files);
  1116.  
  1117. return 1;
  1118. }
  1119.  
  1120. //----------------------------------------------------------
  1121.  
  1122. public OnPlayerUpdate(playerid)
  1123. {
  1124. if(!IsPlayerConnected(playerid)) return 0;
  1125. if(IsPlayerNPC(playerid)) return 1;
  1126.  
  1127. // changing cities by inputs
  1128. if( !gPlayerHasCitySelected[playerid] &&
  1129. GetPlayerState(playerid) == PLAYER_STATE_SPECTATING ) {
  1130. ClassSel_HandleCitySelection(playerid);
  1131. return 1;
  1132. }
  1133.  
  1134. // No weapons in interiors
  1135. if(GetPlayerInterior(playerid) != 0 && GetPlayerWeapon(playerid) != 0) {
  1136. SetPlayerArmedWeapon(playerid,0); // fists
  1137. return 0; // no syncing until they change their weapon
  1138. }
  1139.  
  1140. // Don't allow minigun
  1141. if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN) {
  1142. Kick(playerid);
  1143. return 0;
  1144. }
  1145.  
  1146. /* No jetpacks allowed
  1147. if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
  1148. Kick(playerid);
  1149. return 0;
  1150. }*/
  1151.  
  1152. /* For testing animations
  1153. new msg[128+1];
  1154. new animlib[32+1];
  1155. new animname[32+1];
  1156.  
  1157. thisanimid = GetPlayerAnimationIndex(playerid);
  1158. if(lastanimid != thisanimid)
  1159. {
  1160. GetAnimationName(thisanimid,animlib,32,animname,32);
  1161. format(msg, 128, "anim(%d,%d): %s %s", lastanimid, thisanimid, animlib, animname);
  1162. lastanimid = thisanimid;
  1163. SendClientMessage(playerid, 0xFFFFFFFF, msg);
  1164. }*/
  1165.  
  1166. return 1;
  1167. }
  1168.  
  1169. //----------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment