Guest User

fggfgf

a guest
Nov 8th, 2017
118
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public OnPlayerSpawn(playerid)
  2. {
  3. IsConnected[playerid] = 1;
  4. for(new i=0; i<10; i++)
  5. {
  6. ELC_AC_EnablePlayerCheatID(playerid,i,1);
  7. }
  8. previousHealthValue[playerid] = 0.0;
  9. hits[playerid] = 0;
  10. delayer[playerid] = false;
  11. afterSpawnCover[playerid] = true;
  12. SetTimerEx("RemoveSpawnCover", AFTER_SPAWN_COVER_TIME, false, "i", playerid);
  13. isDead[playerid] = false;
  14.  
  15. // On met les couleurs
  16. if(GetPlayerTeam(playerid) == JUSTICE)
  17. {
  18. SetPlayerColor(playerid,TEAM_1_COLOR);
  19. new Random = random(sizeof(JusticeSpawn));
  20. SetPlayerPos(playerid, JusticeSpawn[Random][0], JusticeSpawn[Random][1], JusticeSpawn[Random][2]);
  21. }
  22. if(GetPlayerTeam(playerid) == GROVE)
  23. {
  24. SetPlayerColor(playerid,TEAM_2_COLOR);
  25. new Random = random(sizeof(GroveSpawn));
  26. SetPlayerPos(playerid, GroveSpawn[Random][0], GroveSpawn[Random][1], GroveSpawn[Random][2]);
  27. }
  28. if(GetPlayerTeam(playerid) == BALLAS)
  29. {
  30. SetPlayerColor(playerid,TEAM_3_COLOR);
  31. new Random = random(sizeof(BallasSpawn));
  32. SetPlayerPos(playerid, BallasSpawn[Random][0], BallasSpawn[Random][1], BallasSpawn[Random][2]);
  33. }
  34. if(GetPlayerTeam(playerid) == VAGOS)
  35. {
  36. SetPlayerColor(playerid,TEAM_4_COLOR);
  37. new Random = random(sizeof(VagosSpawn));
  38. SetPlayerPos(playerid, VagosSpawn[Random][0], VagosSpawn[Random][1], VagosSpawn[Random][2]);
  39. }
  40. if(GetPlayerTeam(playerid) == AZTECAS)
  41. {
  42. SetPlayerColor(playerid,TEAM_5_COLOR);
  43. new Random = random(sizeof(AztecasSpawn));
  44. SetPlayerPos(playerid, AztecasSpawn[Random][0], AztecasSpawn[Random][1], AztecasSpawn[Random][2]);
  45. }
  46. if(GetPlayerTeam(playerid) == RIFA)
  47. {
  48. SetPlayerColor(playerid,TEAM_6_COLOR);
  49. new Random = random(sizeof(RifaSpawn));
  50. SetPlayerPos(playerid, RifaSpawn[Random][0], RifaSpawn[Random][1], RifaSpawn[Random][2]);
  51. }
  52. if(GetPlayerTeam(playerid) == DNB)
  53. {
  54. SetPlayerColor(playerid,TEAM_7_COLOR);
  55. new Random = random(sizeof(DNBSpawn));
  56. SetPlayerPos(playerid, DNBSpawn[Random][0], DNBSpawn[Random][1], DNBSpawn[Random][2]);
  57. }
  58. if(GetPlayerTeam(playerid) == MafiaR)
  59. {
  60. SetPlayerColor(playerid,TEAM_8_COLOR);
  61. new Random = random(sizeof(MafiaRSpawn));
  62. SetPlayerPos(playerid, MafiaRSpawn[Random][0], MafiaRSpawn[Random][1], MafiaRSpawn[Random][2]);
  63. }
  64. if(GetPlayerTeam(playerid) == CLAN)
  65. {
  66. new Random = random(sizeof(CLANSpawn));
  67. SetPlayerPos(playerid, CLANSpawn[Random][0], CLANSpawn[Random][1], CLANSpawn[Random][2]);
  68. }
  69.  
  70. if(GetPlayerTeam(playerid) == SAFE || InSafe[playerid] == 1) {SetPlayerColor(playerid,TEAM_2_COLOR);}
  71.  
  72. // On affiche les statistiques sur sa tête
  73. Delete3DTextLabel(label);
  74. //new string[MAX_STRING_MSG];
  75. //format(string, sizeof(string), "Ping : {FFFFFF}%d{0C53ED} | FPS : {FFFFFF}%d{0C53ED}\nPacket lost : {FFFFFF}%0.1f", GetPlayerPing(playerid), pFPS[playerid], NetStats_PacketLossPercent(playerid));
  76. // label = Create3DTextLabel(string, 0x0C53EDFF, 30.0, 40.0, 50.0, 40.0, 0);
  77. //Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
  78. StopAudioStreamForPlayer(playerid);
  79.  
  80. // On cache les textdraws
  81. PlayerTextDrawHide(playerid, Class0[playerid]);
  82. PlayerTextDrawHide(playerid, Class1[playerid]);
  83. PlayerTextDrawHide(playerid, Class2[playerid]);
  84. PlayerTextDrawHide(playerid, Class3[playerid]);
  85. PlayerTextDrawHide(playerid, Class4[playerid]);
  86. PlayerTextDrawHide(playerid, Class5[playerid]);
  87. PlayerTextDrawHide(playerid, Class6[playerid]);
  88. PlayerTextDrawHide(playerid, Class7[playerid]);
  89. PlayerTextDrawHide(playerid, Class8[playerid]);
  90. PlayerTextDrawHide(playerid, Class10[playerid]);
  91. PlayerTextDrawHide(playerid, Class9[playerid]);
  92. PlayerTextDrawHide(playerid, Class11[playerid]);
  93. PlayerTextDrawHide(playerid, Class12[playerid]);
  94. PlayerTextDrawHide(playerid, Class13[playerid]);
  95. PlayerTextDrawHide(playerid, Class14[playerid]);
  96.  
  97. textdraw(playerid);
  98.  
  99. // Si il est en jail on le remet en jail.
  100. //if(PlayerInfo[playerid][pJailTime] >= 0) return JailPlayer(playerid);
  101. // Si il est en safe (ou qu'il a choisis safe) on le met en safe.
  102. if(InSafe[playerid] == 1 || GetPlayerTeam(playerid) ==SAFE) return Safe(playerid);
  103.  
  104. // On donne la vie au joueur qui spawn.
  105. //SetPlayerHealth(playerid,100.0);
  106.  
  107. if(InWar[playerid] == 1)
  108. {
  109. //RandomTPWAR(playerid);// Si il est en war, on le TP à une position aléatoire
  110.  
  111. GiveWeapons(playerid);// Si il est en war, on lui donne les armes appropriés
  112.  
  113. new Float:x, Float:y, Float:z;
  114. GetPlayerPos(playerid, x, y, z);
  115. SetPlayerVirtualWorld(playerid, 10);
  116. SetPlayerArmour(playerid, 100.0);
  117. SetTimerEx("antispawnkill", 3000, 0, "i", playerid);
  118.  
  119. if(TeamClan[playerid] == 1)
  120. {
  121. SetPlayerSkin(playerid, ClanInfo[ PlayerInfo[playerid][pTeam] ][cSkin]);
  122.  
  123. new string3[MAX_STRING_MSG];
  124. format(string3, sizeof(string3), "0x%sFF", ClanInfo[ PlayerInfo[playerid][pTeam] ][cColor]);
  125. new colorInt = HexToInt(string3);
  126. SetPlayerColor(playerid, colorInt);
  127. }
  128.  
  129. // Modification textdraw
  130. new string2[MAX_STRING_MSG];
  131. format(string2, sizeof(string2), "~g~WARZONE");
  132. PlayerTextDrawSetString(playerid, Stats2[playerid], string2);
  133. }
  134. if(OnDM[playerid] == 1)
  135. {
  136. if(DM[playerid] == 1)
  137. {
  138. SetTimerEx("Tcgc", 500, false, "i", playerid);
  139. SetTimerEx("RendreArme2", 1000, false, "i", playerid);
  140. ResetPlayerWeapons(playerid);
  141. }
  142. else if(DM[playerid] == 2)
  143. {
  144. SetTimerEx("Trbf", 500, false, "i", playerid);
  145. SetTimerEx("WeaponArena", 1000, false, "i", playerid);
  146. ResetPlayerWeapons(playerid);
  147. }
  148. else if(DM[playerid] == 3)
  149. {
  150. SetTimerEx("Tcage", 500, false, "i", playerid);
  151. SetTimerEx("RendreArme", 1000, false, "i", playerid);
  152. ResetPlayerWeapons(playerid);
  153. }
  154. else if(DM[playerid] == 4)
  155. {
  156. SetTimerEx("Tosok", 500, false, "i", playerid);
  157. SetTimerEx("Osok", 1000, false, "i", playerid);
  158. ResetPlayerWeapons(playerid);
  159. }
  160. else if(DM[playerid] == 5)
  161. {
  162. SetTimerEx("TWarehouse", 500, false, "i", playerid);
  163. SetTimerEx("RendreArme2", 1000, false, "i", playerid);
  164. ResetPlayerWeapons(playerid);
  165. }
  166. else if(DM[playerid] == 6)
  167. {
  168. SetTimerEx("TBar", 500, false, "i", playerid);
  169. SetTimerEx("RendreArme3", 1000, false, "i", playerid);
  170. ResetPlayerWeapons(playerid);
  171. }
  172. }
  173. // Si il est pas en safe, on lui met l'intérieur 0
  174. if(InSafe[playerid] == 0) return SetPlayerInterior(playerid, 0);
  175. return 1;
  176. }
  177. stock GiveMoney(playerid, amount)
  178. {
  179. GivePlayerMoney(playerid, amount);
  180. PlayerInfo[playerid][pCash] += amount;
  181. return 1;
  182. }
  183.  
  184. stock MyLib_ResetPlayerMoney(playerid)
  185. {
  186. ResetPlayerMoney(playerid);
  187. PlayerInfo[playerid][pCash] = 0;
  188. return 1;
  189. }
  190. #if defined _ALS_ResetPlayerMoney
  191. #undef ResetPlayerMoney
  192. #else
  193. #define _ALS_ResetPlayerMoney
  194. #endif
  195. #define ResetPlayerMoney MyLib_ResetPlayerMoney
  196.  
  197. stock GiveWeapons(playerid)
  198. {
  199. if(packgun[playerid] == 0)
  200. {
  201. GivePlayerWeapon(playerid,24,300);
  202. GivePlayerWeapon(playerid,25,300);
  203. GivePlayerWeapon(playerid,29,300);
  204. GivePlayerWeapon(playerid,31,300);
  205. }
  206. if(packgun[playerid] == 1)
  207. {
  208. GivePlayerWeapon(playerid,24,300);
  209. GivePlayerWeapon(playerid,25,300);
  210. GivePlayerWeapon(playerid,29,300);
  211. GivePlayerWeapon(playerid,31,300);
  212. }
  213. if(packgun[playerid] == 2)
  214. {
  215. GivePlayerWeapon(playerid,24,300);
  216. GivePlayerWeapon(playerid,25,300);
  217. GivePlayerWeapon(playerid,29,300);
  218. GivePlayerWeapon(playerid,31,300);
  219. }
  220. if(packgun[playerid] == 3)
  221. {
  222. GivePlayerWeapon(playerid,24,300);
  223. GivePlayerWeapon(playerid,25,300);
  224. GivePlayerWeapon(playerid,29,300);
  225. GivePlayerWeapon(playerid,31,300);
  226. }
  227. if(TeamClan[playerid] == 1)
  228. {
  229. if(PlayerInfo[playerid][pPack] == 1)
  230. {
  231. GivePlayerWeapon(playerid,24,300);
  232. GivePlayerWeapon(playerid,25,300);
  233. GivePlayerWeapon(playerid,29,300);
  234. GivePlayerWeapon(playerid,31,300);
  235. }
  236. if(PlayerInfo[playerid][pPack] == 1)
  237. {
  238. GivePlayerWeapon(playerid,24,300);
  239. GivePlayerWeapon(playerid,25,300);
  240. GivePlayerWeapon(playerid,29,300);
  241. GivePlayerWeapon(playerid,31,300);
  242. }
  243. if(PlayerInfo[playerid][pPack] == 2)
  244. {
  245. GivePlayerWeapon(playerid,24,300);
  246. GivePlayerWeapon(playerid,25,300);
  247. GivePlayerWeapon(playerid,29,300);
  248. GivePlayerWeapon(playerid,31,300);
  249. }
  250. if(PlayerInfo[playerid][pPack] == 3)
  251. {
  252. GivePlayerWeapon(playerid,24,300);
  253. GivePlayerWeapon(playerid,25,300);
  254. GivePlayerWeapon(playerid,29,300);
  255. GivePlayerWeapon(playerid,31,300);
  256. }
  257. }
  258. }
  259.  
  260.  
  261. public OnPlayerDeath(playerid, killerid, reason)
  262. {
  263. isDead[playerid] = true; // anti cheat
  264.  
  265. PlayerTextDrawSetString(killerid, hitwin[killerid], "~w~DEAD");
  266. PlayerTextDrawShow(killerid, hitwin[killerid]);
  267. SetTimerEx("DamageWinReset", 5000, false, "i", killerid);
  268.  
  269. PlayerTextDrawSetString(playerid, hitloose[playerid], "~r~DEAD");
  270. PlayerTextDrawShow(playerid, hitloose[playerid]);
  271. SetTimerEx("DamageLooseReset", 5000, false, "i", playerid);
  272.  
  273. if(InWar[killerid] == 1)
  274. {
  275. SendClientMessage(killerid, COLOR_BLUE, "[WAR]{36a81a} +1 kill to your series.");
  276.  
  277. if(GetPlayerWantedLevel(playerid) >= 1) {
  278. SendClientMessage(killerid, COLOR_BLUE, "[KILLSTREAKS]{36a81a} +200$ for killing a wanted player (+1 star).");
  279. GiveMoney(killerid, 200); }
  280.  
  281. if(GetPlayerTeam(playerid) == CLAN)
  282. {
  283. SendClientMessage(killerid, COLOR_BLUE, "[GAIN]{36a81a} +5 EXP | +5 RAGE | +25 POINTS CLANS");
  284. }
  285.  
  286. if(GetPlayerTeam(playerid) != CLAN)
  287. {
  288. SendClientMessage(killerid, COLOR_BLUE, "[GAIN]{36a81a} +25 EXP | +5 RAGE");
  289. }
  290. GivePlayerExp(killerid, 5);
  291. GivePlayerRage(killerid, 5);
  292. PlayerInfo[killerid][pKills]++; // On rajoute +1 dabs kes stats kills du killer
  293. PlayerInfo[playerid][pDeaths]++; // On rajoute +1 dans les stats morts du joueur tués
  294. new wanted = GetPlayerWantedLevel(killerid);
  295. wanted++;
  296. SetPlayerWantedLevel(killerid, wanted);
  297. new Float:x, Float:y, Float:z;
  298. GetPlayerPos(playerid, x, y, z);
  299. healwar = CreatePickup(1240, 8, x, y+3, z, 0);
  300. armourwar = CreatePickup(1242, 8, x, y+1, z, 0);
  301.  
  302.  
  303. PlayerInfo[playerid][addColis] = false;
  304.  
  305. /*new pickid, armeid, muni;
  306. for (new i = 0; i <= 12; i++)
  307. {
  308. GetPlayerWeaponData(playerid, i, armeid, muni);
  309. if(armeid != 0)
  310. {
  311. new Float: Pos[3];
  312. GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  313. pickid = CreatePickup(GetModel(armeid), 19, Pos[0], Pos[1]+2, Pos[2], -1);
  314. PickInfo[pickid][Valide] = 1;
  315. PickInfo[pickid][ArmeID] = armeid; PickInfo[pickid][Munitions] = muni;
  316. GetPlayerPos(playerid, PickInfo[pickid][pX], PickInfo[pickid][pY], PickInfo[pickid][pZ]);
  317. }
  318. }*/
  319. if(GetPlayerTeam(playerid) == CLAN)
  320. {
  321. ClanInfo[ PlayerInfo[playerid][pTeam] ][cDeathsWar]++;
  322. ClanInfo[ PlayerInfo[killerid][pTeam] ][cKillsWar]++;
  323.  
  324. ClanInfo[ PlayerInfo[playerid][pTeam] ][cPoints] += 25;
  325. }
  326. if(PlayerInfo[playerid][pHit] != 0)
  327. {
  328.  
  329. // On retire l'argent/exp au mec mort :
  330. new hitmoney = PlayerInfo[playerid][pHit]/2;
  331. new hitexp = PlayerInfo[playerid][pHit]/4;
  332. GiveMoney(playerid, -hitmoney);
  333. GivePlayerExp(playerid, -hitexp);
  334.  
  335. // On donne l'argent/exp au mec l'ayant tué :
  336. GiveMoney(killerid, PlayerInfo[playerid][pHit]);
  337. new hitwinexp = PlayerInfo[playerid][pHit]/4;
  338. GivePlayerExp(killerid, hitwinexp);
  339.  
  340.  
  341.  
  342. new string[MAX_STRING_MSG];
  343. format(string, sizeof(string), "[HIT]{FFFFFF} %s has kill the hitman %s. He win %d$", GetName(killerid), GetName(playerid), PlayerInfo[playerid][pHit]);
  344. SendClientMessageToAll(COLOR_BLUE, string);
  345. PlayerInfo[playerid][pHit] = 0;
  346.  
  347. format(string, sizeof(string), "[HIT]{FFFFFF} You have been killing by being hitman, you lose %d$ and %d EXP.", hitmoney, hitexp);
  348. SendClientMessage(playerid, COLOR_BLUE, string);
  349.  
  350. format(string, sizeof(string), "[HIT]{FFFFFF} You have kill the hitman, you win %d$ and %d EXP.", PlayerInfo[playerid][pHit], hitwinexp);
  351. SendClientMessage(killerid, COLOR_BLUE, string);
  352.  
  353. PlayerInfo[playerid][pHit] = 0;
  354. PlayerInfo[playerid][pHitTime] = 0;
  355. }
  356. }
  357.  
  358. if(PlayerInfo[playerid][inarene] == true)
  359. {
  360. Safe(playerid);
  361. for(new i=0; i<MAX_PLAYERS; i++)
  362. {
  363. if(IsPlayerConnected(i)) continue;
  364. if(ClanInfo[ PlayerInfo[playerid][pTeam] ][cID] == ClanInfo[ PlayerInfo[i][pTeam] ][cID])
  365. {
  366. ClanInfo[ PlayerInfo[playerid][pTeam] ][cPlayersInArene]--;
  367. if(ClanInfo[ PlayerInfo[playerid][pTeam] ][cPlayersInArene] == 0)
  368. {
  369. new string[MAX_STRING_MSG];
  370. format(string, sizeof(string), "[ARENA]{FFFFFF} The clan %s has win the arena against %s.", ClanInfo[ PlayerInfo[killerid][pTeam] ][cName]);
  371. SendClientMessageToAll(COLOR_BLUE, string);
  372. ClanInfo[ PlayerInfo[playerid][pTeam] ][cPlayersInArene] = 0;
  373. // Ajouter le ratio + arène
  374. }
  375. }
  376.  
  377. }
  378. }
  379.  
  380. if(DuelInfo[killerid][induel] == true)
  381. {
  382.  
  383. SetTimerEx("Safe", 2000, false, "i", killerid);
  384. new string[MAX_STRING_MSG], Float:HP, Float:ARMOUR;
  385.  
  386. GetPlayerHealth(killerid, HP);
  387. GetPlayerArmour(killerid, ARMOUR);
  388. format(string, sizeof(string), "[DUEL]{FA9325} %s has win the duel against %s. [%0.d HP | %0.d ARM]", GetName(killerid), GetName(playerid), floatround(HP, floatround_ceil), floatround(ARMOUR, floatround_ceil));
  389. SendClientMessageToAll(COLOR_BLUE, string);
  390.  
  391. SendClientMessage(killerid, COLOR_BLUE, "[SAFE]{FA9325} You will be teleported to safe zone in 2 seconds.");
  392.  
  393. ApplyAnimation(killerid,"CASINO","manwinb",1.0,0,0,1,0,0);
  394. ApplyAnimation(killerid,"CASINO","manwinb",1.0,0,0,1,0,0);
  395. ApplyAnimation(killerid,"CASINO","manwinb",1.0,0,0,1,0,0);
  396.  
  397. PlayerInfo[killerid][pKillsDuel]++;
  398. PlayerInfo[playerid][pDeathsDuel]++;
  399.  
  400. DuelInfo[playerid][induel] = false;
  401. DuelInfo[killerid][induel] = false;
  402. DuelInfo[playerid][duelcreate] = false;
  403. DuelInfo[killerid][duelcreate] = false;
  404. ResetPlayerWeapons(playerid);
  405. Safe(playerid);
  406. }
  407.  
  408. if(WantedON == 1)
  409. {
  410. if(wantedplayer == playerid)
  411. {
  412. KillTimer(wanted_timer1[playerid]);
  413. KillTimer(wanted_timer2[playerid]);
  414. KillTimer(wanted_timer1[playerid]);
  415. KillTimer(wanted_timer2[playerid]);
  416.  
  417. wantedstart(killerid);
  418. new string[MAX_STRING_MSG];
  419. format(string, 104, "[WANTED]{FFFFFF} The wanted %s was killing. %s is the new wanted.", GetName(playerid), GetName(killerid));
  420. SendClientMessageToAll(COLOR_BLUE, string);
  421. }
  422. }
  423.  
  424. // BRAQUAGE
  425. if(braquage == 1)
  426. {
  427. new string[MAX_STRING_MSG];
  428. if(GetPVarInt(playerid, "braquageencours") == 1 && killerid != INVALID_PLAYER_ID)
  429. {
  430. DeletePVar(playerid, "braquageencours");
  431. format(string, sizeof(string), "[BRAQUAGE]{FFFFFF} %s have kill %s en plein braquage, le braquage est donc annulé.", GetName(killerid), GetName(playerid));
  432. SendClientMessageToAll(COLOR_BLUE, string);
  433. KillTimer(timerbraquage);
  434. braquage = 0;
  435. KillTimer(timerid);
  436. }
  437. else if(GetPVarInt(playerid, "braquageencours") == 1 && killerid == INVALID_PLAYER_ID)
  438. {
  439. DeletePVar(playerid, "braquageencours");
  440. format(string, sizeof(string), "[BRAQUAGE]{FFFFFF} %s committed suicide, the hold-up is canceled.", GetName(playerid));
  441. SendClientMessageToAll(COLOR_BLUE, string);
  442. KillTimer(timerbraquage);
  443. braquage = 0;
  444. KillTimer(timerid);
  445. }
  446. if(braquage == 1 && playerid == idbraqueur && killerid != INVALID_PLAYER_ID)
  447. {
  448. RemovePlayerAttachedObject(playerid, 2);
  449. DeletePVar(playerid, "braquageencours");
  450. format(string, sizeof(string), "[BRAQUAGE]{FFFFFF} %s a tué %s en plein fuite, le sac est donc tombé.", GetName(killerid), GetName(playerid));
  451. SendClientMessageToAll(COLOR_BLUE, string);
  452. SendClientMessageToAll(COLOR_BLUE, "[BRAQUAGE]{FFFFFF} Récupèrez le sac en cliquant sur Y");
  453. GetPlayerPos(playerid, bInfo[posx], bInfo[posy], bInfo[posz]);
  454. bInfo[objetid] = CreateObject(1550, bInfo[posx], bInfo[posy], bInfo[posz]-0.5, 0.0, 0.0, 0.0);
  455. bInfo[texteid] = Create3DTextLabel("[BRAQUAGE]\n{FFFFFF}Cliquez sur Y pour récupérer le sac", COLOR_BLUE, bInfo[posx], bInfo[posy], bInfo[posz], 40.0, 0, 0);
  456. }
  457. if(braquage == 1 && playerid == idbraqueur && killerid == INVALID_PLAYER_ID)
  458. {
  459. RemovePlayerAttachedObject(playerid, 2);
  460. DeletePVar(playerid, "braquageencours");
  461. format(string, sizeof(string), "[BRAQUAGE]{FFFFFF} %s s'est suicidé, le sac est tombé.", GetName(playerid));
  462. SendClientMessageToAll(COLOR_BLUE, string);
  463. SendClientMessageToAll(COLOR_BLUE, "[BRAQUAGE]{FFFFFF} Récupèrez le sac en cliquant sur Y");
  464. GetPlayerPos(playerid, bInfo[posx], bInfo[posy], bInfo[posz]);
  465. bInfo[objetid] = CreateObject(1550, bInfo[posx]-0.5, bInfo[posy], bInfo[posz]-1.0, 0.0, 0.0, 0.0);
  466. bInfo[texteid] = Create3DTextLabel("[BRAQUAGE]\n{FFFFFF}Cliquez sur Y pour récupérer le sac", COLOR_BLUE, bInfo[posx], bInfo[posy], bInfo[posz], 40.0, 0, 0);
  467. }
  468. }
  469. // =========================== [ SYSTEME DE KILL STREAKS ] ===========================
  470. if(InWar[playerid] == 1 && InWar[killerid] == 1)
  471. {
  472. killstreaks[killerid]++;
  473. new string[MAX_STRING_MSG];
  474. if(killstreaks[killerid] == 3)
  475. {
  476. format(string, 108, "[KILLSTREAKS]{FFFFFF} %s is in series of killstreaks, he does a series of 3 kills.", GetName(killerid));
  477. SendClientMessageToAll(COLOR_BLUE, string);
  478. }
  479. if(killstreaks[killerid] == 6)
  480. {
  481. format(string, 108, "[KILLSTREAKS]{FFFFFF} %s is in series of killstreaks, he does a series of 6 kills.", GetName(killerid));
  482. SendClientMessageToAll(COLOR_BLUE, string);
  483. }
  484. if(killstreaks[killerid] == 9)
  485. {
  486. format(string, 108, "[KILLSTREAKS]{FFFFFF} %s is in series of killstreaks, he does a series of 9 kills.", GetName(killerid));
  487. SendClientMessageToAll(COLOR_BLUE, string);
  488. }
  489. if(killstreaks[killerid] == 12)
  490. {
  491. format(string, 108, "[KILLSTREAKS]{FFFFFF} %s is in series of killstreaks, he does a series of 12 kills.", GetName(killerid));
  492. SendClientMessageToAll(COLOR_BLUE, string);
  493. SendClientMessage(killerid, COLOR_BLUE, "[CARGAISON]{FFFFFF} Your cargo is now available, use /colis to make it appear.");
  494. PlayerInfo[killerid][addColis] = true;
  495. }
  496. if(killstreaks[killerid] == 15)
  497. {
  498. format(string, 108, "[KILLSTREAKS]{FFFFFF} %s is in series of killstreaks, he does a series of 15 kills.", GetName(killerid));
  499. SendClientMessageToAll(COLOR_BLUE, string);
  500. }
  501. if(killstreaks[killerid] == 18)
  502. {
  503. format(string, 108, "[KILLSTREAKS]{FFFFFF} %s is in series of killstreaks, he does a series of 18 kills.", GetName(killerid));
  504. SendClientMessageToAll(COLOR_BLUE, string);
  505. }
  506. if(killstreaks[killerid] == 21)
  507. {
  508. format(string, 108, "[KILLSTREAKS]{FFFFFF} %s is in series of killstreaks, he does a series of 21 kills.", GetName(killerid));
  509. SendClientMessageToAll(COLOR_BLUE, string);
  510. }
  511.  
  512. if(killstreaks[killerid] == 1)
  513. {
  514. PlayAudioStreamForPlayer(killerid, "http://k003.kiwi6.com/hotlink/lakj9wq71p/First_Blood.mp3");
  515. }
  516. if(killstreaks[killerid] == 2)
  517. {
  518. PlayAudioStreamForPlayer(killerid, "http://k003.kiwi6.com/hotlink/0u0flkkx91/Double_Kill_.mp3");
  519. }
  520. if(killstreaks[killerid] == 3)
  521. {
  522. PlayAudioStreamForPlayer(killerid, "http://k003.kiwi6.com/hotlink/u6nculuz4n/Triple_Kill.mp3");
  523. }
  524. if(killstreaks[killerid] == 4)
  525. {
  526. PlayAudioStreamForPlayer(killerid, "http://k003.kiwi6.com/hotlink/x6r5w5hnsr/Multi-Kill_.mp3");
  527. }
  528. if(killstreaks[killerid] == 6)
  529. {
  530. PlayAudioStreamForPlayer(killerid, "http://k003.kiwi6.com/hotlink/x6r5w5hnsr/Multi-Kill_.mp3");
  531. }
  532. if(killstreaks[killerid] == 9)
  533. {
  534. PlayAudioStreamForPlayer(killerid, "http://k003.kiwi6.com/hotlink/4c57mh0z8b/MonsterKill.mp3");
  535. }
  536. if(killstreaks[killerid] == 12)
  537. {
  538. PlayAudioStreamForPlayer(killerid, "http://k003.kiwi6.com/hotlink/aawon1316v/Rampage_.mp3");
  539. }
  540. if(killstreaks[killerid] == 15)
  541. {
  542. PlayAudioStreamForPlayer(killerid, "http://k003.kiwi6.com/hotlink/57bpl86yy7/GODLIKE.mp3");
  543. }
  544. if(killstreaks[killerid] == 18)
  545. {
  546. PlayAudioStreamForPlayer(killerid, "http://k003.kiwi6.com/hotlink/uxz0mro651/HolyShit.mp3");
  547. }
  548. killstreaks[playerid] = 0; // Le joueur est mort, on reset ces killstreaks.
  549.  
  550. }
  551. SendDeathMessage(killerid,playerid,reason);
  552. return 1;
  553. }
  554.  
  555.  
  556. public OnPlayerRequestClass(playerid, classid)
  557. {
  558. if(IsConnected[playerid] == 0) return 0;
  559. for(new i=0; i<10; i++)
  560. {
  561. // ELC_AC_EnablePlayerCheatID(playerid,i,false);
  562. }
  563. switch(classid) {
  564. case 0: {
  565. SetPlayerTeam(playerid, JUSTICE);
  566. InSafe[playerid] = 0; // pas safe
  567. packgun[playerid] = 0;
  568. InWar[playerid] = 1;
  569. TeamClan[playerid] = 0;
  570.  
  571.  
  572. PlayerTextDrawShow(playerid, Class0[playerid]);
  573.  
  574. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  575. PlayerTextDrawShow(playerid, Class4[playerid]);
  576. PlayerTextDrawHide(playerid, Class1[playerid]);
  577. PlayerTextDrawHide(playerid, Class2[playerid]);
  578. PlayerTextDrawHide(playerid, Class3[playerid]);
  579. PlayerTextDrawShow(playerid, Class5[playerid]);
  580. PlayerTextDrawHide(playerid, Class6[playerid]);
  581. PlayerTextDrawHide(playerid, Class7[playerid]);
  582. PlayerTextDrawHide(playerid, Class8[playerid]);
  583. PlayerTextDrawHide(playerid, Class9[playerid]);
  584. PlayerTextDrawHide(playerid, Class10[playerid]);
  585. PlayerTextDrawHide(playerid, Class11[playerid]);
  586. PlayerTextDrawHide(playerid, Class12[playerid]);
  587. PlayerTextDrawHide(playerid, Class13[playerid]);
  588. PlayerTextDrawHide(playerid, Class14[playerid]);
  589.  
  590. }
  591. case 1: {
  592. SetPlayerTeam(playerid, JUSTICE);
  593. InSafe[playerid] = 0; // pas safe
  594. packgun[playerid] = 1;
  595. InWar[playerid] = 1;
  596. TeamClan[playerid] = 0;
  597.  
  598. PlayerTextDrawShow(playerid, Class0[playerid]);
  599. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  600. PlayerTextDrawShow(playerid, Class4[playerid]);
  601. PlayerTextDrawHide(playerid, Class1[playerid]);
  602. PlayerTextDrawHide(playerid, Class2[playerid]);
  603. PlayerTextDrawHide(playerid, Class3[playerid]);
  604. PlayerTextDrawShow(playerid, Class5[playerid]);
  605. PlayerTextDrawHide(playerid, Class6[playerid]);
  606. PlayerTextDrawHide(playerid, Class7[playerid]);
  607. PlayerTextDrawHide(playerid, Class8[playerid]);
  608. PlayerTextDrawHide(playerid, Class9[playerid]);
  609. PlayerTextDrawHide(playerid, Class10[playerid]);
  610. PlayerTextDrawHide(playerid, Class11[playerid]);
  611. PlayerTextDrawHide(playerid, Class12[playerid]);
  612. PlayerTextDrawHide(playerid, Class13[playerid]);
  613. PlayerTextDrawHide(playerid, Class14[playerid]);
  614.  
  615. }
  616. case 2: {
  617. SetPlayerTeam(playerid, JUSTICE);
  618. InSafe[playerid] = 0; // pas safe
  619. packgun[playerid] = 2;
  620. InWar[playerid] = 1;
  621. TeamClan[playerid] = 0;
  622.  
  623. PlayerTextDrawShow(playerid, Class0[playerid]);
  624.  
  625. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  626. PlayerTextDrawShow(playerid, Class4[playerid]);
  627.  
  628. PlayerTextDrawHide(playerid, Class1[playerid]);
  629. PlayerTextDrawHide(playerid, Class2[playerid]);
  630. PlayerTextDrawHide(playerid, Class3[playerid]);
  631. PlayerTextDrawHide(playerid, Class6[playerid]);
  632. PlayerTextDrawShow(playerid, Class5[playerid]);
  633. PlayerTextDrawHide(playerid, Class7[playerid]);
  634. PlayerTextDrawHide(playerid, Class8[playerid]);
  635. PlayerTextDrawHide(playerid, Class9[playerid]);
  636. PlayerTextDrawHide(playerid, Class10[playerid]);
  637. PlayerTextDrawHide(playerid, Class11[playerid]);
  638. PlayerTextDrawHide(playerid, Class12[playerid]);
  639. PlayerTextDrawHide(playerid, Class13[playerid]);
  640. PlayerTextDrawHide(playerid, Class14[playerid]);
  641.  
  642. }
  643. case 3: {
  644. SetPlayerTeam(playerid, JUSTICE);
  645. InSafe[playerid] = 0; // pas safe
  646. packgun[playerid] = 3;
  647. InWar[playerid] = 1;
  648. TeamClan[playerid] = 0;
  649.  
  650. PlayerTextDrawShow(playerid, Class0[playerid]);
  651.  
  652. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  653. PlayerTextDrawShow(playerid, Class4[playerid]);
  654.  
  655. PlayerTextDrawHide(playerid, Class1[playerid]);
  656. PlayerTextDrawHide(playerid, Class2[playerid]);
  657. PlayerTextDrawHide(playerid, Class3[playerid]);
  658. PlayerTextDrawShow(playerid, Class5[playerid]);
  659. PlayerTextDrawHide(playerid, Class6[playerid]);
  660. PlayerTextDrawHide(playerid, Class7[playerid]);
  661. PlayerTextDrawHide(playerid, Class8[playerid]);
  662. PlayerTextDrawHide(playerid, Class9[playerid]);
  663. PlayerTextDrawHide(playerid, Class10[playerid]);
  664. PlayerTextDrawHide(playerid, Class11[playerid]);
  665. PlayerTextDrawHide(playerid, Class12[playerid]);
  666. PlayerTextDrawHide(playerid, Class13[playerid]);
  667. PlayerTextDrawHide(playerid, Class14[playerid]);
  668.  
  669. }
  670. case 4: {
  671. SetPlayerTeam(playerid, GROVE);
  672. InSafe[playerid] = 0; // pas safe
  673. packgun[playerid] = 0;
  674. InWar[playerid] = 1;
  675. TeamClan[playerid] = 0;
  676.  
  677. PlayerTextDrawShow(playerid, Class1[playerid]);
  678.  
  679. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  680. PlayerTextDrawShow(playerid, Class4[playerid]);
  681.  
  682. PlayerTextDrawHide(playerid, Class0[playerid]);
  683. PlayerTextDrawHide(playerid, Class2[playerid]);
  684. PlayerTextDrawHide(playerid, Class3[playerid]);
  685. PlayerTextDrawHide(playerid, Class5[playerid]);
  686. PlayerTextDrawHide(playerid, Class6[playerid]);
  687. PlayerTextDrawHide(playerid, Class7[playerid]);
  688. PlayerTextDrawHide(playerid, Class8[playerid]);
  689. PlayerTextDrawHide(playerid, Class9[playerid]);
  690. PlayerTextDrawHide(playerid, Class10[playerid]);
  691. PlayerTextDrawHide(playerid, Class11[playerid]);
  692. PlayerTextDrawHide(playerid, Class12[playerid]);
  693. PlayerTextDrawHide(playerid, Class13[playerid]);
  694. PlayerTextDrawHide(playerid, Class14[playerid]);
  695.  
  696. }
  697. case 5: {
  698. SetPlayerTeam(playerid, GROVE);
  699. InSafe[playerid] = 0; // pas safe
  700. packgun[playerid] = 1;
  701. InWar[playerid] = 1;
  702. TeamClan[playerid] = 0;
  703.  
  704. PlayerTextDrawShow(playerid, Class1[playerid]);
  705.  
  706. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  707. PlayerTextDrawShow(playerid, Class4[playerid]);
  708.  
  709. PlayerTextDrawHide(playerid, Class0[playerid]);
  710. PlayerTextDrawHide(playerid, Class2[playerid]);
  711. PlayerTextDrawHide(playerid, Class3[playerid]);
  712. PlayerTextDrawShow(playerid, Class5[playerid]);
  713. PlayerTextDrawHide(playerid, Class6[playerid]);
  714. PlayerTextDrawHide(playerid, Class7[playerid]);
  715. PlayerTextDrawHide(playerid, Class8[playerid]);
  716. PlayerTextDrawHide(playerid, Class9[playerid]);
  717. PlayerTextDrawHide(playerid, Class10[playerid]);
  718. PlayerTextDrawHide(playerid, Class11[playerid]);
  719. PlayerTextDrawHide(playerid, Class12[playerid]);
  720. PlayerTextDrawHide(playerid, Class13[playerid]);
  721. PlayerTextDrawHide(playerid, Class14[playerid]);
  722.  
  723. }
  724. case 6: {
  725. SetPlayerTeam(playerid, GROVE);
  726. InSafe[playerid] = 0; // pas safe
  727. packgun[playerid] = 2;
  728. InWar[playerid] = 1;
  729. TeamClan[playerid] = 0;
  730.  
  731. PlayerTextDrawShow(playerid, Class1[playerid]);
  732.  
  733. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  734. PlayerTextDrawShow(playerid, Class4[playerid]);
  735.  
  736. PlayerTextDrawHide(playerid, Class0[playerid]);
  737. PlayerTextDrawHide(playerid, Class2[playerid]);
  738. PlayerTextDrawHide(playerid, Class3[playerid]);
  739. PlayerTextDrawShow(playerid, Class5[playerid]);
  740. PlayerTextDrawHide(playerid, Class6[playerid]);
  741. PlayerTextDrawHide(playerid, Class7[playerid]);
  742. PlayerTextDrawHide(playerid, Class8[playerid]);
  743. PlayerTextDrawHide(playerid, Class9[playerid]);
  744. PlayerTextDrawHide(playerid, Class10[playerid]);
  745. PlayerTextDrawHide(playerid, Class11[playerid]);
  746. PlayerTextDrawHide(playerid, Class12[playerid]);
  747. PlayerTextDrawHide(playerid, Class13[playerid]);
  748. PlayerTextDrawHide(playerid, Class14[playerid]);
  749.  
  750. }
  751. case 7: {
  752. SetPlayerTeam(playerid, GROVE);
  753. InSafe[playerid] = 0; // pas safe
  754. packgun[playerid] = 3;
  755. InWar[playerid] = 1;
  756. TeamClan[playerid] = 0;
  757.  
  758. PlayerTextDrawShow(playerid, Class1[playerid]);
  759.  
  760. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  761. PlayerTextDrawShow(playerid, Class4[playerid]);
  762.  
  763. PlayerTextDrawHide(playerid, Class0[playerid]);
  764. PlayerTextDrawHide(playerid, Class2[playerid]);
  765. PlayerTextDrawHide(playerid, Class3[playerid]);
  766. PlayerTextDrawHide(playerid, Class6[playerid]);
  767. PlayerTextDrawShow(playerid, Class5[playerid]);
  768. PlayerTextDrawHide(playerid, Class7[playerid]);
  769. PlayerTextDrawHide(playerid, Class8[playerid]);
  770. PlayerTextDrawHide(playerid, Class9[playerid]);
  771. PlayerTextDrawHide(playerid, Class10[playerid]);
  772. PlayerTextDrawHide(playerid, Class11[playerid]);
  773. PlayerTextDrawHide(playerid, Class12[playerid]);
  774. PlayerTextDrawHide(playerid, Class13[playerid]);
  775. PlayerTextDrawHide(playerid, Class14[playerid]);
  776.  
  777. }
  778. case 8: {
  779. SetPlayerTeam(playerid, BALLAS);
  780. InSafe[playerid] = 0; // pas safe
  781. packgun[playerid] = 0;
  782. InWar[playerid] = 1;
  783. TeamClan[playerid] = 0;
  784.  
  785. PlayerTextDrawShow(playerid, Class2[playerid]);
  786.  
  787. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  788. PlayerTextDrawShow(playerid, Class4[playerid]);
  789.  
  790. PlayerTextDrawHide(playerid, Class0[playerid]);
  791. PlayerTextDrawHide(playerid, Class1[playerid]);
  792. PlayerTextDrawHide(playerid, Class3[playerid]);
  793. PlayerTextDrawHide(playerid, Class5[playerid]);
  794. PlayerTextDrawHide(playerid, Class6[playerid]);
  795. PlayerTextDrawHide(playerid, Class7[playerid]);
  796. PlayerTextDrawHide(playerid, Class8[playerid]);
  797. PlayerTextDrawHide(playerid, Class9[playerid]);
  798. PlayerTextDrawHide(playerid, Class10[playerid]);
  799. PlayerTextDrawHide(playerid, Class11[playerid]);
  800. PlayerTextDrawHide(playerid, Class12[playerid]);
  801. PlayerTextDrawHide(playerid, Class13[playerid]);
  802. PlayerTextDrawHide(playerid, Class14[playerid]);
  803.  
  804. }
  805. case 9: {
  806. SetPlayerTeam(playerid, BALLAS);
  807. InSafe[playerid] = 0; // pas safe
  808. packgun[playerid] = 1;
  809. InWar[playerid] = 1;
  810. TeamClan[playerid] = 0;
  811.  
  812. PlayerTextDrawShow(playerid, Class2[playerid]);
  813.  
  814. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  815. PlayerTextDrawShow(playerid, Class4[playerid]);
  816.  
  817. PlayerTextDrawHide(playerid, Class0[playerid]);
  818. PlayerTextDrawHide(playerid, Class1[playerid]);
  819. PlayerTextDrawHide(playerid, Class3[playerid]);
  820. PlayerTextDrawShow(playerid, Class5[playerid]);
  821. PlayerTextDrawHide(playerid, Class6[playerid]);
  822. PlayerTextDrawHide(playerid, Class7[playerid]);
  823. PlayerTextDrawHide(playerid, Class8[playerid]);
  824. PlayerTextDrawHide(playerid, Class9[playerid]);
  825. PlayerTextDrawHide(playerid, Class10[playerid]);
  826. PlayerTextDrawHide(playerid, Class11[playerid]);
  827. PlayerTextDrawHide(playerid, Class12[playerid]);
  828. PlayerTextDrawHide(playerid, Class13[playerid]);
  829. PlayerTextDrawHide(playerid, Class14[playerid]);
  830.  
  831. }
  832. case 10: {
  833. SetPlayerTeam(playerid, BALLAS);
  834. InSafe[playerid] = 0; // pas safe
  835. packgun[playerid] = 2;
  836. InWar[playerid] = 1;
  837. TeamClan[playerid] = 0;
  838.  
  839. PlayerTextDrawShow(playerid, Class2[playerid]);
  840.  
  841. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  842. PlayerTextDrawShow(playerid, Class4[playerid]);
  843.  
  844. PlayerTextDrawHide(playerid, Class0[playerid]);
  845. PlayerTextDrawHide(playerid, Class1[playerid]);
  846. PlayerTextDrawHide(playerid, Class3[playerid]);
  847. PlayerTextDrawShow(playerid, Class5[playerid]);
  848. PlayerTextDrawHide(playerid, Class6[playerid]);
  849. PlayerTextDrawHide(playerid, Class7[playerid]);
  850. PlayerTextDrawHide(playerid, Class8[playerid]);
  851. PlayerTextDrawHide(playerid, Class9[playerid]);
  852. PlayerTextDrawHide(playerid, Class10[playerid]);
  853. PlayerTextDrawHide(playerid, Class11[playerid]);
  854. PlayerTextDrawHide(playerid, Class12[playerid]);
  855. PlayerTextDrawHide(playerid, Class13[playerid]);
  856. PlayerTextDrawHide(playerid, Class14[playerid]);
  857.  
  858. }
  859. case 11: {
  860. SetPlayerTeam(playerid, BALLAS);
  861. InSafe[playerid] = 0; // pas safe
  862. packgun[playerid] = 3;
  863. InWar[playerid] = 1;
  864. TeamClan[playerid] = 0;
  865.  
  866. PlayerTextDrawShow(playerid, Class2[playerid]);
  867.  
  868. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  869. PlayerTextDrawShow(playerid, Class4[playerid]);
  870.  
  871. PlayerTextDrawHide(playerid, Class0[playerid]);
  872. PlayerTextDrawHide(playerid, Class1[playerid]);
  873. PlayerTextDrawHide(playerid, Class3[playerid]);
  874. PlayerTextDrawShow(playerid, Class5[playerid]);
  875. PlayerTextDrawHide(playerid, Class6[playerid]);
  876. PlayerTextDrawHide(playerid, Class7[playerid]);
  877. PlayerTextDrawHide(playerid, Class8[playerid]);
  878. PlayerTextDrawHide(playerid, Class9[playerid]);
  879. PlayerTextDrawHide(playerid, Class10[playerid]);
  880. PlayerTextDrawHide(playerid, Class11[playerid]);
  881. PlayerTextDrawHide(playerid, Class12[playerid]);
  882. PlayerTextDrawHide(playerid, Class13[playerid]);
  883. PlayerTextDrawHide(playerid, Class14[playerid]);
  884.  
  885. }
  886.  
  887. case 12: {
  888. SetPlayerTeam(playerid, VAGOS);
  889. InSafe[playerid] = 0; // pas safe
  890. packgun[playerid] = 0;
  891. InWar[playerid] = 1;
  892. TeamClan[playerid] = 0;
  893.  
  894. PlayerTextDrawHide(playerid, Class2[playerid]);
  895.  
  896. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  897. PlayerTextDrawShow(playerid, Class4[playerid]);
  898.  
  899. PlayerTextDrawHide(playerid, Class0[playerid]);
  900. PlayerTextDrawHide(playerid, Class1[playerid]);
  901. PlayerTextDrawShow(playerid, Class3[playerid]);
  902. PlayerTextDrawHide(playerid, Class5[playerid]);
  903. PlayerTextDrawHide(playerid, Class6[playerid]);
  904. PlayerTextDrawHide(playerid, Class7[playerid]);
  905. PlayerTextDrawHide(playerid, Class8[playerid]);
  906. PlayerTextDrawHide(playerid, Class9[playerid]);
  907. PlayerTextDrawHide(playerid, Class10[playerid]);
  908. PlayerTextDrawHide(playerid, Class11[playerid]);
  909. PlayerTextDrawHide(playerid, Class12[playerid]);
  910. PlayerTextDrawHide(playerid, Class13[playerid]);
  911. PlayerTextDrawHide(playerid, Class14[playerid]);
  912.  
  913. }
  914. case 13: {
  915. SetPlayerTeam(playerid, VAGOS);
  916. InSafe[playerid] = 0; // pas safe
  917. packgun[playerid] = 1;
  918. InWar[playerid] = 1;
  919. TeamClan[playerid] = 0;
  920.  
  921. PlayerTextDrawHide(playerid, Class2[playerid]);
  922.  
  923. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  924. PlayerTextDrawShow(playerid, Class4[playerid]);
  925.  
  926. PlayerTextDrawHide(playerid, Class0[playerid]);
  927. PlayerTextDrawHide(playerid, Class1[playerid]);
  928. PlayerTextDrawShow(playerid, Class3[playerid]);
  929. PlayerTextDrawShow(playerid, Class5[playerid]);
  930. PlayerTextDrawHide(playerid, Class6[playerid]);
  931. PlayerTextDrawHide(playerid, Class7[playerid]);
  932. PlayerTextDrawHide(playerid, Class8[playerid]);
  933. PlayerTextDrawHide(playerid, Class9[playerid]);
  934. PlayerTextDrawHide(playerid, Class10[playerid]);
  935. PlayerTextDrawHide(playerid, Class11[playerid]);
  936. PlayerTextDrawHide(playerid, Class12[playerid]);
  937. PlayerTextDrawHide(playerid, Class13[playerid]);
  938. PlayerTextDrawHide(playerid, Class14[playerid]);
  939.  
  940. }
  941. case 14: {
  942. SetPlayerTeam(playerid, VAGOS);
  943. InSafe[playerid] = 0; // pas safe
  944. packgun[playerid] = 2;
  945. InWar[playerid] = 1;
  946. TeamClan[playerid] = 0;
  947.  
  948. PlayerTextDrawHide(playerid, Class2[playerid]);
  949.  
  950. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  951. PlayerTextDrawShow(playerid, Class4[playerid]);
  952.  
  953. PlayerTextDrawHide(playerid, Class0[playerid]);
  954. PlayerTextDrawHide(playerid, Class1[playerid]);
  955. PlayerTextDrawShow(playerid, Class3[playerid]);
  956. PlayerTextDrawShow(playerid, Class5[playerid]);
  957. PlayerTextDrawHide(playerid, Class6[playerid]);
  958. PlayerTextDrawHide(playerid, Class7[playerid]);
  959. PlayerTextDrawHide(playerid, Class8[playerid]);
  960. PlayerTextDrawHide(playerid, Class9[playerid]);
  961. PlayerTextDrawHide(playerid, Class10[playerid]);
  962. PlayerTextDrawHide(playerid, Class11[playerid]);
  963. PlayerTextDrawHide(playerid, Class12[playerid]);
  964. PlayerTextDrawHide(playerid, Class13[playerid]);
  965. PlayerTextDrawHide(playerid, Class14[playerid]);
  966.  
  967. }
  968. case 15: {
  969. SetPlayerTeam(playerid, VAGOS);
  970. InSafe[playerid] = 0; // pas safe
  971. packgun[playerid] = 3;
  972. InWar[playerid] = 1;
  973. TeamClan[playerid] = 0;
  974.  
  975. PlayerTextDrawHide(playerid, Class2[playerid]);
  976. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  977. PlayerTextDrawShow(playerid, Class4[playerid]);
  978. PlayerTextDrawHide(playerid, Class0[playerid]);
  979. PlayerTextDrawHide(playerid, Class1[playerid]);
  980. PlayerTextDrawShow(playerid, Class3[playerid]);
  981. PlayerTextDrawShow(playerid, Class5[playerid]);
  982. PlayerTextDrawHide(playerid, Class6[playerid]);
  983. PlayerTextDrawHide(playerid, Class7[playerid]);
  984. PlayerTextDrawHide(playerid, Class8[playerid]);
  985. PlayerTextDrawHide(playerid, Class9[playerid]);
  986. PlayerTextDrawHide(playerid, Class10[playerid]);
  987. PlayerTextDrawHide(playerid, Class11[playerid]);
  988. PlayerTextDrawHide(playerid, Class12[playerid]);
  989. PlayerTextDrawHide(playerid, Class13[playerid]);
  990. PlayerTextDrawHide(playerid, Class14[playerid]);
  991.  
  992. }
  993. case 18: {
  994. SetPlayerTeam(playerid, AZTECAS);
  995. InSafe[playerid] = 0; // pas safe
  996. packgun[playerid] = 0;
  997. InWar[playerid] = 1;
  998. TeamClan[playerid] = 0;
  999.  
  1000. PlayerTextDrawShow(playerid, Class11[playerid]);
  1001. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  1002. PlayerTextDrawShow(playerid, Class4[playerid]);
  1003. PlayerTextDrawHide(playerid, Class0[playerid]);
  1004. PlayerTextDrawHide(playerid, Class1[playerid]);
  1005. PlayerTextDrawHide(playerid, Class3[playerid]);
  1006. PlayerTextDrawHide(playerid, Class5[playerid]);
  1007. PlayerTextDrawHide(playerid, Class6[playerid]);
  1008. PlayerTextDrawHide(playerid, Class7[playerid]);
  1009. PlayerTextDrawHide(playerid, Class8[playerid]);
  1010. PlayerTextDrawHide(playerid, Class9[playerid]);
  1011. PlayerTextDrawHide(playerid, Class10[playerid]);
  1012. PlayerTextDrawHide(playerid, Class12[playerid]);
  1013. PlayerTextDrawHide(playerid, Class13[playerid]);
  1014. PlayerTextDrawHide(playerid, Class14[playerid]);
  1015.  
  1016. }
  1017. case 19: {
  1018. SetPlayerTeam(playerid, AZTECAS);
  1019. InSafe[playerid] = 0; // pas safe
  1020. packgun[playerid] = 1;
  1021. InWar[playerid] = 1;
  1022. TeamClan[playerid] = 0;
  1023.  
  1024. PlayerTextDrawShow(playerid, Class11[playerid]);
  1025. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  1026. PlayerTextDrawShow(playerid, Class4[playerid]);
  1027. PlayerTextDrawHide(playerid, Class0[playerid]);
  1028. PlayerTextDrawHide(playerid, Class1[playerid]);
  1029. PlayerTextDrawHide(playerid, Class3[playerid]);
  1030. PlayerTextDrawShow(playerid, Class5[playerid]);
  1031. PlayerTextDrawHide(playerid, Class6[playerid]);
  1032. PlayerTextDrawHide(playerid, Class7[playerid]);
  1033. PlayerTextDrawHide(playerid, Class8[playerid]);
  1034. PlayerTextDrawHide(playerid, Class9[playerid]);
  1035. PlayerTextDrawHide(playerid, Class10[playerid]);
  1036. PlayerTextDrawHide(playerid, Class12[playerid]);
  1037. PlayerTextDrawHide(playerid, Class13[playerid]);
  1038. PlayerTextDrawHide(playerid, Class14[playerid]);
  1039.  
  1040. }
  1041. case 20: {
  1042. SetPlayerTeam(playerid, AZTECAS);
  1043. InSafe[playerid] = 0; // pas safe
  1044. packgun[playerid] = 2;
  1045. InWar[playerid] = 1;
  1046. TeamClan[playerid] = 0;
  1047.  
  1048. PlayerTextDrawShow(playerid, Class11[playerid]);
  1049. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  1050. PlayerTextDrawShow(playerid, Class4[playerid]);
  1051. PlayerTextDrawHide(playerid, Class0[playerid]);
  1052. PlayerTextDrawHide(playerid, Class1[playerid]);
  1053. PlayerTextDrawHide(playerid, Class3[playerid]);
  1054. PlayerTextDrawShow(playerid, Class5[playerid]);
  1055. PlayerTextDrawHide(playerid, Class6[playerid]);
  1056. PlayerTextDrawHide(playerid, Class7[playerid]);
  1057. PlayerTextDrawHide(playerid, Class8[playerid]);
  1058. PlayerTextDrawHide(playerid, Class9[playerid]);
  1059. PlayerTextDrawHide(playerid, Class10[playerid]);
  1060. PlayerTextDrawHide(playerid, Class12[playerid]);
  1061. PlayerTextDrawHide(playerid, Class13[playerid]);
  1062. PlayerTextDrawHide(playerid, Class14[playerid]);
  1063.  
  1064. }
  1065. case 21: {
  1066. SetPlayerTeam(playerid, AZTECAS);
  1067. InSafe[playerid] = 0; // pas safe
  1068. packgun[playerid] = 3;
  1069. InWar[playerid] = 1;
  1070. TeamClan[playerid] = 0;
  1071.  
  1072. PlayerTextDrawShow(playerid, Class11[playerid]);
  1073.  
  1074. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  1075. PlayerTextDrawShow(playerid, Class4[playerid]);
  1076. PlayerTextDrawHide(playerid, Class0[playerid]);
  1077. PlayerTextDrawHide(playerid, Class1[playerid]);
  1078. PlayerTextDrawHide(playerid, Class3[playerid]);
  1079. PlayerTextDrawShow(playerid, Class5[playerid]);
  1080. PlayerTextDrawHide(playerid, Class6[playerid]);
  1081. PlayerTextDrawHide(playerid, Class7[playerid]);
  1082. PlayerTextDrawHide(playerid, Class8[playerid]);
  1083. PlayerTextDrawHide(playerid, Class9[playerid]);
  1084. PlayerTextDrawHide(playerid, Class10[playerid]);
  1085. PlayerTextDrawHide(playerid, Class12[playerid]);
  1086. PlayerTextDrawHide(playerid, Class13[playerid]);
  1087. PlayerTextDrawHide(playerid, Class14[playerid]);
  1088.  
  1089. }
  1090. case 22: {
  1091. SetPlayerTeam(playerid, RIFA);
  1092. InSafe[playerid] = 0; // pas safe
  1093. packgun[playerid] = 0;
  1094. InWar[playerid] = 1;
  1095. TeamClan[playerid] = 0;
  1096.  
  1097. PlayerTextDrawShow(playerid, Class12[playerid]);
  1098.  
  1099. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  1100. PlayerTextDrawShow(playerid, Class4[playerid]);
  1101.  
  1102. PlayerTextDrawHide(playerid, Class0[playerid]);
  1103. PlayerTextDrawHide(playerid, Class1[playerid]);
  1104. PlayerTextDrawHide(playerid, Class3[playerid]);
  1105. PlayerTextDrawHide(playerid, Class5[playerid]);
  1106. PlayerTextDrawHide(playerid, Class6[playerid]);
  1107. PlayerTextDrawHide(playerid, Class7[playerid]);
  1108. PlayerTextDrawHide(playerid, Class8[playerid]);
  1109. PlayerTextDrawHide(playerid, Class9[playerid]);
  1110. PlayerTextDrawHide(playerid, Class10[playerid]);
  1111. PlayerTextDrawHide(playerid, Class11[playerid]);
  1112. PlayerTextDrawHide(playerid, Class13[playerid]);
  1113. PlayerTextDrawHide(playerid, Class14[playerid]);
  1114.  
  1115. }
  1116. case 23: {
  1117. SetPlayerTeam(playerid, RIFA);
  1118. InSafe[playerid] = 0; // pas safe
  1119. packgun[playerid] = 1;
  1120. InWar[playerid] = 1;
  1121. TeamClan[playerid] = 0;
  1122.  
  1123. PlayerTextDrawShow(playerid, Class12[playerid]);
  1124.  
  1125. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  1126. PlayerTextDrawShow(playerid, Class4[playerid]);
  1127.  
  1128. PlayerTextDrawHide(playerid, Class0[playerid]);
  1129. PlayerTextDrawHide(playerid, Class1[playerid]);
  1130. PlayerTextDrawHide(playerid, Class3[playerid]);
  1131. PlayerTextDrawShow(playerid, Class5[playerid]);
  1132. PlayerTextDrawHide(playerid, Class6[playerid]);
  1133. PlayerTextDrawHide(playerid, Class7[playerid]);
  1134. PlayerTextDrawHide(playerid, Class8[playerid]);
  1135. PlayerTextDrawHide(playerid, Class9[playerid]);
  1136. PlayerTextDrawHide(playerid, Class10[playerid]);
  1137. PlayerTextDrawHide(playerid, Class11[playerid]);
  1138. PlayerTextDrawHide(playerid, Class13[playerid]);
  1139. PlayerTextDrawHide(playerid, Class14[playerid]);
  1140.  
  1141. }
  1142. case 24: {
  1143. SetPlayerTeam(playerid, RIFA);
  1144. InSafe[playerid] = 0; // pas safe
  1145. packgun[playerid] = 2;
  1146. InWar[playerid] = 1;
  1147. TeamClan[playerid] = 0;
  1148.  
  1149. PlayerTextDrawShow(playerid, Class12[playerid]);
  1150.  
  1151. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  1152. PlayerTextDrawShow(playerid, Class4[playerid]);
  1153.  
  1154. PlayerTextDrawHide(playerid, Class0[playerid]);
  1155. PlayerTextDrawHide(playerid, Class1[playerid]);
  1156. PlayerTextDrawHide(playerid, Class3[playerid]);
  1157. PlayerTextDrawShow(playerid, Class5[playerid]);
  1158. PlayerTextDrawHide(playerid, Class6[playerid]);
  1159. PlayerTextDrawHide(playerid, Class7[playerid]);
  1160. PlayerTextDrawHide(playerid, Class8[playerid]);
  1161. PlayerTextDrawHide(playerid, Class9[playerid]);
  1162. PlayerTextDrawHide(playerid, Class10[playerid]);
  1163. PlayerTextDrawHide(playerid, Class11[playerid]);
  1164. PlayerTextDrawHide(playerid, Class13[playerid]);
  1165. PlayerTextDrawHide(playerid, Class14[playerid]);
  1166.  
  1167. }
  1168. case 25: {
  1169. SetPlayerTeam(playerid, RIFA);
  1170. InSafe[playerid] = 0; // pas safe
  1171. packgun[playerid] = 3;
  1172. InWar[playerid] = 1;
  1173. TeamClan[playerid] = 0;
  1174.  
  1175. PlayerTextDrawShow(playerid, Class12[playerid]);
  1176.  
  1177. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  1178. PlayerTextDrawShow(playerid, Class4[playerid]);
  1179.  
  1180. PlayerTextDrawHide(playerid, Class0[playerid]);
  1181. PlayerTextDrawHide(playerid, Class1[playerid]);
  1182. PlayerTextDrawHide(playerid, Class3[playerid]);
  1183. PlayerTextDrawShow(playerid, Class5[playerid]);
  1184. PlayerTextDrawHide(playerid, Class6[playerid]);
  1185. PlayerTextDrawHide(playerid, Class7[playerid]);
  1186. PlayerTextDrawHide(playerid, Class8[playerid]);
  1187. PlayerTextDrawHide(playerid, Class9[playerid]);
  1188. PlayerTextDrawHide(playerid, Class10[playerid]);
  1189. PlayerTextDrawHide(playerid, Class11[playerid]);
  1190. PlayerTextDrawHide(playerid, Class13[playerid]);
  1191. PlayerTextDrawHide(playerid, Class14[playerid]);
  1192.  
  1193. }
  1194.  
  1195. case 26: {
  1196. SetPlayerTeam(playerid, DNB);
  1197. InSafe[playerid] = 0; // pas safe
  1198. packgun[playerid] = 0;
  1199. InWar[playerid] = 1;
  1200. TeamClan[playerid] = 0;
  1201.  
  1202. PlayerTextDrawShow(playerid, Class13[playerid]);
  1203.  
  1204. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  1205. PlayerTextDrawShow(playerid, Class4[playerid]);
  1206.  
  1207. PlayerTextDrawHide(playerid, Class0[playerid]);
  1208. PlayerTextDrawHide(playerid, Class1[playerid]);
  1209. PlayerTextDrawHide(playerid, Class3[playerid]);
  1210. PlayerTextDrawHide(playerid, Class5[playerid]);
  1211. PlayerTextDrawHide(playerid, Class6[playerid]);
  1212. PlayerTextDrawHide(playerid, Class7[playerid]);
  1213. PlayerTextDrawHide(playerid, Class8[playerid]);
  1214. PlayerTextDrawHide(playerid, Class9[playerid]);
  1215. PlayerTextDrawHide(playerid, Class10[playerid]);
  1216. PlayerTextDrawHide(playerid, Class11[playerid]);
  1217. PlayerTextDrawHide(playerid, Class12[playerid]);
  1218. PlayerTextDrawHide(playerid, Class14[playerid]);
  1219.  
  1220. }
  1221. case 27: {
  1222. SetPlayerTeam(playerid, DNB);
  1223. InSafe[playerid] = 0; // pas safe
  1224. packgun[playerid] = 1;
  1225. InWar[playerid] = 1;
  1226. TeamClan[playerid] = 0;
  1227.  
  1228. PlayerTextDrawShow(playerid, Class13[playerid]);
  1229.  
  1230. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  1231. PlayerTextDrawShow(playerid, Class4[playerid]);
  1232.  
  1233. PlayerTextDrawHide(playerid, Class0[playerid]);
  1234. PlayerTextDrawHide(playerid, Class1[playerid]);
  1235. PlayerTextDrawHide(playerid, Class3[playerid]);
  1236. PlayerTextDrawShow(playerid, Class5[playerid]);
  1237. PlayerTextDrawHide(playerid, Class6[playerid]);
  1238. PlayerTextDrawHide(playerid, Class7[playerid]);
  1239. PlayerTextDrawHide(playerid, Class8[playerid]);
  1240. PlayerTextDrawHide(playerid, Class9[playerid]);
  1241. PlayerTextDrawHide(playerid, Class10[playerid]);
  1242. PlayerTextDrawHide(playerid, Class11[playerid]);
  1243. PlayerTextDrawHide(playerid, Class12[playerid]);
  1244. PlayerTextDrawHide(playerid, Class14[playerid]);
  1245.  
  1246. }
  1247. case 28: {
  1248. SetPlayerTeam(playerid, DNB);
  1249. InSafe[playerid] = 0; // pas safe
  1250. packgun[playerid] = 2;
  1251. InWar[playerid] = 1;
  1252. TeamClan[playerid] = 0;
  1253.  
  1254. PlayerTextDrawShow(playerid, Class13[playerid]);
  1255.  
  1256. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  1257. PlayerTextDrawShow(playerid, Class4[playerid]);
  1258.  
  1259. PlayerTextDrawHide(playerid, Class0[playerid]);
  1260. PlayerTextDrawHide(playerid, Class1[playerid]);
  1261. PlayerTextDrawHide(playerid, Class3[playerid]);
  1262. PlayerTextDrawShow(playerid, Class5[playerid]);
  1263. PlayerTextDrawHide(playerid, Class6[playerid]);
  1264. PlayerTextDrawHide(playerid, Class7[playerid]);
  1265. PlayerTextDrawHide(playerid, Class8[playerid]);
  1266. PlayerTextDrawHide(playerid, Class9[playerid]);
  1267. PlayerTextDrawHide(playerid, Class10[playerid]);
  1268. PlayerTextDrawHide(playerid, Class11[playerid]);
  1269. PlayerTextDrawHide(playerid, Class12[playerid]);
  1270. PlayerTextDrawHide(playerid, Class14[playerid]);
  1271.  
  1272. }
  1273. case 29: {
  1274. SetPlayerTeam(playerid, DNB);
  1275. InSafe[playerid] = 0; // pas safe
  1276. packgun[playerid] = 3;
  1277. InWar[playerid] = 1;
  1278. TeamClan[playerid] = 0;
  1279.  
  1280. PlayerTextDrawShow(playerid, Class13[playerid]);
  1281.  
  1282. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  1283. PlayerTextDrawShow(playerid, Class4[playerid]);
  1284.  
  1285. PlayerTextDrawHide(playerid, Class0[playerid]);
  1286. PlayerTextDrawHide(playerid, Class1[playerid]);
  1287. PlayerTextDrawHide(playerid, Class3[playerid]);
  1288. PlayerTextDrawShow(playerid, Class5[playerid]);
  1289. PlayerTextDrawHide(playerid, Class6[playerid]);
  1290. PlayerTextDrawHide(playerid, Class7[playerid]);
  1291. PlayerTextDrawHide(playerid, Class8[playerid]);
  1292. PlayerTextDrawHide(playerid, Class9[playerid]);
  1293. PlayerTextDrawHide(playerid, Class10[playerid]);
  1294. PlayerTextDrawHide(playerid, Class11[playerid]);
  1295. PlayerTextDrawHide(playerid, Class12[playerid]);
  1296. PlayerTextDrawHide(playerid, Class14[playerid]);
  1297.  
  1298. }
  1299.  
  1300. case 30: {
  1301. SetPlayerTeam(playerid, MafiaR);
  1302. InSafe[playerid] = 0; // pas safe
  1303. packgun[playerid] = 0;
  1304. InWar[playerid] = 1;
  1305. TeamClan[playerid] = 0;
  1306.  
  1307. PlayerTextDrawShow(playerid, Class14[playerid]);
  1308.  
  1309. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  1310. PlayerTextDrawShow(playerid, Class4[playerid]);
  1311.  
  1312. PlayerTextDrawHide(playerid, Class0[playerid]);
  1313. PlayerTextDrawHide(playerid, Class1[playerid]);
  1314. PlayerTextDrawHide(playerid, Class3[playerid]);
  1315. PlayerTextDrawHide(playerid, Class5[playerid]);
  1316. PlayerTextDrawHide(playerid, Class6[playerid]);
  1317. PlayerTextDrawHide(playerid, Class7[playerid]);
  1318. PlayerTextDrawHide(playerid, Class8[playerid]);
  1319. PlayerTextDrawHide(playerid, Class9[playerid]);
  1320. PlayerTextDrawHide(playerid, Class10[playerid]);
  1321. PlayerTextDrawHide(playerid, Class11[playerid]);
  1322. PlayerTextDrawHide(playerid, Class12[playerid]);
  1323. PlayerTextDrawHide(playerid, Class13[playerid]);
  1324.  
  1325. }
  1326. case 31: {
  1327. SetPlayerTeam(playerid, MafiaR);
  1328. InSafe[playerid] = 0; // pas safe
  1329. packgun[playerid] = 1;
  1330. InWar[playerid] = 1;
  1331. TeamClan[playerid] = 0;
  1332.  
  1333. PlayerTextDrawShow(playerid, Class14[playerid]);
  1334.  
  1335. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  1336. PlayerTextDrawShow(playerid, Class4[playerid]);
  1337.  
  1338. PlayerTextDrawHide(playerid, Class0[playerid]);
  1339. PlayerTextDrawHide(playerid, Class1[playerid]);
  1340. PlayerTextDrawHide(playerid, Class3[playerid]);
  1341. PlayerTextDrawShow(playerid, Class5[playerid]);
  1342. PlayerTextDrawHide(playerid, Class6[playerid]);
  1343. PlayerTextDrawHide(playerid, Class7[playerid]);
  1344. PlayerTextDrawHide(playerid, Class8[playerid]);
  1345. PlayerTextDrawHide(playerid, Class9[playerid]);
  1346. PlayerTextDrawHide(playerid, Class10[playerid]);
  1347. PlayerTextDrawHide(playerid, Class11[playerid]);
  1348. PlayerTextDrawHide(playerid, Class12[playerid]);
  1349. PlayerTextDrawHide(playerid, Class13[playerid]);
  1350.  
  1351. }
  1352. case 32: {
  1353. SetPlayerTeam(playerid, MafiaR);
  1354. InSafe[playerid] = 0; // pas safe
  1355. packgun[playerid] = 2;
  1356. InWar[playerid] = 1;
  1357. TeamClan[playerid] = 0;
  1358.  
  1359. PlayerTextDrawShow(playerid, Class14[playerid]);
  1360.  
  1361. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  1362. PlayerTextDrawShow(playerid, Class4[playerid]);
  1363.  
  1364. PlayerTextDrawHide(playerid, Class0[playerid]);
  1365. PlayerTextDrawHide(playerid, Class1[playerid]);
  1366. PlayerTextDrawHide(playerid, Class3[playerid]);
  1367. PlayerTextDrawShow(playerid, Class5[playerid]);
  1368. PlayerTextDrawHide(playerid, Class6[playerid]);
  1369. PlayerTextDrawHide(playerid, Class7[playerid]);
  1370. PlayerTextDrawHide(playerid, Class8[playerid]);
  1371. PlayerTextDrawHide(playerid, Class9[playerid]);
  1372. PlayerTextDrawHide(playerid, Class10[playerid]);
  1373. PlayerTextDrawHide(playerid, Class11[playerid]);
  1374. PlayerTextDrawHide(playerid, Class12[playerid]);
  1375. PlayerTextDrawHide(playerid, Class13[playerid]);
  1376.  
  1377. }
  1378. case 33: {
  1379. SetPlayerTeam(playerid, MafiaR);
  1380. InSafe[playerid] = 0; // pas safe
  1381. packgun[playerid] = 3;
  1382. InWar[playerid] = 1;
  1383. TeamClan[playerid] = 0;
  1384.  
  1385. PlayerTextDrawShow(playerid, Class14[playerid]);
  1386.  
  1387. PlayerTextDrawSetString(playerid, Class4[playerid], "~r~Eagle~w~ + ~r~MP5~w~ + ~r~Shotgun~w~ + ~r~M4");
  1388. PlayerTextDrawShow(playerid, Class4[playerid]);
  1389.  
  1390. PlayerTextDrawHide(playerid, Class0[playerid]);
  1391. PlayerTextDrawHide(playerid, Class1[playerid]);
  1392. PlayerTextDrawHide(playerid, Class3[playerid]);
  1393. PlayerTextDrawShow(playerid, Class5[playerid]);
  1394. PlayerTextDrawHide(playerid, Class6[playerid]);
  1395. PlayerTextDrawHide(playerid, Class7[playerid]);
  1396. PlayerTextDrawHide(playerid, Class8[playerid]);
  1397. PlayerTextDrawHide(playerid, Class9[playerid]);
  1398. PlayerTextDrawHide(playerid, Class10[playerid]);
  1399. PlayerTextDrawHide(playerid, Class11[playerid]);
  1400. PlayerTextDrawHide(playerid, Class12[playerid]);
  1401. PlayerTextDrawHide(playerid, Class13[playerid]);
  1402.  
  1403. }
  1404.  
  1405. case 16: {
  1406. SetPlayerTeam(playerid, SAFE);
  1407. packgun[playerid] = -1;
  1408. InWar[playerid] = 0;
  1409. TeamClan[playerid] = 0;
  1410.  
  1411. PlayerTextDrawShow(playerid, Class6[playerid]);
  1412. PlayerTextDrawShow(playerid, Class7[playerid]);
  1413.  
  1414. PlayerTextDrawHide(playerid, Class4[playerid]);
  1415. PlayerTextDrawHide(playerid, Class2[playerid]);
  1416. PlayerTextDrawHide(playerid, Class0[playerid]);
  1417. PlayerTextDrawHide(playerid, Class1[playerid]);
  1418. PlayerTextDrawHide(playerid, Class3[playerid]);
  1419. PlayerTextDrawHide(playerid, Class5[playerid]);
  1420. PlayerTextDrawHide(playerid, Class8[playerid]);
  1421. PlayerTextDrawHide(playerid, Class9[playerid]);
  1422. PlayerTextDrawHide(playerid, Class10[playerid]);
  1423. PlayerTextDrawHide(playerid, Class11[playerid]);
  1424. PlayerTextDrawHide(playerid, Class12[playerid]);
  1425. PlayerTextDrawHide(playerid, Class13[playerid]);
  1426.  
  1427. }
  1428.  
  1429. case 17: {
  1430. SetPlayerTeam(playerid, CLAN);
  1431.  
  1432. if(PlayerInfo[playerid][pPack] == 0)
  1433. {
  1434. packgun[playerid] = 0;
  1435. }
  1436. if(PlayerInfo[playerid][pPack] == 1)
  1437. {
  1438. packgun[playerid] = 1;
  1439. }
  1440. if(PlayerInfo[playerid][pPack] == 2)
  1441. {
  1442. packgun[playerid] = 2;
  1443. }
  1444. if(PlayerInfo[playerid][pPack] == 3)
  1445. {
  1446. packgun[playerid] = 3;
  1447. }
  1448. InWar[playerid] = 1;
  1449. TeamClan[playerid] = 1;
  1450.  
  1451.  
  1452.  
  1453. if(PlayerInfo[playerid][pTeam] != -1)
  1454. {
  1455. new string[MAX_STRING_MSG];
  1456. format(string, sizeof(string), "~w~%s", ClanInfo[ PlayerInfo[playerid][pTeam] ][cName]);
  1457. PlayerTextDrawSetString(playerid, Class9[playerid], string);
  1458. PlayerTextDrawShow(playerid, Class9[playerid]);
  1459. SetPlayerSkin(playerid, ClanInfo[ PlayerInfo[playerid][pTeam] ][cSkin]);
  1460. }
  1461. else
  1462. {
  1463. PlayerTextDrawSetString(playerid, Class9[playerid], "~w~You have no clan");
  1464. PlayerTextDrawShow(playerid, Class9[playerid]);
  1465. }
  1466. PlayerTextDrawHide(playerid, Class2[playerid]);
  1467. PlayerTextDrawHide(playerid, Class0[playerid]);
  1468. PlayerTextDrawHide(playerid, Class1[playerid]);
  1469. PlayerTextDrawHide(playerid, Class3[playerid]);
  1470. PlayerTextDrawHide(playerid, Class5[playerid]);
  1471. PlayerTextDrawHide(playerid, Class6[playerid]);
  1472. PlayerTextDrawHide(playerid, Class7[playerid]);
  1473. PlayerTextDrawShow(playerid, Class8[playerid]);
  1474. PlayerTextDrawShow(playerid, Class10[playerid]);
  1475. PlayerTextDrawHide(playerid, Class4[playerid]);
  1476. PlayerTextDrawHide(playerid, Class11[playerid]);
  1477. PlayerTextDrawHide(playerid, Class12[playerid]);
  1478. PlayerTextDrawHide(playerid, Class13[playerid]);
  1479. PlayerTextDrawHide(playerid, Class14[playerid]);
  1480.  
  1481. }
  1482. }
  1483. SetPlayerPos(playerid, 314.7225,-137.8821,999.6016);
  1484. SetPlayerCameraPos(playerid, 311.2225, -137.8820, 1000.2015 );
  1485. SetPlayerCameraLookAt( playerid, 321.2164, -137.8820, 999.8525 );
  1486. SetPlayerFacingAngle(playerid, 90);
  1487. SetPlayerInterior(playerid, 7);
  1488. ApplyAnimation(playerid,"RAPPING","RAP_A_Loop",4.0,1,1,1,1,0);
  1489. PlayerTextDrawHide(playerid, Login0[playerid]);
  1490. PlayerTextDrawHide(playerid, Login1[playerid]);
  1491. PlayerTextDrawHide(playerid, Login2[playerid]);
  1492. PlayerTextDrawHide(playerid, Login3[playerid]);
  1493. return 1;
  1494. }
RAW Paste Data