Advertisement
Guest User

Untitled

a guest
Dec 7th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.60 KB | None | 0 0
  1. // Includes
  2. #include <a_samp>
  3.  
  4. //================== New / Static =================
  5. static gTeam[MAX_PLAYERS]; // Gangs !
  6. new Text:topblack, Text:bottomblack;
  7. new BallasTotal[MAX_PLAYERS], VagosTotal[MAX_PLAYERS], GroveTotal[MAX_PLAYERS], AztecasTotal[MAX_PLAYERS];
  8. new BallasOwna[MAX_PLAYERS], VagosOwna[MAX_PLAYERS], GroveOwna[MAX_PLAYERS], AztecasOwna[MAX_PLAYERS];
  9. new BallasFail[MAX_PLAYERS], VagosFail[MAX_PLAYERS], GroveFail[MAX_PLAYERS], AztecasFail[MAX_PLAYERS];
  10.  
  11. // Defines
  12. #define Aztecas 1 // Gang Número 1 ( Aztecas )
  13. #define Grove 2 // Gang Número 2 ( Grove )
  14. #define Vagos 3 // Gang Número 3 ( Vagos )
  15. #define Ballas 4 // Gang Número 4 ( Ballas )
  16. #define CorAztecas 0x2641FEC8 // Gang Cor
  17. #define CorBallas 0x9900FFC8 // Gang Cor
  18. #define CorGrove 0x00D900C8 // Gang Cor
  19. #define CorVagos 0xFFC801C8 // Gang Cor
  20. // =========================================
  21. main()
  22. { // Créditos
  23. print("\n-----------------------------------------------");
  24. print(" >>>> GangWar Base Criado Por: Jonathan Feitosa <<<<");
  25. print("-----------------------------------------------\n");
  26. }
  27. // =========================================================
  28.  
  29. public OnGameModeInit()
  30. {
  31. SetGameModeText("JFS GangWar Base");
  32. DisableInteriorEnterExits(); // Desativar Todos os Interiores Do Samp.
  33. Create3DTextLabel("Aperte 'F' Para Equipar", CorAztecas, 2210.7656,-1148.6774,25.7500, 60, 0); // Mensagem Voadora
  34. Create3DTextLabel("Aperte 'F' Para Equipar", CorBallas, 1152.6373,-1174.8339,32.0275, 60, 0); // Mensagem Voadora
  35. Create3DTextLabel("Aperte 'F' Para Equipar", CorVagos, 2755.6375,-1982.5222,13.5498, 60, 0); // Mensagem Voadora
  36. Create3DTextLabel("Aperte 'F' Para Equipar", CorGrove, 2513.3293,-1679.9669,13.4664, 60, 0); // Mensagem Voadora
  37. AddStaticPickup(356,23, 2513.3293,-1679.9669,13.4664); // Pickup Grove
  38. AddStaticPickup(356,23, 2755.6375,-1982.5222,13.5498); // Pickup Vagos
  39. AddStaticPickup(356,23, 2210.7656,-1148.6774,25.7500); // Pickup Aztecas
  40. AddStaticPickup(356,23,1152.5374,-1174.7839,32.0275); //ballas
  41. UsePlayerPedAnims(); // Andar Quen meo CJ.
  42. // Skins De Cada Org Abaixo
  43. // =========================== Grove ======================
  44. AddPlayerClass(105,2531.0586,-1666.2322,15.1678,183.9649,0,0,0,0,0,0); // [ 0 ]
  45. AddPlayerClass(106,2531.0586,-1666.2322,15.1678,183.9649,0,0,0,0,0,0); // [ 1 ]
  46. AddPlayerClass(107,2531.0586,-1666.2322,15.1678,183.9649,0,0,0,0,0,0); // [ 2 ]
  47. // =========================== Ballas ======================
  48. AddPlayerClass(102,1152.6373,-1174.8339,32.0275,183.9649,0,0,0,0,0,0); // [ 3 ]
  49. AddPlayerClass(103,1152.6373,-1174.8339,32.0275,183.9649,0,0,0,0,0,0); // [ 4 ]
  50. AddPlayerClass(104,1152.6373,-1174.8339,32.0275,183.9649,0,0,0,0,0,0); // [ 5 ]
  51. // =========================== Aztecas ======================
  52. AddPlayerClass(114,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); // [ 6 ]
  53. AddPlayerClass(115,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); // [ 7 ]
  54. AddPlayerClass(116,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); // [ 8 ]
  55. // =========================== Vagos ======================
  56. AddPlayerClass(108,2752.3999,-1970.7333,17.3203,178.5558,0,0,0,0,0,0); // [ 9 ]
  57. AddPlayerClass(109,2752.3999,-1970.7333,17.3203,178.5558,0,0,0,0,0,0); // [ 10 ]
  58. AddPlayerClass(110,2752.3999,-1970.7333,17.3203,178.5558,0,0,0,0,0,0); // [ 11 ]
  59. // ========================== Carros Aztecas ================
  60. AddStaticVehicle(451,2228.0017,-1177.2207,25.5055,89.3594,7,7); // buffalo aztecas [ 0 ]
  61. AddStaticVehicle(451,2227.8584,-1173.3408,25.5143,89.3396,7,7); // buffalo aztecas [ 1 ]
  62. AddStaticVehicle(451,2227.5554,-1170.0974,25.5656,90.6006,7,7); // buffalo aztecas [ 2 ]
  63. AddStaticVehicle(451,2226.8943,-1166.7983,25.5274,88.8920,7,7); // buffalo aztecas [ 3 ]
  64. AddStaticVehicle(402,2227.1951,-1162.8190,25.5423,92.6049,7,7); // buffalo aztecas [ 4 ]
  65. AddStaticVehicle(522,2227.5981,-1159.3324,25.3473,92.5241,7,7); // nrg-500 aztecas [ 5 ]
  66. AddStaticVehicle(522,2227.5171,-1156.1665,25.3729,97.4871,7,7); // nrg-500 aztecas [ 6 ]
  67. AddStaticVehicle(522,2227.4768,-1152.8451,25.4123,91.8497,7,7); // nrg-500 aztecas [ 7 ]
  68. AddStaticVehicle(522,2205.9624,-1177.7667,25.2896,90.7015,7,7); // nrg-500 aztecas [ 8 ]
  69. AddStaticVehicle(521,2206.3523,-1172.2577,25.2917,89.1491,7,7); // frcr-900 [ 9 ]
  70. AddStaticVehicle(521,2205.6428,-1169.7382,25.3014,89.1121,7,7); // frcr-900 [ 10 ]
  71. AddStaticVehicle(522,2215.9402,-1158.6952,25.3031,266.0476,7,7); // pcj 600 [ 11 ]
  72. AddStaticVehicle(522,2215.9128,-1161.2886,25.2992,270.8261,7,7); // pcj 600 [ 12 ]
  73. AddStaticVehicle(522,2206.4854,-1153.0164,25.2985,264.3456,7,7); // nrg500 [ 13 ]
  74. AddStaticVehicle(522,2207.3574,-1157.1971,25.2907,267.6484,7,7); // nrg500 [ 14 ]
  75. AddStaticVehicle(562,2217.3679,-1166.9429,25.4292,272.3709,7,7); // elegy azte... [ 15 ]
  76. AddStaticVehicle(562,2218.0869,-1170.8639,25.4275,269.2777,7,7); // elegy [ 16 ]
  77. // ============================== Carros Grove ==================================
  78. AddStaticVehicle(451,2507.2917,-1694.9517,13.3310,358.7065,16,16); // car buffalo grove [ 17 ]
  79. AddStaticVehicle(451,2503.5190,-1695.2854,13.1647,352.8430,16,16); // bf-400 grove [ 18 ]
  80. AddStaticVehicle(451,2494.4307,-1681.0906,13.1290,3.4112,16,16); // car buffalo grove [ 19 ]
  81. AddStaticVehicle(402,2489.4109,-1680.8353,13.1221,0.5461,16,16); // car buffalo grove [ 20 ]
  82. AddStaticVehicle(402,2485.2766,-1679.7288,13.1672,357.8934,16,16); // car buffalo grove [ 21 ]
  83. AddStaticVehicle(402,2480.6177,-1679.9082,13.1216,347.7194,16,16); // car buffalo grove [ 22 ]
  84. AddStaticVehicle(562,2505.8860,-1665.1135,13.0919,110.9995,16,16); // elegy grove [ 23 ]
  85. AddStaticVehicle(562,2507.0308,-1669.2014,13.0794,101.6334,16,16); // elegy grove [ 24 ]
  86. AddStaticVehicle(562,2505.3787,-1673.6432,13.0672,67.7658,16,16); // elegy grove [ 25 ]
  87. AddStaticVehicle(562,2502.6333,-1659.4658,13.0947,140.6635,16,16); // elegy grove [ 26 ]
  88. AddStaticVehicle(522,2499.7651,-1657.5057,12.9592,326.1129,16,16); // nrg-500 grove [ 27 ]
  89. AddStaticVehicle(522,2497.8962,-1656.6799,12.9421,331.7852,16,16); // nrg-500 grove [ 28 ]
  90. AddStaticVehicle(522,2495.7527,-1656.7389,12.9290,338.6786,16,16); // nrg-500 grove [ 29 ]
  91. AddStaticVehicle(522,2493.8975,-1655.4590,12.9391,347.3511,16,16); // nrg-500 grove [ 30 ]
  92. AddStaticVehicle(522,2491.3171,-1656.3098,12.9401,357.3483,16,16); // nrg-500 grove [ 31 ]
  93. AddStaticVehicle(461,2489.4001,-1656.0945,12.9177,0.7199,16,16); // pcj-600 grove [ 32 ]
  94. AddStaticVehicle(461,2487.8455,-1656.0068,12.9344,3.6682,16,16); // pcj-600 grove [ 33 ]
  95. AddStaticVehicle(461,2486.4102,-1655.7758,12.9163,354.3053,16,16); // pcj-600 grove [ 34 ]
  96. AddStaticVehicle(461,2484.2288,-1656.0884,12.9008,355.9345,16,16); // pcj-600 grove [ 35 ]
  97. // ============================ Carros Vagos ===================================
  98. AddStaticVehicle(451,2762.6338,-1978.3883,13.5474,359.6876,6,6); // Carro Vagos [ 36 ]
  99. AddStaticVehicle(451,2762.6763,-1970.5898,13.5455,359.6876,6,6); // Carro Vagos [ 37 ]
  100. AddStaticVehicle(451,2762.7070,-1965.0404,13.5442,359.6876,6,6); // Carro Vagos [ 38 ]
  101. AddStaticVehicle(451,2762.7498,-1957.0906,13.5469,359.6876,6,6); // Carro Vagos [ 39 ]
  102. AddStaticVehicle(451,2758.7971,-1945.8519,13.5509,267.8801,6,6); // Carro Vagos [ 40 ]
  103. AddStaticVehicle(560,2759.1050,-1941.9249,13.5513,267.8801,6,6); // Carro Vagos [ 41 ]
  104. AddStaticVehicle(560,2762.2512,-1935.1775,13.5394,0.1694,6,6); // Carro Vagos [ 42 ]
  105. AddStaticVehicle(560,2762.2163,-1923.7399,13.5394,0.1694,6,6); // Carro Vagos [ 43 ]
  106. AddStaticVehicle(522,2758.0715,-1916.0160,13.5394,177.3493,6,6); // Moto Vagos [ 44 ]
  107. AddStaticVehicle(522,2754.5859,-1916.3378,13.5469,179.2293,6,6); // Moto Vagos [ 45 ]
  108. AddStaticVehicle(522,2754.5054,-1922.3063,13.5469,179.2293,6,6); // Moto Vagos [ 46 ]
  109. AddStaticVehicle(522,2756.7610,-1922.6951,13.5469,179.2293,6,6); // Moto Vagos [ 47 ]
  110. AddStaticVehicle(522,2758.3906,-1925.5867,13.5434,179.2293,6,6); // Moto Vagos [ 48 ]
  111. AddStaticVehicle(522,2755.6292,-1925.9069,13.5469,179.2293,6,6); // Moto Vagos [ 49 ]
  112. AddStaticVehicle(522,2753.1367,-1926.3641,13.5469,179.2293,6,6); // Moto Vagos [ 50 ]
  113. AddStaticVehicle(521,2753.1318,-1935.3335,13.5394,268.5302,6,6); // Moto Vagos [ 51 ]
  114. AddStaticVehicle(521,2753.4460,-1938.4803,13.5394,268.2168,6,6); // Moto Vagos [ 52 ]
  115. AddStaticVehicle(521,2753.7607,-1970.0848,13.5447,266.9402,6,6); // Moto Vagos [ 53 ]
  116. AddStaticVehicle(521,2754.3257,-1967.3141,13.5454,266.9402,6,6); // Moto Vagos [ 54 ]
  117. AddStaticVehicle(521,2754.4883,-1963.8829,13.5456,266.9402,6,6); // Moto Vagos [ 55 ]
  118. AddStaticVehicle(521,2753.3354,-1953.1685,13.5469,270.9901,6,6); // Moto Vagos [ 56 ]
  119. // =========================== Carros Ballas ===================================
  120. AddStaticVehicleEx(559,1101.3577,-1220.4922,17.4739,269.5554,149,149,6000000); // carro ballas 1 [ 57 ]
  121. AddStaticVehicleEx(480,1094.1334,-1220.4518,17.5967,270.1607,149,149,6000000); // carro ballas 2 [ 58 ]
  122. AddStaticVehicleEx(424,1085.9851,-1201.1321,17.6565,274.8244,149,149,6000000); // carro ballas 3 [ 59 ]
  123. AddStaticVehicleEx(482,1086.1566,-1196.0944,18.1987,271.4691,149,149,6000000); // carro ballas 4 [ 60 ]
  124. AddStaticVehicleEx(540,1105.1110,-1194.0067,17.9888,172.0282,149,149,6000000); // carro ballas 5 [ 61 ]
  125. AddStaticVehicleEx(567,1109.4108,-1193.4424,17.9686,178.1860,149,149,6000000); // carro ballas 6 [ 62 ]
  126. AddStaticVehicleEx(560,1114.7338,-1192.9241,17.7806,180.8726,149,149,6000000); // carro ballas 7 [ 63 ]
  127. AddStaticVehicleEx(522,1097.4205,-1183.5887,17.8993,173.9741,149,149,6000000); // carro ballas 8 [ 64 ]
  128. AddStaticVehicleEx(487,1096.0417,-1238.2765,16.0030,94.3000,149,149,6000000); // heli ballas [ 65 ]
  129. AddStaticVehicleEx(522,1094.3354,-1183.4917,17.9236,173.5424,149,149,6000000); // moto ballas 1 [ 66 ]
  130. AddStaticVehicleEx(536,1109.2062,-1220.4305,17.5422,268.7088,149,149,6000000); // moto ballas 2 [ 67 ]
  131. // ============================= TextDraw Preto Entrada ========================
  132. topblack = TextDrawCreate(1.000000,-45.000000,"__");
  133. bottomblack = TextDrawCreate(-2.000000,371.000000,"__");
  134. TextDrawUseBox(topblack,1);
  135. TextDrawBoxColor(topblack,0x000000ff);
  136. TextDrawTextSize(topblack,655.000000,80.000000);
  137. TextDrawUseBox(bottomblack,1);
  138. TextDrawBoxColor(bottomblack,0x000000ff);
  139. TextDrawTextSize(bottomblack,840.000000,240.000000);
  140. TextDrawAlignment(topblack,0);
  141. TextDrawAlignment(bottomblack,0);
  142. TextDrawBackgroundColor(topblack,0x000000ff);
  143. TextDrawBackgroundColor(bottomblack,0x000000ff);
  144. TextDrawFont(topblack,3);
  145. TextDrawLetterSize(topblack,1.000000,14.000000);
  146. TextDrawFont(bottomblack,3);
  147. TextDrawLetterSize(bottomblack,1.000000,24.000000);
  148. TextDrawColor(topblack,0xffffffff);
  149. TextDrawColor(bottomblack,0xffffffff);
  150. TextDrawSetOutline(topblack,1);
  151. TextDrawSetOutline(bottomblack,1);
  152. TextDrawSetProportional(topblack,1);
  153. TextDrawSetProportional(bottomblack,1);
  154. TextDrawSetShadow(topblack,1);
  155. TextDrawSetShadow(bottomblack,1);
  156. return 1;
  157. }
  158.  
  159.  
  160. public OnPlayerRequestClass(playerid, classid) // Onde Irá ir Para Escolher os Bonecos
  161. {
  162. if((classid >= 0) && (classid <= 2)) // Ao Ficar em cima das Skins 0, 1 , 2 Aparecerá
  163. {
  164. gTeam[playerid] = Grove;
  165. GameTextForPlayer(playerid,"~n~~n~~n~~g~Grove Street",4000,5);
  166. }
  167. if((classid >= 3) && (classid <= 5)) // Ao Ficar em cima das Skins 3, 4 , 5 Aparecerá
  168. {
  169. gTeam[playerid] = Ballas;
  170. GameTextForPlayer(playerid,"~n~~n~~n~~r~Ballas",4000,5);
  171. }
  172. if((classid >= 6) && (classid <= 8)) // Ao Ficar em cima das Skins 6, 7 , 8 Aparecerá
  173. {
  174. gTeam[playerid] = Aztecas;
  175. GameTextForPlayer(playerid,"~n~~n~~n~~b~Los Aztecas",4000,5);
  176. }
  177. if((classid >= 9) && (classid <= 11)) // Ao Ficar em cima das Skins 9, 10 , 11 Aparecerá
  178. {
  179. gTeam[playerid] = Vagos;
  180. GameTextForPlayer(playerid,"~n~~n~~n~~y~Los Santos Vagos",4000,5);
  181. }
  182. SetPlayerPos(playerid,1025.5751,-2140.7637,39.2032); // PLAYER
  183. SetPlayerCameraPos(playerid,1019.7552,-2141.0266,37.7274); // CAMERA
  184. SetPlayerCameraLookAt(playerid,1021.9974,-2140.9907,38.3012); // CAMERA
  185. SetPlayerFacingAngle(playerid, 82.6125); // ANGULO
  186. ApplyAnimation(playerid, "PARK", "Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0); // Animação No Inicio =D
  187. return 1;
  188. }
  189.  
  190. public OnPlayerConnect(playerid)
  191. {
  192. GameTextForPlayer(playerid, "~n~~n~~n~~n~~g~JFS ~b~GangWar ~y~Base ~r~v1.0", 5000, 5);
  193. TextDrawShowForPlayer(playerid, topblack);
  194. TextDrawShowForPlayer(playerid, bottomblack);
  195. PlayerPlaySound(playerid,1097, 0.0, 0.0, 0.0);
  196. new string[40];
  197. new pName[25];
  198. GetPlayerName(playerid, pName, sizeof(pName));
  199. format(string, sizeof(string), "%s Entrou no Servidor!", pName); // mensagem se alguem entrar
  200. SendClientMessageToAll(0xAAAAAAAA, string); // COR da Mensagem
  201. SendClientMessage(playerid, CorAztecas,"=============== Créditos Servidor ===============");
  202. SendClientMessage(playerid, -1,"Criado Totalmente Por: Jonathan Feitosa");
  203. SendClientMessage(playerid, -1,"Sistema de Registro Base Por : TiagoPS");
  204. return true;
  205. }
  206. public OnPlayerDisconnect(playerid, reason)
  207. {
  208. new pName[MAX_PLAYER_NAME];
  209. new string[40];
  210. GetPlayerName(playerid, pName, sizeof(pName));
  211. format(string, sizeof(string), "%s Saiu do Servidor! ", pName);
  212. SendClientMessageToAll(0xAAAAAAAA, string);
  213. return 1;
  214. }
  215.  
  216. public OnPlayerSpawn(playerid)
  217. {
  218. PlayerPlaySound(playerid,1098, 0.0, 0.0, 0.0);
  219. TextDrawHideForPlayer(playerid, topblack);
  220. TextDrawHideForPlayer(playerid, bottomblack);
  221. if(gTeam[playerid] == Grove)
  222. {
  223. SetPlayerColor(playerid, CorGrove);
  224. SetPlayerPos(playerid, 2531.0586,-1666.2322,15.1678);
  225. SetPlayerInterior(playerid, 0);
  226. }
  227. if(gTeam[playerid] == Ballas)
  228. {
  229. SetPlayerColor(playerid, CorBallas);
  230. SetPlayerPos(playerid, 1153.6738,-1181.1735,32.8187);
  231. SetPlayerInterior(playerid, 0);
  232. }
  233. if(gTeam[playerid] == Aztecas)
  234. {
  235. SetPlayerColor(playerid, CorAztecas);
  236. SetPlayerPos(playerid, 2232.2813,-1158.4985,29.7969);
  237. SetPlayerInterior(playerid, 0);
  238. }
  239. if(gTeam[playerid] == Vagos)
  240. {
  241. SetPlayerColor(playerid, CorVagos);
  242. SetPlayerPos(playerid, 2752.3999,-1970.7333,17.3203);
  243. SetPlayerInterior(playerid, 0);
  244. }
  245. return 1;
  246. }
  247.  
  248. public OnPlayerDeath(playerid, killerid, reason) // MORRENDO
  249. {
  250. new pname[128], string[128];
  251. if(playerid != INVALID_PLAYER_ID) SetPlayerScore(playerid, GetPlayerScore(playerid) - 1); // Ao Morrer = -1
  252. if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); // ALMENTADO 1 DE LEVEL AO MATAR 1
  253. SendDeathMessage(killerid, playerid, reason);
  254. if(gTeam[playerid] == Grove)
  255. {
  256. GroveTotal[playerid] --; // TOTAL
  257. GroveFail[playerid] ++; // MORTES
  258. GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  259. format(string, sizeof(string), "%s Morreu é Conquistou -1 Ponto Para os Grove.", pname);
  260. SendClientMessageToAll(CorGrove, string);
  261. }
  262. if(gTeam[playerid] == Ballas)
  263. {
  264. BallasTotal[playerid] --; // TOTAL
  265. BallasFail[playerid] ++; // MORTES
  266. GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  267. format(string, sizeof(string), "%s Morreu é Conquistou -1 Ponto Para os Ballas.", pname);
  268. SendClientMessageToAll(CorBallas, string);
  269. }
  270. if(gTeam[playerid] == Aztecas)
  271. {
  272. AztecasTotal[playerid] --; // TOTAL
  273. AztecasFail[playerid] ++; // MORTES
  274. GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  275. format(string, sizeof(string), "%s Morreu é Conquistou -1 Ponto Para os Aztecas.", pname);
  276. SendClientMessageToAll(CorAztecas, string);
  277. }
  278. if(gTeam[playerid] == Vagos)
  279. {
  280. VagosTotal[playerid] --; // TOTAL
  281. VagosFail[playerid] ++; // MORTES
  282. GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  283. format(string, sizeof(string), "%s Morreu é Conquistou -1 Ponto Para os Vagos.", pname);
  284. SendClientMessageToAll(CorVagos, string);
  285. }
  286. if(gTeam[killerid] == Grove)
  287. {
  288. GroveTotal[playerid] ++; // TOTAL
  289. GroveOwna[playerid] ++; // Matou Owned
  290. GetPlayerName(killerid, pname, MAX_PLAYER_NAME);
  291. format(string, sizeof(string), "%s Matou é Conquistou 1 Ponto Para os Grove.", pname);
  292. SendClientMessageToAll(CorGrove, string);
  293. }
  294. if(gTeam[killerid] == Ballas)
  295. {
  296. BallasTotal[playerid] ++; // TOTAL
  297. BallasOwna[playerid] ++; // Matou Owned
  298. GetPlayerName(killerid, pname, MAX_PLAYER_NAME);
  299. format(string, sizeof(string), "%s Matou é Conquistou 1 Ponto Para os Ballas.", pname);
  300. SendClientMessageToAll(CorBallas, string);
  301. }
  302. if(gTeam[killerid] == Aztecas)
  303. {
  304. AztecasTotal[playerid] ++; // TOTAL
  305. AztecasOwna[playerid] ++; // Matou Owned
  306. GetPlayerName(killerid, pname, MAX_PLAYER_NAME);
  307. format(string, sizeof(string), "%s Matou é Conquistou 1 Ponto Para os Aztecas.", pname);
  308. SendClientMessageToAll(CorAztecas, string);
  309. }
  310. if(gTeam[killerid] == Vagos)
  311. {
  312. VagosTotal[playerid] ++; // TOTAL
  313. VagosOwna[playerid] ++; // Matou Owned
  314. GetPlayerName(killerid, pname, MAX_PLAYER_NAME);
  315. format(string, sizeof(string), "%s Matou é Conquistou 1 Ponto Para os Vagos.", pname);
  316. SendClientMessageToAll(CorVagos, string);
  317. }
  318. return 1;
  319. }
  320.  
  321. public OnVehicleSpawn(vehicleid)
  322. {
  323. return 1;
  324. }
  325.  
  326. public OnVehicleDeath(vehicleid, killerid)
  327. {
  328. return 1;
  329. }
  330.  
  331. public OnPlayerText(playerid, text[])
  332. {
  333. return 1;
  334. }
  335.  
  336. public OnPlayerCommandText(playerid, cmdtext[])
  337. {
  338. if(strcmp(cmdtext, "/equipargrove", true) == 0)
  339. {
  340. if(gTeam[playerid] == Grove)
  341. {
  342. if(IsPlayerInRangeOfPoint(playerid, 2.0, 2513.3293,-1679.9669,13.4664))
  343. {
  344. Equipamentos(playerid);
  345. new EquiparG[100];
  346. strcat(EquiparG,"{7491F6}Você Pegou os Equipamentos da Gang\n");
  347. strcat(EquiparG,"{00D900}Grove Street\n");
  348. ShowPlayerDialog(playerid, 3442, DIALOG_STYLE_MSGBOX, "{F60000}EQUIPADO !",EquiparG, "Fechar", "");
  349. }
  350. }
  351. return true;
  352. }
  353. if(strcmp(cmdtext, "/equiparballas", true) == 0)
  354. {
  355. if(gTeam[playerid] == Ballas)
  356. {
  357. if(IsPlayerInRangeOfPoint(playerid, 2.0, 1152.6373,-1174.8339,32.0275))
  358. {
  359. Equipamentos(playerid);
  360. new EquiparG1[100];
  361. strcat(EquiparG1,"{7491F6}Você Pegou os Equipamentos da Gang\n");
  362. strcat(EquiparG1,"{9900FF}Ballas\n");
  363. ShowPlayerDialog(playerid, 3443, DIALOG_STYLE_MSGBOX, "{F60000}EQUIPADO !",EquiparG1, "Fechar", "");
  364. }
  365. }
  366. return true;
  367. }
  368. if(strcmp(cmdtext, "/equiparaztecas", true) == 0)
  369. {
  370. if(gTeam[playerid] == Aztecas)
  371. {
  372. if(IsPlayerInRangeOfPoint(playerid, 2.0, 2210.7656,-1148.6774,25.7500))
  373. {
  374. Equipamentos(playerid);
  375. new EquiparG2[100];
  376. strcat(EquiparG2,"{7491F6}Você Pegou os Equipamentos da Gang\n");
  377. strcat(EquiparG2,"{2641FE}Los Aztecas\n");
  378. ShowPlayerDialog(playerid, 3444, DIALOG_STYLE_MSGBOX, "{F60000}EQUIPADO !",EquiparG2, "Fechar", "");
  379. }
  380. }
  381. return true;
  382. }
  383. if(strcmp(cmdtext, "/equiparvagos", true) == 0)
  384. {
  385. if(gTeam[playerid] == Vagos)
  386. {
  387. if(IsPlayerInRangeOfPoint(playerid, 2.0, 2755.6375,-1982.5222,13.5498))
  388. {
  389. Equipamentos(playerid);
  390. new EquiparG3[100];
  391. strcat(EquiparG3,"{7491F6}Você Pegou os Equipamentos da Gang\n");
  392. strcat(EquiparG3,"{FFC801}Los Santos Vagos\n");
  393. ShowPlayerDialog(playerid, 3445, DIALOG_STYLE_MSGBOX, "{F60000}EQUIPADO !",EquiparG3, "Fechar", "");
  394. }
  395. }
  396. return true;
  397. }
  398. if (strcmp(cmdtext, "/kill", true)==0)
  399. {
  400. SendClientMessage(playerid,0x0000FFAA,"Você se matou!"); // MENSAGEM
  401. SetPlayerHealth(playerid, 0); // DANDO SANGUE 0 !
  402. return 1;
  403. }
  404. if (strcmp(cmdtext, "/rank", true)==0)
  405. {
  406. new GroveOwna1[150], AztecasOwna1[150], VagosOwna1[148], BallasOwna1[150];
  407. SendClientMessage(playerid, CorAztecas, "======================= Sistema de Gang Por: Jonathan Feitosa =================");
  408.  
  409. format(GroveOwna1, sizeof(GroveOwna1), "A Gang Grove Street {33CCFF}Matou {00D900}%d Pessoas - {33CCFF}Morreu {00D900}%d Vezes. {33CCFF}TOTAL: {00D900}%d", GroveOwna, GroveFail, GroveTotal);
  410. SendClientMessage(playerid, CorGrove, GroveOwna1);
  411.  
  412. SendClientMessage(playerid, CorBallas, " ");
  413.  
  414. format(AztecasOwna1, sizeof(AztecasOwna1), "A Gang Los Aztecas {33CCFF}Matou {2641FE}%d Pessoas - {33CCFF}Morreu {2641FE}%d Vezes. {33CCFF}TOTAL: {2641FE}%d", AztecasOwna, AztecasFail, AztecasTotal);
  415. SendClientMessage(playerid, CorAztecas, AztecasOwna1);
  416.  
  417. SendClientMessage(playerid, CorBallas, " ");
  418.  
  419. format(VagosOwna1, sizeof(VagosOwna1), "A Gang Los Santos Vagos {33CCFF}Matou {FFC801}%d Pessoas - {33CCFF}Morreu {FFC801}%d Vezes. {33CCFF}TOTAL: {FFC801}%d", VagosOwna, VagosFail, VagosTotal);
  420. SendClientMessage(playerid, CorVagos, VagosOwna1);
  421.  
  422. SendClientMessage(playerid, CorBallas, " ");
  423.  
  424. format(BallasOwna1, sizeof(BallasOwna1), "A Gang Ballas {33CCFF}Matou {9900FF}%d Pessoas - {33CCFF}Morreu {9900FF}%d Vezes. {33CCFF}TOTAL: {9900FF}%d", BallasOwna, BallasFail, BallasTotal);
  425. SendClientMessage(playerid, CorBallas, BallasOwna1);
  426. return true;
  427. }
  428. if (strcmp("/creditos", cmdtext, true, 10) == 0)
  429. {
  430. new creditos[300];
  431. strcat(creditos,"\n");
  432. strcat(creditos,"{7491F6}Criado Por : Jonathan Feitosa\n"); //MENSAGEM
  433. strcat(creditos,"{7491F6}Sistema de Registro Base: TiagoPS\n");
  434. ShowPlayerDialog(playerid,8439, DIALOG_STYLE_MSGBOX, "{F60000}Créditos",creditos, "Fechar", ""); // 1 BOTAO APENAR
  435. return 1;
  436. }
  437. if(strcmp(cmdtext,"/ajuda",true)==0)
  438. {
  439. new ajuda[1000];
  440. strcat(ajuda,"\n");
  441. strcat(ajuda,"{7491F6}/creditos /rank /kill /status\n");
  442. strcat(ajuda,"Para Mudar de Gang : Aperta F4 Depois /kill. \n");
  443. ShowPlayerDialog(playerid,8439, DIALOG_STYLE_MSGBOX, "{F60000}Ajuda",ajuda, "Fechar", "");
  444. return true;
  445. }
  446. return SendClientMessage(playerid, 0xAA3333AA, "[ERRO] - Comando Desconhecido Pelo Servidor"); // Mensagem Ao Errar Algum Comando
  447. }
  448.  
  449.  
  450. public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
  451. {
  452. if ((newkeys==KEY_SECONDARY_ATTACK)) // Key F / Enter
  453. {
  454. OnPlayerCommandText(playerid,"/equipargrove"); // Ao Apertar F irá Funfar isso
  455. OnPlayerCommandText(playerid,"/equiparballas"); // Ao Apertar F irá Funfar isso
  456. OnPlayerCommandText(playerid,"/equiparvagos"); // Ao Apertar F irá Funfar isso
  457. OnPlayerCommandText(playerid,"/equiparaztecas"); // Ao Apertar F irá Funfar isso
  458. }
  459. return true;
  460. }
  461.  
  462. // Stock Equipamentos.
  463. stock Equipamentos(playerid)
  464. {
  465. ResetPlayerWeapons(playerid); // reseta armas
  466. GivePlayerWeapon(playerid, 4, 1); // dar arma/Bala
  467. GivePlayerWeapon(playerid, 26, 999); // dar arma/Bala
  468. GivePlayerWeapon(playerid, 24, 999); // dar arma/Bala
  469. GivePlayerWeapon(playerid, 29, 999); // dar arma/Bala
  470. GivePlayerWeapon(playerid, 1, 1); // dar arma/Bala
  471. SetPlayerHealth(playerid, 100); // dar Vida 100
  472. SetPlayerArmour(playerid, 100); // dar Colete
  473. }
  474.  
  475. // ERROS QUE GERALMENTE ACONTECEM.
  476.  
  477. /* =============================================================================
  478. Erro Loose Idention = Linhas Mal Arrumadas. Vá Puxando Ela, Pro Lado/ Pro Outro é Vá apertando F5 ver se da.
  479.  
  480. Nao quer ter mais poblema com ele ? Bote
  481.  
  482. #pragma tabsize 0
  483.  
  484. Em Baixo das Includes
  485.  
  486. =============================================================================
  487. Erro 27 Erros = Alguma Chave Está Faltando }{. Verifique o Ultimo Code que você mexeu.
  488.  
  489. Como Tirar ? Foda-se Não Mando fazer Merda.
  490. =============================================================================*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement