Advertisement
Guest User

Untitled

a guest
Nov 9th, 2016
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 115.42 KB | None | 0 0
  1. public OnPlayerText(playerid, text[])
  2. {
  3. new giver[MAX_PLAYER_NAME];
  4. new sendername[MAX_PLAYER_NAME];
  5. new giveplayer[MAX_PLAYER_NAME];
  6. new tmp[128];
  7. new string[156];
  8. new giveplayerid;
  9. new y,m,d;
  10. new h,mi,s;
  11. getdate(y,m,d);
  12. gettime(h,mi,s);
  13. if(PlayerInfo[playerid][pMuted] == 1)
  14. {
  15. SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
  16. return 0;
  17. }
  18. if(text[0] == '#' && PlayerInfo[playerid][pAdmin] >= 1)
  19. {
  20. GetPlayerName(playerid,sendername,sizeof(sendername));
  21.  
  22. new arank[24];
  23. if(PlayerInfo[playerid][pAdmin] == 1) { arank = "Moderator"; } // By DJLover
  24. else if(PlayerInfo[playerid][pAdmin] == 2) { arank = "Global Moderator"; } // By DJLover
  25. else if(PlayerInfo[playerid][pAdmin] == 3) { arank = "Administrator"; } // By DJLover
  26. else if(PlayerInfo[playerid][pAdmin] == 4) { arank = "Senior Admin"; } // By DJLover
  27. else if(PlayerInfo[playerid][pAdmin] == 5) { arank = "Main Admin"; } // By DJLover
  28. else if(PlayerInfo[playerid][pAdmin] == 6) { arank = "Developer"; } // By DJLover
  29. else if(PlayerInfo[playerid][pAdmin] == 1337) { arank = "Scripter"; } // By DJLover
  30. else if(PlayerInfo[playerid][pAdmin] == 1338) { arank = "Owner"; } // By DJLover
  31. else { arank = "Unknown"; }
  32.  
  33. format(string, sizeof(string), "[%s] %s (%d): %s", arank, sendername, playerid, text[1]);
  34. SendAdminMessage(COLOR_LIGHTRED, string);
  35.  
  36. printf("%s %s: %s",arank, sendername, text[1]);
  37.  
  38. format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s %s: %s",arank,d,m,y,h,mi,s,sendername, text[1]);
  39. AdminChatLog(string);
  40. return 0;
  41. }
  42. if(text[0] == '@' && (PlayerInfo[playerid][pVip] >= 1 || PlayerInfo[playerid][pAdmin] >= 1))
  43. {
  44. GetPlayerName(playerid,sendername,sizeof(sendername));
  45.  
  46. new arank[24];
  47. if(PlayerInfo[playerid][pVip] == 1) { arank = "Trial Vip"; } // By DJLover
  48. else if(PlayerInfo[playerid][pVip] == 2) { arank = "Vip"; } // By DJLover
  49. else if(PlayerInfo[playerid][pVip] == 3) { arank = "Lead Vip"; } // By DJLover
  50. else if(PlayerInfo[playerid][pAdmin] == 1) { arank = "Moderator"; } // By DJLover
  51. else if(PlayerInfo[playerid][pAdmin] == 2) { arank = "Global Moderator"; } // By DJLover
  52. else if(PlayerInfo[playerid][pAdmin] == 3) { arank = "Administrator"; } // By DJLover
  53. else if(PlayerInfo[playerid][pAdmin] == 4) { arank = "Senior Admin"; } // By DJLover
  54. else if(PlayerInfo[playerid][pAdmin] == 5) { arank = "Main Admin"; } // By DJLover
  55. else if(PlayerInfo[playerid][pAdmin] == 6) { arank = "Developer"; } // By DJLover
  56. else if(PlayerInfo[playerid][pAdmin] == 1337) { arank = "Scripter"; } // By DJLover
  57. else if(PlayerInfo[playerid][pAdmin] == 1338) { arank = "Owner"; } // By DJLover
  58. else { arank = "Unknown"; }
  59.  
  60. format(string, sizeof(string), "[%s] %s (%d): %s", arank, sendername, playerid, text[1]);
  61. SendVipAdminMessage(COLOR_YELLOW, string);
  62.  
  63. printf("%s %s: %s",arank, sendername, text[1]);
  64.  
  65. format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s %s: %s",arank,d,m,y,h,mi,s,sendername, text[1]);
  66. AdminChatLog(string);
  67. return 0;
  68. }
  69.  
  70. if(PlayerInfo[playerid][pAdmin] == 0) Text[playerid] ++;
  71. if(Text[playerid] >= 1)
  72. {
  73. KillTimer(TextTimer[playerid]);
  74. TextTimer[playerid] = SetTimerEx("ResetText",1500,false,"i",playerid);
  75. }
  76. if(Text[playerid] == 5) SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Slow it down or you will be kicked!");
  77. if(Text[playerid] == 10)
  78. {
  79. GetPlayerName(playerid, sendername, sizeof(sendername));
  80. format(string, sizeof(string), "%s (%d), Has been kicked by The Anticheat Peter Griffin for Flooding the chat.", sendername, playerid);
  81. SendClientMessageToAll(COLOR_NICERED, string);
  82. SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have been Kicked by The Anticheat For Flooding the chat.");
  83. format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat Has Kicked %s for: Flooding the chat.",d,m,y,h,mi,s,sendername);
  84. KickLog(string);
  85. format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Kicked by the Anticheat - Flooding the chat.",d,m,y,h,mi,s,sendername);
  86. AddPunishment(playerid, string);
  87. Kick(playerid);
  88.  
  89. KillTimer(TextTimer[playerid]);
  90. }
  91.  
  92. if(OnOfficerTest[playerid] == 1)
  93. {
  94. if(TestStep[playerid] == 1)
  95. {
  96. if(strcmp(text, "c", true) == 0)
  97. {
  98. TestPoints[playerid] ++;
  99. ClearChatbox(playerid, 10);
  100. TestStep[playerid] = 2;
  101. SendClientMessage(playerid, COLOR_YELLOW,"2 - What does 'In Character (IC)' Stands for?");
  102. ClearChatbox(playerid, 4);
  103. SendClientMessage(playerid, COLOR_YELLOW,"a. The Place where i can kill everyone with my car");
  104. SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can hack money and give it away.");
  105. SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i must Roleplay what i am.");
  106. SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i must take a gun and kill everyone.");
  107. SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i must annoy others for admin status.");
  108. return 0;
  109. }
  110. else
  111. {
  112. TestPoints[playerid] --;
  113. ClearChatbox(playerid, 10);
  114. TestStep[playerid] = 1;
  115. SendClientMessage(playerid, COLOR_YELLOW,"1 - What does 'Roleplay' Stands for?");
  116. ClearChatbox(playerid, 4);
  117. SendClientMessage(playerid, COLOR_YELLOW,"a. The Place where i can kill everyone with my car");
  118. SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can hack money and give it away.");
  119. SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i must act like i was in real life.");
  120. SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i must take a gun and kill everyone.");
  121. SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i must annoy others for admin status.");
  122. return 0;
  123. }
  124. }
  125. else if(TestStep[playerid] == 2)
  126. {
  127. if(strcmp(text, "c", true) == 0)
  128. {
  129. TestPoints[playerid] ++;
  130. ClearChatbox(playerid, 10);
  131. TestStep[playerid] = 3;
  132. SendClientMessage(playerid, COLOR_YELLOW,"3 - What does 'Out of Character (OOC)' Stands for?");
  133. ClearChatbox(playerid, 4);
  134. SendClientMessage(playerid, COLOR_YELLOW,"a. The place where i can kill everyone and then quit the server.");
  135. SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can abuse my commands and force the roleplay on others.");
  136. SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i can hack money and give it away for free.");
  137. SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i can beg for admin status then abusing it.");
  138. SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i can act like myself and not my character.");
  139. return 0;
  140. }
  141. else
  142. {
  143. TestPoints[playerid] --;
  144. ClearChatbox(playerid, 10);
  145. TestStep[playerid] = 2;
  146. SendClientMessage(playerid, COLOR_YELLOW,"2 - What does 'In Character (IC)' Stands for?");
  147. ClearChatbox(playerid, 4);
  148. SendClientMessage(playerid, COLOR_YELLOW,"a. The Place where i can kill everyone with my car");
  149. SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can hack money and give it away.");
  150. SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i must Roleplay what i am.");
  151. SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i must take a gun and kill everyone.");
  152. SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i must annoy others for admin status.");
  153. return 0;
  154. }
  155. }
  156. else if(TestStep[playerid] == 3)
  157. {
  158. if(strcmp(text, "e", true) == 0)
  159. {
  160. TestPoints[playerid] ++;
  161. ClearChatbox(playerid, 10);
  162. TestStep[playerid] = 4;
  163. SendClientMessage(playerid, COLOR_YELLOW,"4 - What are my tasks as a security guard?");
  164. ClearChatbox(playerid, 4);
  165. SendClientMessage(playerid, COLOR_YELLOW,"a. Kill everyone and then quit the server and never come back.");
  166. SendClientMessage(playerid, COLOR_YELLOW,"b. Issue Tickets and arrest minor wanted suspects.");
  167. SendClientMessage(playerid, COLOR_YELLOW,"c. Use my helicopter to steal an hydra from Liberty City.");
  168. SendClientMessage(playerid, COLOR_YELLOW,"d. Use my car to car kill everyone on the server.");
  169. SendClientMessage(playerid, COLOR_YELLOW,"e. Use my uniform to smoke drugs so i can't get suspected.");
  170. return 0;
  171. }
  172. else
  173. {
  174. TestPoints[playerid] --;
  175. ClearChatbox(playerid, 10);
  176. TestStep[playerid] = 3;
  177. SendClientMessage(playerid, COLOR_YELLOW,"3 - What does 'Out of Character (OOC)' Stands for?");
  178. ClearChatbox(playerid, 4);
  179. SendClientMessage(playerid, COLOR_YELLOW,"a. The place where i can kill everyone and then quit the server.");
  180. SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can abuse my commands and force the roleplay on others.");
  181. SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i can hack money and give it away for free.");
  182. SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i can beg for admin status then abusing it.");
  183. SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i can act like myself and not my character.");
  184. return 0;
  185. }
  186. }
  187. else if(TestStep[playerid] == 4)
  188. {
  189. if(strcmp(text, "b", true) == 0)
  190. {
  191. TestPoints[playerid] ++;
  192. ClearChatbox(playerid, 10);
  193. TestStep[playerid] = 5;
  194. SendClientMessage(playerid, COLOR_YELLOW,"5 - What should i do once i cuffed a suspect?");
  195. ClearChatbox(playerid, 4);
  196. SendClientMessage(playerid, COLOR_YELLOW,"a. Abandon him in the middle of the ocean or the desert.");
  197. SendClientMessage(playerid, COLOR_YELLOW,"b. Kill him and steal his wallet so i can buy drugs.");
  198. SendClientMessage(playerid, COLOR_YELLOW,"c. Abuse my commands to take his stuff and then kill him.");
  199. SendClientMessage(playerid, COLOR_YELLOW,"d. Read his rights and Take him to the LSPD for processing.");
  200. SendClientMessage(playerid, COLOR_YELLOW,"e. Take him to the prison and jail him for 9999999 hours.");
  201. return 0;
  202. }
  203. else
  204. {
  205. TestPoints[playerid] --;
  206. ClearChatbox(playerid, 10);
  207. TestStep[playerid] = 4;
  208. SendClientMessage(playerid, COLOR_YELLOW,"4 - What are my tasks as a security guard?");
  209. ClearChatbox(playerid, 4);
  210. SendClientMessage(playerid, COLOR_YELLOW,"a. Kill everyone and then quit the server and never come back.");
  211. SendClientMessage(playerid, COLOR_YELLOW,"b. Issue Tickets and arrest minor wanted suspects.");
  212. SendClientMessage(playerid, COLOR_YELLOW,"c. Use my helicopter to steal an hydra from Liberty City.");
  213. SendClientMessage(playerid, COLOR_YELLOW,"d. Use my car to car kill everyone on the server.");
  214. SendClientMessage(playerid, COLOR_YELLOW,"e. Use my uniform to smoke drugs so i can't get suspected.");
  215. return 0;
  216. }
  217. }
  218. else if(TestStep[playerid] == 5)
  219. {
  220. if(strcmp(text, "d", true) == 0)
  221. {
  222. TestPoints[playerid] ++;
  223. ClearChatbox(playerid, 10);
  224. TestStep[playerid] = 6;
  225. SendClientMessage(playerid, COLOR_YELLOW,"6 - Where is the LSPD placed on?");
  226. ClearChatbox(playerid, 4);
  227. SendClientMessage(playerid, COLOR_YELLOW,"a. Commerce, Los Santos.");
  228. SendClientMessage(playerid, COLOR_YELLOW,"b. Pershing Square, Los Santos.");
  229. SendClientMessage(playerid, COLOR_YELLOW,"c. Creek, Las Venturas.");
  230. SendClientMessage(playerid, COLOR_YELLOW,"d. Queens, San Fierro.");
  231. SendClientMessage(playerid, COLOR_YELLOW,"e. Roca Escalante, Las Venturas.");
  232. return 0;
  233. }
  234. else
  235. {
  236. TestPoints[playerid] --;
  237. ClearChatbox(playerid, 10);
  238. TestStep[playerid] = 5;
  239. SendClientMessage(playerid, COLOR_YELLOW,"5 - What should i do once i cuffed a suspect?");
  240. ClearChatbox(playerid, 4);
  241. SendClientMessage(playerid, COLOR_YELLOW,"a. Abandon him in the middle of the ocean or the desert.");
  242. SendClientMessage(playerid, COLOR_YELLOW,"b. Kill him and steal his wallet so i can buy drugs.");
  243. SendClientMessage(playerid, COLOR_YELLOW,"c. Abuse my commands to take his stuff and then kill him.");
  244. SendClientMessage(playerid, COLOR_YELLOW,"d. Read his rights and Take him to the LSPD for processing.");
  245. SendClientMessage(playerid, COLOR_YELLOW,"e. Take him to the prison and jail him for 9999999 hours.");
  246. return 0;
  247. }
  248. }
  249. else if(TestStep[playerid] == 6)
  250. {
  251. if(strcmp(text, "b", true) == 0)
  252. {
  253. TestPoints[playerid] ++;
  254. ClearChatbox(playerid, 10);
  255. TestStep[playerid] = 7;
  256. SendClientMessage(playerid, COLOR_YELLOW,"7 - What should i do when i get shoot?");
  257. ClearChatbox(playerid, 4);
  258. SendClientMessage(playerid, COLOR_YELLOW,"a. Insult the attacker and spam /report.");
  259. SendClientMessage(playerid, COLOR_YELLOW,"b. Take my weapon and shoot back if i can.");
  260. SendClientMessage(playerid, COLOR_YELLOW,"c. Hack a minigun and kill him.");
  261. SendClientMessage(playerid, COLOR_YELLOW,"d. Call for a hunter via /departments.");
  262. SendClientMessage(playerid, COLOR_YELLOW,"e. Use /ad and ask for help in Caps.");
  263. return 0;
  264. }
  265. else
  266. {
  267. TestPoints[playerid] --;
  268. ClearChatbox(playerid, 10);
  269. TestStep[playerid] = 6;
  270. SendClientMessage(playerid, COLOR_YELLOW,"6 - Where is the LSPD placed on?");
  271. ClearChatbox(playerid, 4);
  272. SendClientMessage(playerid, COLOR_YELLOW,"a. Commerce, Los Santos.");
  273. SendClientMessage(playerid, COLOR_YELLOW,"b. Pershing Square, Los Santos.");
  274. SendClientMessage(playerid, COLOR_YELLOW,"c. Creek, Las Venturas.");
  275. SendClientMessage(playerid, COLOR_YELLOW,"d. Queens, San Fierro.");
  276. SendClientMessage(playerid, COLOR_YELLOW,"e. Roca Escalante, Las Venturas.");
  277. return 0;
  278. }
  279. }
  280. else if(TestStep[playerid] == 7)
  281. {
  282. if(strcmp(text, "b", true) == 0)
  283. {
  284. TestPoints[playerid] ++;
  285. ClearChatbox(playerid, 10);
  286. TestStep[playerid] = 8;
  287. SendClientMessage(playerid, COLOR_YELLOW,"8 - What will happen to me if i am corrupt?");
  288. ClearChatbox(playerid, 4);
  289. SendClientMessage(playerid, COLOR_YELLOW,"a. I will receive 56487 golden medals for that.");
  290. SendClientMessage(playerid, COLOR_YELLOW,"b. I will win much much money helping gangsters.");
  291. SendClientMessage(playerid, COLOR_YELLOW,"c. I will get suspended from active duty.");
  292. SendClientMessage(playerid, COLOR_YELLOW,"d. I will lose my house and my bed.");
  293. SendClientMessage(playerid, COLOR_YELLOW,"e. I will be given with a minigun so i can kill everyone.");
  294. return 0;
  295. }
  296. else
  297. {
  298. TestPoints[playerid] --;
  299. ClearChatbox(playerid, 10);
  300. TestStep[playerid] = 7;
  301. SendClientMessage(playerid, COLOR_YELLOW,"7 - What should i do when i get shoot?");
  302. ClearChatbox(playerid, 4);
  303. SendClientMessage(playerid, COLOR_YELLOW,"a. Insult the attacker and spam /report.");
  304. SendClientMessage(playerid, COLOR_YELLOW,"b. Take my weapon and shoot back if i can.");
  305. SendClientMessage(playerid, COLOR_YELLOW,"c. Hack a minigun and kill him.");
  306. SendClientMessage(playerid, COLOR_YELLOW,"d. Call for a hunter via /departments.");
  307. SendClientMessage(playerid, COLOR_YELLOW,"e. Use /ad and ask for help in Caps.");
  308. return 0;
  309. }
  310. }
  311. else if(TestStep[playerid] == 8)
  312. {
  313. if(strcmp(text, "c", true) == 0)
  314. {
  315. TestPoints[playerid] ++;
  316. ClearChatbox(playerid, 10);
  317. TestStep[playerid] = 9;
  318. SendClientMessage(playerid, COLOR_YELLOW,"9 - What should i do when rushing a house?");
  319. ClearChatbox(playerid, 4);
  320. SendClientMessage(playerid, COLOR_YELLOW,"a. Use /ad and tell the suspect that we're going in so he can escape.");
  321. SendClientMessage(playerid, COLOR_YELLOW,"b. PM the suspect and advise about the Cops arriving so he can escape.");
  322. SendClientMessage(playerid, COLOR_YELLOW,"c. Enter with hacked grenades and throw them all over the house.");
  323. SendClientMessage(playerid, COLOR_YELLOW,"d. Act like rambo, enter the property and try to kill the suspects without help.");
  324. SendClientMessage(playerid, COLOR_YELLOW,"e. Stay calm, follow your leader's orders and work as a team with the others.");
  325. return 0;
  326. }
  327. else
  328. {
  329. TestPoints[playerid] --;
  330. ClearChatbox(playerid, 10);
  331. TestStep[playerid] = 8;
  332. SendClientMessage(playerid, COLOR_YELLOW,"8 - What will happen to me if i am corrupt?");
  333. ClearChatbox(playerid, 4);
  334. SendClientMessage(playerid, COLOR_YELLOW,"a. I will receive 56487 golden medals for that.");
  335. SendClientMessage(playerid, COLOR_YELLOW,"b. I will win much much money helping gangsters.");
  336. SendClientMessage(playerid, COLOR_YELLOW,"c. I will get suspended from active duty.");
  337. SendClientMessage(playerid, COLOR_YELLOW,"d. I will lose my house and my bed.");
  338. SendClientMessage(playerid, COLOR_YELLOW,"e. I will be given with a minigun so i can kill everyone.");
  339. return 0;
  340. }
  341. }
  342. else if(TestStep[playerid] == 9)
  343. {
  344. if(strcmp(text, "e", true) == 0)
  345. {
  346. TestPoints[playerid] ++;
  347. ClearChatbox(playerid, 10);
  348. TestStep[playerid] = 10;
  349. SendClientMessage(playerid, COLOR_YELLOW,"10 - Can i work privately as someone's security guard?");
  350. ClearChatbox(playerid, 4);
  351. SendClientMessage(playerid, COLOR_YELLOW,"a. Yes i can, i am the law and i command myself however i want.");
  352. SendClientMessage(playerid, COLOR_YELLOW,"b. No i can't, thats the work of the bodyguards, not mine's.");
  353. SendClientMessage(playerid, COLOR_YELLOW,"c. Yes i can, but if my dog is the one that i have to protect.");
  354. SendClientMessage(playerid, COLOR_YELLOW,"d. Yes i can, as long i get authorization from an officer or above.");
  355. SendClientMessage(playerid, COLOR_YELLOW,"e. Yes i can, only if i get paid more than 5000$ and some drugs.");
  356. return 0;
  357. }
  358. else
  359. {
  360. TestPoints[playerid] --;
  361. ClearChatbox(playerid, 10);
  362. TestStep[playerid] = 9;
  363. SendClientMessage(playerid, COLOR_YELLOW,"9 - What should i do when rushing a house?");
  364. ClearChatbox(playerid, 4);
  365. SendClientMessage(playerid, COLOR_YELLOW,"a. Use /ad and tell the suspect that we're going in so he can escape.");
  366. SendClientMessage(playerid, COLOR_YELLOW,"b. PM the suspect and advise about the Cops arriving so he can escape.");
  367. SendClientMessage(playerid, COLOR_YELLOW,"c. Enter with hacked grenades and throw them all over the house.");
  368. SendClientMessage(playerid, COLOR_YELLOW,"d. Act like rambo, enter the property and try to kill the suspects without help.");
  369. SendClientMessage(playerid, COLOR_YELLOW,"e. Stay calm, follow your leader's orders and work as a team with the others.");
  370. return 0;
  371. }
  372. }
  373. else if(TestStep[playerid] == 10)
  374. {
  375. if(strcmp(text, "d", true) == 0)
  376. {
  377. TestPoints[playerid] ++;
  378. SafeGivePlayerMoney(playerid, -5000);
  379. if(TestPoints[playerid] >= 9)
  380. {
  381. ClearChatbox(playerid, 10);
  382. TestStep[playerid] = 0;
  383. SendClientMessage(playerid, COLOR_GREEN,"You have passed your test, you can now be a security guard!");
  384. SendClientMessage(playerid, COLOR_WHITE,"Go to the LSPD, open the door with MMB (LOOK BEHIND) and type /duty at the DUTY POINT");
  385. PlayerInfo[playerid][pCopLic] = 1;
  386. OnOfficerTest[playerid] = 0;
  387. TestPoints[playerid] = 0;
  388. return 0;
  389. }
  390. else
  391. {
  392. ClearChatbox(playerid, 10);
  393. TestStep[playerid] = 0;
  394. SendClientMessage(playerid, COLOR_GREEN,"You have failed your test, you must wait 5 hours to re-do the test");
  395. format(string, sizeof(string),"Your Score was %d, And you need atleast 9 (out of 10) to Pass",TestPoints[playerid]);
  396. SendClientMessage(playerid, COLOR_GREY, string);
  397. PlayerInfo[playerid][pOfficerTime] = 18000;
  398. OnOfficerTest[playerid] = 0;
  399. TestPoints[playerid] = 0;
  400. return 0;
  401. }
  402. }
  403. else
  404. {
  405. TestPoints[playerid] --;
  406. ClearChatbox(playerid, 10);
  407. TestStep[playerid] = 10;
  408. SendClientMessage(playerid, COLOR_YELLOW,"10 - What should i do when rushing a house?");
  409. ClearChatbox(playerid, 4);
  410. SendClientMessage(playerid, COLOR_YELLOW,"a. Use /ad and tell the suspect that we're going in so he can escape.");
  411. SendClientMessage(playerid, COLOR_YELLOW,"b. PM the suspect and advise about the Cops arriving so he can escape.");
  412. SendClientMessage(playerid, COLOR_YELLOW,"c. Enter with hacked grenades and throw them all over the house.");
  413. SendClientMessage(playerid, COLOR_YELLOW,"d. Act like rambo, enter the property and try to kill the suspects without help.");
  414. SendClientMessage(playerid, COLOR_YELLOW,"e. Stay calm, follow your leader's orders and work as a team with the others.");
  415. return 0;
  416. }
  417. }
  418. }
  419. if(OnPassportTest[playerid] == 1)
  420. {
  421. if(TestStep[playerid] == 1)
  422. {
  423. if(strcmp(text, "c", true) == 0)
  424. {
  425. ClearChatbox(playerid, 10);
  426. TestStep[playerid] = 2;
  427. SendClientMessage(playerid, COLOR_YELLOW,"2 - What does 'In Character (IC)' Stands for?");
  428. ClearChatbox(playerid, 4);
  429. SendClientMessage(playerid, COLOR_YELLOW,"a. The Place where i can kill everyone with my car");
  430. SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can hack money and give it away.");
  431. SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i must Roleplay what i am.");
  432. SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i must take a gun and kill everyone.");
  433. SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i must annoy others for admin status.");
  434. return 0;
  435. }
  436. else
  437. {
  438. SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
  439. PlayerInfo[playerid][pPassportTime] = 21600;
  440. OnPassportTest[playerid] = 0;
  441. TestStep[playerid] = 0;
  442. return 0;
  443. }
  444. }
  445. else if(TestStep[playerid] == 2)
  446. {
  447. if(strcmp(text, "c", true) == 0)
  448. {
  449. ClearChatbox(playerid, 10);
  450. TestStep[playerid] = 3;
  451. SendClientMessage(playerid, COLOR_YELLOW,"3 - What does 'Out of Character (OOC)' Stands for?");
  452. ClearChatbox(playerid, 4);
  453. SendClientMessage(playerid, COLOR_YELLOW,"a. The place where i can kill everyone and then quit the server.");
  454. SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can abuse my commands and force the roleplay on others.");
  455. SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i can hack money and give it away for free.");
  456. SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i can beg for admin status then abusing it.");
  457. SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i can act like myself and not my character.");
  458. return 0;
  459. }
  460. else
  461. {
  462. SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
  463. PlayerInfo[playerid][pPassportTime] = 21600;
  464. OnPassportTest[playerid] = 0;
  465. TestStep[playerid] = 0;
  466. return 0;
  467. }
  468. }
  469. else if(TestStep[playerid] == 3)
  470. {
  471. if(strcmp(text, "e", true) == 0)
  472. {
  473. ClearChatbox(playerid, 10);
  474. TestStep[playerid] = 4;
  475. SendClientMessage(playerid, COLOR_YELLOW,"4 - What does 'Powergaming' Stands for?");
  476. ClearChatbox(playerid, 4);
  477. SendClientMessage(playerid, COLOR_YELLOW,"a. That i can kill anyone without a reason.");
  478. SendClientMessage(playerid, COLOR_YELLOW,"b. That i force the roleplay on other people.");
  479. SendClientMessage(playerid, COLOR_YELLOW,"c. That i can use my helicopter to kill anyone.");
  480. SendClientMessage(playerid, COLOR_YELLOW,"d. That i can drive by on my car and kill everyone.");
  481. SendClientMessage(playerid, COLOR_YELLOW,"e. That i can hack and fly around san andreas.");
  482. return 0;
  483. }
  484. else
  485. {
  486. SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
  487. PlayerInfo[playerid][pPassportTime] = 21600;
  488. OnPassportTest[playerid] = 0;
  489. TestStep[playerid] = 0;
  490. return 0;
  491. }
  492. }
  493. else if(TestStep[playerid] == 4)
  494. {
  495. if(strcmp(text, "b", true) == 0)
  496. {
  497. ClearChatbox(playerid, 10);
  498. TestStep[playerid] = 5;
  499. SendClientMessage(playerid, COLOR_YELLOW,"5 - What does 'Metagaming' Stands for?");
  500. ClearChatbox(playerid, 4);
  501. SendClientMessage(playerid, COLOR_YELLOW,"a. The use of a car to kill everyone with it.");
  502. SendClientMessage(playerid, COLOR_YELLOW,"b. The use of hacks and abusing the possible script bugs.");
  503. SendClientMessage(playerid, COLOR_YELLOW,"c. The use of guns to kill anyone without a reason.");
  504. SendClientMessage(playerid, COLOR_YELLOW,"d. The use of Out of Character information at In Character.");
  505. SendClientMessage(playerid, COLOR_YELLOW,"e. The use of commands to force the rolepaly on someone else.");
  506. return 0;
  507. }
  508. else
  509. {
  510. SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
  511. PlayerInfo[playerid][pPassportTime] = 21600;
  512. OnPassportTest[playerid] = 0;
  513. TestStep[playerid] = 0;
  514. return 0;
  515. }
  516. }
  517. else if(TestStep[playerid] == 5)
  518. {
  519. if(strcmp(text, "d", true) == 0)
  520. {
  521. ClearChatbox(playerid, 10);
  522. TestStep[playerid] = 6;
  523. SendClientMessage(playerid, COLOR_YELLOW,"6 - Where is the LSPD placed on?");
  524. ClearChatbox(playerid, 4);
  525. SendClientMessage(playerid, COLOR_YELLOW,"a. Commerce, Los Santos.");
  526. SendClientMessage(playerid, COLOR_YELLOW,"b. Pershing Square, Los Santos.");
  527. SendClientMessage(playerid, COLOR_YELLOW,"c. Creek, Las Venturas.");
  528. SendClientMessage(playerid, COLOR_YELLOW,"d. Queens, San Fierro.");
  529. SendClientMessage(playerid, COLOR_YELLOW,"e. Roca Escalante, Las Venturas.");
  530. return 0;
  531. }
  532. else
  533. {
  534. SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
  535. PlayerInfo[playerid][pPassportTime] = 21600;
  536. OnPassportTest[playerid] = 0;
  537. TestStep[playerid] = 0;
  538. return 0;
  539. }
  540. }
  541. else if(TestStep[playerid] == 6)
  542. {
  543. if(strcmp(text, "b", true) == 0)
  544. {
  545. ClearChatbox(playerid, 10);
  546. TestStep[playerid] = 7;
  547. SendClientMessage(playerid, COLOR_YELLOW,"7 - What should i do when i get shoot?");
  548. ClearChatbox(playerid, 4);
  549. SendClientMessage(playerid, COLOR_YELLOW,"a. Run in circles and beat the attacker.");
  550. SendClientMessage(playerid, COLOR_YELLOW,"b. Act scared like in real life.");
  551. SendClientMessage(playerid, COLOR_YELLOW,"c. Take a gun out of your ass and shoot him.");
  552. SendClientMessage(playerid, COLOR_YELLOW,"d. Take cover on a wall and PM a cop to save you.");
  553. SendClientMessage(playerid, COLOR_YELLOW,"e. Use /ad and ask for help in Caps.");
  554. return 0;
  555. }
  556. else
  557. {
  558. SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
  559. PlayerInfo[playerid][pPassportTime] = 21600;
  560. OnPassportTest[playerid] = 0;
  561. TestStep[playerid] = 0;
  562. return 0;
  563. }
  564. }
  565. else if(TestStep[playerid] == 7)
  566. {
  567. if(strcmp(text, "b", true) == 0)
  568. {
  569. ClearChatbox(playerid, 10);
  570. TestStep[playerid] = 8;
  571. SendClientMessage(playerid, COLOR_YELLOW,"8 - What should i do when an admin tells me something?");
  572. ClearChatbox(playerid, 4);
  573. SendClientMessage(playerid, COLOR_YELLOW,"a. Ignore him and keep playing");
  574. SendClientMessage(playerid, COLOR_YELLOW,"b. Quit and never come back.");
  575. SendClientMessage(playerid, COLOR_YELLOW,"c. Do what he says and stay calm.");
  576. SendClientMessage(playerid, COLOR_YELLOW,"d. Spam his pm's with insults then Quit.");
  577. SendClientMessage(playerid, COLOR_YELLOW,"e. Hack and kill him with a minigun.");
  578. return 0;
  579. }
  580. else
  581. {
  582. SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
  583. PlayerInfo[playerid][pPassportTime] = 21600;
  584. OnPassportTest[playerid] = 0;
  585. TestStep[playerid] = 0;
  586. return 0;
  587. }
  588. }
  589. else if(TestStep[playerid] == 8)
  590. {
  591. if(strcmp(text, "c", true) == 0)
  592. {
  593. ClearChatbox(playerid, 10);
  594. TestStep[playerid] = 9;
  595. SendClientMessage(playerid, COLOR_YELLOW,"9 - What should i do when an admins punishes my friend?");
  596. ClearChatbox(playerid, 4);
  597. SendClientMessage(playerid, COLOR_YELLOW,"a. Use /ad to moan about the punishment with caps.");
  598. SendClientMessage(playerid, COLOR_YELLOW,"b. PM the admin and moan about the punishment.");
  599. SendClientMessage(playerid, COLOR_YELLOW,"c. Spam /atalk to moan about the punishment.");
  600. SendClientMessage(playerid, COLOR_YELLOW,"d. Report him at the forums for abuser.");
  601. SendClientMessage(playerid, COLOR_YELLOW,"e. Stay Calm, with the mouth shut, You can't comment on punishments.");
  602. return 0;
  603. }
  604. else
  605. {
  606. SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
  607. PlayerInfo[playerid][pPassportTime] = 21600;
  608. OnPassportTest[playerid] = 0;
  609. TestStep[playerid] = 0;
  610. return 0;
  611. }
  612. }
  613. else if(TestStep[playerid] == 9)
  614. {
  615. if(strcmp(text, "e", true) == 0)
  616. {
  617. ClearChatbox(playerid, 10);
  618. TestStep[playerid] = 10;
  619. SendClientMessage(playerid, COLOR_YELLOW,"10 - What should i do if a hacker gives me hacked money?");
  620. ClearChatbox(playerid, 4);
  621. SendClientMessage(playerid, COLOR_YELLOW,"a. Keep the money, use it to buy nice things such lots of weapons.");
  622. SendClientMessage(playerid, COLOR_YELLOW,"b. Give the money back, and ignore him without telling admins.");
  623. SendClientMessage(playerid, COLOR_YELLOW,"c. Use /charity with the money and never mention nothing about the hacker.");
  624. SendClientMessage(playerid, COLOR_YELLOW,"d. Give to any admin the money and report the hacker.");
  625. SendClientMessage(playerid, COLOR_YELLOW,"e. Quit, and come back in a few hours and waste the money.");
  626. return 0;
  627. }
  628. else
  629. {
  630. SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
  631. PlayerInfo[playerid][pPassportTime] = 21600;
  632. OnPassportTest[playerid] = 0;
  633. TestStep[playerid] = 0;
  634. return 0;
  635. }
  636. }
  637. else if(TestStep[playerid] == 10)
  638. {
  639. if(strcmp(text, "d", true) == 0)
  640. {
  641. ClearChatbox(playerid, 10);
  642. TestStep[playerid] = 0;
  643. SendClientMessage(playerid, COLOR_GREEN,"You have passed your test, you're now a Legal Citizen!");
  644. PlayerInfo[playerid][pPassport] = 1;
  645. return 0;
  646. }
  647. else
  648. {
  649. SendClientMessage(playerid, COLOR_YELLOW,"* You have failed your test, now you can do it again in Five Hours.");
  650. PlayerInfo[playerid][pPassportTime] = 21600;
  651. OnPassportTest[playerid] = 0;
  652. TestStep[playerid] = 0;
  653. return 0;
  654. }
  655. }
  656. }
  657. if(SelectChar[playerid] == 255)
  658. {
  659. new idx;
  660. tmp = strtok(text, idx);
  661. if ((strcmp("next", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("next")))
  662. {
  663. switch (SelectCharID[playerid])
  664. {
  665. case 1: //Police Force
  666. {
  667. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[0][0]; }
  668. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[1][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[1][0]; }
  669. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[2][0]; }
  670. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[3][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[3][0]; }
  671. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[4][0]; }
  672. else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[5][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[5][0]; }
  673. else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[6][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = JoinPed[6][0]; }
  674. else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, JoinPed[7][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = JoinPed[7][0]; }
  675. else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, JoinPed[8][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = JoinPed[8][0]; }
  676. else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, JoinPed[9][0]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = JoinPed[9][0]; }
  677. else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, JoinPed[10][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[10][0]; }
  678. }
  679. case 2: //FBI/ATF
  680. {
  681. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[11][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[11][0]; }
  682. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[12][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[12][0]; }
  683. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[13][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[13][0]; }
  684. }
  685. case 3: //National Guard
  686. {
  687. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[14][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[14][0]; }
  688. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[15][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[15][0]; }
  689. }
  690. case 4: //Fire&Ambulance
  691. {
  692. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[16][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[16][0]; }
  693. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[17][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[17][0]; }
  694. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[18][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[18][0]; }
  695. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[19][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[19][0]; }
  696. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[20][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[20][0]; }
  697. else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[21][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = JoinPed[21][0]; }
  698. else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, JoinPed[22][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[22][0]; }
  699. }
  700. case 5: //Surenos
  701. {
  702. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[25][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[25][0]; }
  703. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[26][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[26][0]; }
  704. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[27][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[27][0]; }
  705. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[28][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[28][0]; }
  706. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[29][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[29][0]; }
  707. else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[30][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[30][0]; }
  708. }
  709. case 6: //Le Signatra
  710. {
  711. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[31][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[31][0]; }
  712. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[32][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[32][0]; }
  713. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[33][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[33][0]; }
  714. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[34][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[34][0]; }
  715. }
  716. case 8: //Hitman Agency
  717. {
  718. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[38][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[38][0]; }
  719. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[39][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[39][0]; }
  720. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[40][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[40][0]; }
  721. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[41][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[41][0]; }
  722. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[42][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[42][0]; }
  723. }
  724. case 9: //News Reporters
  725. {
  726. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[43][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[43][0]; }
  727. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[44][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[44][0]; }
  728. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[45][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[45][0]; }
  729. }
  730. case 10: //Taxi Cab Company
  731. {
  732. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[46][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[46][0]; }
  733. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[47][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[47][0]; }
  734. }
  735. case 11: //Driving/Flying School
  736. {
  737. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[48][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[48][0]; }
  738. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[49][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[49][0]; }
  739. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[50][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[50][0]; }
  740. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[51][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[51][0]; }
  741. }
  742. case 14: //Yakuza
  743. {
  744. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 122); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 122; }
  745. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 118); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 118; }
  746. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 186); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 186; }
  747. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 123); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = 123; }
  748. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, 113); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = 113; }
  749. else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, 169); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 169; }
  750. }
  751.  
  752. case 15: //Chornaya Bratva
  753. {
  754. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[58][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[58][0]; }
  755. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[59][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[59][0]; }
  756. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[60][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[60][0]; }
  757. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[61][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = JoinPed[61][0]; }
  758. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, JoinPed[62][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = JoinPed[62][0]; }
  759. else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[63][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[63][0]; }
  760. }
  761. case 16: //La Vice
  762. {
  763. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 28); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 28; }
  764. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 67); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 67; }
  765. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 22); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 22; }
  766. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 180); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = 180; }
  767. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, 144); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 144; }
  768. }
  769. case 17: //TovCar
  770. {
  771. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 50); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 50; }
  772. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 50); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 50; }
  773. }
  774. case 20: //Male civilian (by Ellis)
  775. {
  776. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, CivMalePeds[1][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = CivMalePeds[1][0]; }
  777. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, CivMalePeds[2][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = CivMalePeds[2][0]; }
  778. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, CivMalePeds[3][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = CivMalePeds[3][0]; }
  779. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, CivMalePeds[4][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = CivMalePeds[4][0]; }
  780. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, CivMalePeds[5][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = CivMalePeds[5][0]; }
  781. else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, CivMalePeds[6][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = CivMalePeds[6][0]; }
  782. else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, CivMalePeds[7][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = CivMalePeds[7][0]; }
  783. else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, CivMalePeds[8][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = CivMalePeds[8][0]; }
  784. else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, CivMalePeds[9][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = CivMalePeds[9][0]; }
  785. else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, CivMalePeds[10][0]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = CivMalePeds[10][0]; }
  786. else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, CivMalePeds[11][0]); SelectCharPlace[playerid] = 12; ChosenSkin[playerid] = CivMalePeds[11][0]; }
  787. else if(SelectCharPlace[playerid] == 12) { SetPlayerSkin(playerid, CivMalePeds[12][0]); SelectCharPlace[playerid] = 13; ChosenSkin[playerid] = CivMalePeds[12][0]; }
  788. else if(SelectCharPlace[playerid] == 13) { SetPlayerSkin(playerid, CivMalePeds[13][0]); SelectCharPlace[playerid] = 14; ChosenSkin[playerid] = CivMalePeds[13][0]; }
  789. else if(SelectCharPlace[playerid] == 14) { SetPlayerSkin(playerid, CivMalePeds[14][0]); SelectCharPlace[playerid] = 15; ChosenSkin[playerid] = CivMalePeds[14][0]; }
  790. else if(SelectCharPlace[playerid] == 15) { SetPlayerSkin(playerid, CivMalePeds[15][0]); SelectCharPlace[playerid] = 16; ChosenSkin[playerid] = CivMalePeds[15][0]; }
  791. else if(SelectCharPlace[playerid] == 16) { SetPlayerSkin(playerid, CivMalePeds[16][0]); SelectCharPlace[playerid] = 17; ChosenSkin[playerid] = CivMalePeds[16][0]; }
  792. else if(SelectCharPlace[playerid] == 17) { SetPlayerSkin(playerid, CivMalePeds[17][0]); SelectCharPlace[playerid] = 18; ChosenSkin[playerid] = CivMalePeds[17][0]; }
  793. else if(SelectCharPlace[playerid] == 18) { SetPlayerSkin(playerid, CivMalePeds[18][0]); SelectCharPlace[playerid] = 19; ChosenSkin[playerid] = CivMalePeds[18][0]; }
  794. else if(SelectCharPlace[playerid] == 19) { SetPlayerSkin(playerid, CivMalePeds[19][0]); SelectCharPlace[playerid] = 20; ChosenSkin[playerid] = CivMalePeds[19][0]; }
  795. else if(SelectCharPlace[playerid] == 20) { SetPlayerSkin(playerid, CivMalePeds[20][0]); SelectCharPlace[playerid] = 21; ChosenSkin[playerid] = CivMalePeds[20][0]; }
  796. else if(SelectCharPlace[playerid] == 21) { SetPlayerSkin(playerid, CivMalePeds[21][0]); SelectCharPlace[playerid] = 22; ChosenSkin[playerid] = CivMalePeds[21][0]; }
  797. else if(SelectCharPlace[playerid] == 22) { SetPlayerSkin(playerid, CivMalePeds[22][0]); SelectCharPlace[playerid] = 23; ChosenSkin[playerid] = CivMalePeds[22][0]; }
  798. else if(SelectCharPlace[playerid] == 23) { SetPlayerSkin(playerid, CivMalePeds[23][0]); SelectCharPlace[playerid] = 24; ChosenSkin[playerid] = CivMalePeds[23][0]; }
  799. else if(SelectCharPlace[playerid] == 24) { SetPlayerSkin(playerid, CivMalePeds[24][0]); SelectCharPlace[playerid] = 25; ChosenSkin[playerid] = CivMalePeds[24][0]; }
  800. else if(SelectCharPlace[playerid] == 25) { SetPlayerSkin(playerid, CivMalePeds[25][0]); SelectCharPlace[playerid] = 26; ChosenSkin[playerid] = CivMalePeds[25][0]; }
  801. else if(SelectCharPlace[playerid] == 26) { SetPlayerSkin(playerid, CivMalePeds[26][0]); SelectCharPlace[playerid] = 27; ChosenSkin[playerid] = CivMalePeds[26][0]; }
  802. else if(SelectCharPlace[playerid] == 27) { SetPlayerSkin(playerid, CivMalePeds[27][0]); SelectCharPlace[playerid] = 28; ChosenSkin[playerid] = CivMalePeds[27][0]; }
  803. else if(SelectCharPlace[playerid] == 28) { SetPlayerSkin(playerid, CivMalePeds[28][0]); SelectCharPlace[playerid] = 29; ChosenSkin[playerid] = CivMalePeds[28][0]; }
  804. else if(SelectCharPlace[playerid] == 29) { SetPlayerSkin(playerid, CivMalePeds[29][0]); SelectCharPlace[playerid] = 30; ChosenSkin[playerid] = CivMalePeds[29][0]; }
  805. else if(SelectCharPlace[playerid] == 30) { SetPlayerSkin(playerid, CivMalePeds[30][0]); SelectCharPlace[playerid] = 31; ChosenSkin[playerid] = CivMalePeds[30][0]; }
  806. else if(SelectCharPlace[playerid] == 31) { SetPlayerSkin(playerid, CivMalePeds[31][0]); SelectCharPlace[playerid] = 32; ChosenSkin[playerid] = CivMalePeds[31][0]; }
  807. else if(SelectCharPlace[playerid] == 32) { SetPlayerSkin(playerid, CivMalePeds[32][0]); SelectCharPlace[playerid] = 33; ChosenSkin[playerid] = CivMalePeds[32][0]; }
  808. else if(SelectCharPlace[playerid] == 33) { SetPlayerSkin(playerid, CivMalePeds[33][0]); SelectCharPlace[playerid] = 34; ChosenSkin[playerid] = CivMalePeds[33][0]; }
  809. else if(SelectCharPlace[playerid] == 34) { SetPlayerSkin(playerid, CivMalePeds[34][0]); SelectCharPlace[playerid] = 35; ChosenSkin[playerid] = CivMalePeds[34][0]; }
  810. else if(SelectCharPlace[playerid] == 35) { SetPlayerSkin(playerid, CivMalePeds[35][0]); SelectCharPlace[playerid] = 36; ChosenSkin[playerid] = CivMalePeds[35][0]; }
  811. else if(SelectCharPlace[playerid] == 36) { SetPlayerSkin(playerid, CivMalePeds[36][0]); SelectCharPlace[playerid] = 37; ChosenSkin[playerid] = CivMalePeds[36][0]; }
  812. else if(SelectCharPlace[playerid] == 37) { SetPlayerSkin(playerid, CivMalePeds[37][0]); SelectCharPlace[playerid] = 38; ChosenSkin[playerid] = CivMalePeds[37][0]; }
  813. else if(SelectCharPlace[playerid] == 38) { SetPlayerSkin(playerid, CivMalePeds[38][0]); SelectCharPlace[playerid] = 39; ChosenSkin[playerid] = CivMalePeds[38][0]; }
  814. else if(SelectCharPlace[playerid] == 39) { SetPlayerSkin(playerid, CivMalePeds[39][0]); SelectCharPlace[playerid] = 40; ChosenSkin[playerid] = CivMalePeds[39][0]; }
  815. else if(SelectCharPlace[playerid] == 40) { SetPlayerSkin(playerid, CivMalePeds[40][0]); SelectCharPlace[playerid] = 41; ChosenSkin[playerid] = CivMalePeds[40][0]; }
  816. else if(SelectCharPlace[playerid] == 41) { SetPlayerSkin(playerid, CivMalePeds[41][0]); SelectCharPlace[playerid] = 42; ChosenSkin[playerid] = CivMalePeds[41][0]; }
  817. else if(SelectCharPlace[playerid] == 42) { SetPlayerSkin(playerid, CivMalePeds[42][0]); SelectCharPlace[playerid] = 43; ChosenSkin[playerid] = CivMalePeds[42][0]; }
  818. else if(SelectCharPlace[playerid] == 43) { SetPlayerSkin(playerid, CivMalePeds[43][0]); SelectCharPlace[playerid] = 44; ChosenSkin[playerid] = CivMalePeds[43][0]; }
  819. else if(SelectCharPlace[playerid] == 44) { SetPlayerSkin(playerid, CivMalePeds[44][0]); SelectCharPlace[playerid] = 45; ChosenSkin[playerid] = CivMalePeds[44][0]; }
  820. else if(SelectCharPlace[playerid] == 45) { SetPlayerSkin(playerid, CivMalePeds[45][0]); SelectCharPlace[playerid] = 46; ChosenSkin[playerid] = CivMalePeds[45][0]; }
  821. else if(SelectCharPlace[playerid] == 46) { SetPlayerSkin(playerid, CivMalePeds[46][0]); SelectCharPlace[playerid] = 47; ChosenSkin[playerid] = CivMalePeds[46][0]; }
  822. else if(SelectCharPlace[playerid] == 47) { SetPlayerSkin(playerid, CivMalePeds[47][0]); SelectCharPlace[playerid] = 48; ChosenSkin[playerid] = CivMalePeds[47][0]; }
  823. else if(SelectCharPlace[playerid] == 48) { SetPlayerSkin(playerid, CivMalePeds[48][0]); SelectCharPlace[playerid] = 49; ChosenSkin[playerid] = CivMalePeds[48][0]; }
  824. else if(SelectCharPlace[playerid] == 49) { SetPlayerSkin(playerid, CivMalePeds[49][0]); SelectCharPlace[playerid] = 50; ChosenSkin[playerid] = CivMalePeds[49][0]; }
  825. else if(SelectCharPlace[playerid] == 50) { SetPlayerSkin(playerid, CivMalePeds[50][0]); SelectCharPlace[playerid] = 51; ChosenSkin[playerid] = CivMalePeds[50][0]; }
  826. else if(SelectCharPlace[playerid] == 51) { SetPlayerSkin(playerid, CivMalePeds[51][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = CivMalePeds[51][0]; }
  827. }
  828. case 30: //Female civilian (by Ellis)
  829. {
  830. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, CivFemalePeds[1][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = CivFemalePeds[1][0]; }
  831. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, CivFemalePeds[2][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = CivFemalePeds[2][0]; }
  832. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, CivFemalePeds[3][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = CivFemalePeds[3][0]; }
  833. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, CivFemalePeds[4][0]); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = CivFemalePeds[4][0]; }
  834. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, CivFemalePeds[5][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = CivFemalePeds[5][0]; }
  835. else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, CivFemalePeds[6][0]); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = CivFemalePeds[6][0]; }
  836. else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, CivFemalePeds[7][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] = CivFemalePeds[7][0]; }
  837. else if(SelectCharPlace[playerid] == 8) { SetPlayerSkin(playerid, CivFemalePeds[8][0]); SelectCharPlace[playerid] = 9; ChosenSkin[playerid] = CivFemalePeds[8][0]; }
  838. else if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid, CivFemalePeds[9][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] = CivFemalePeds[9][0]; }
  839. else if(SelectCharPlace[playerid] == 10) { SetPlayerSkin(playerid, CivFemalePeds[10][0]); SelectCharPlace[playerid] = 11; ChosenSkin[playerid] = CivFemalePeds[10][0]; }
  840. else if(SelectCharPlace[playerid] == 11) { SetPlayerSkin(playerid, CivFemalePeds[11][0]); SelectCharPlace[playerid] = 12; ChosenSkin[playerid] = CivFemalePeds[11][0]; }
  841. else if(SelectCharPlace[playerid] == 12) { SetPlayerSkin(playerid, CivFemalePeds[12][0]); SelectCharPlace[playerid] = 13; ChosenSkin[playerid] = CivFemalePeds[12][0]; }
  842. else if(SelectCharPlace[playerid] == 13) { SetPlayerSkin(playerid, CivFemalePeds[13][0]); SelectCharPlace[playerid] = 14; ChosenSkin[playerid] = CivFemalePeds[13][0]; }
  843. else if(SelectCharPlace[playerid] == 14) { SetPlayerSkin(playerid, CivFemalePeds[14][0]); SelectCharPlace[playerid] = 15; ChosenSkin[playerid] = CivFemalePeds[14][0]; }
  844. else if(SelectCharPlace[playerid] == 15) { SetPlayerSkin(playerid, CivFemalePeds[15][0]); SelectCharPlace[playerid] = 16; ChosenSkin[playerid] = CivFemalePeds[15][0]; }
  845. else if(SelectCharPlace[playerid] == 16) { SetPlayerSkin(playerid, CivFemalePeds[16][0]); SelectCharPlace[playerid] = 17; ChosenSkin[playerid] = CivFemalePeds[16][0]; }
  846. else if(SelectCharPlace[playerid] == 17) { SetPlayerSkin(playerid, CivFemalePeds[17][0]); SelectCharPlace[playerid] = 18; ChosenSkin[playerid] = CivFemalePeds[17][0]; }
  847. else if(SelectCharPlace[playerid] == 18) { SetPlayerSkin(playerid, CivFemalePeds[18][0]); SelectCharPlace[playerid] = 19; ChosenSkin[playerid] = CivFemalePeds[18][0]; }
  848. else if(SelectCharPlace[playerid] == 19) { SetPlayerSkin(playerid, CivFemalePeds[19][0]); SelectCharPlace[playerid] = 20; ChosenSkin[playerid] = CivFemalePeds[19][0]; }
  849. else if(SelectCharPlace[playerid] == 20) { SetPlayerSkin(playerid, CivFemalePeds[20][0]); SelectCharPlace[playerid] = 21; ChosenSkin[playerid] = CivFemalePeds[20][0]; }
  850. else if(SelectCharPlace[playerid] == 21) { SetPlayerSkin(playerid, CivFemalePeds[21][0]); SelectCharPlace[playerid] = 22; ChosenSkin[playerid] = CivFemalePeds[21][0]; }
  851. else if(SelectCharPlace[playerid] == 22) { SetPlayerSkin(playerid, CivFemalePeds[22][0]); SelectCharPlace[playerid] = 23; ChosenSkin[playerid] = CivFemalePeds[22][0]; }
  852. else if(SelectCharPlace[playerid] == 23) { SetPlayerSkin(playerid, CivFemalePeds[23][0]); SelectCharPlace[playerid] = 24; ChosenSkin[playerid] = CivFemalePeds[23][0]; }
  853. else if(SelectCharPlace[playerid] == 24) { SetPlayerSkin(playerid, CivFemalePeds[24][0]); SelectCharPlace[playerid] = 25; ChosenSkin[playerid] = CivFemalePeds[24][0]; }
  854. else if(SelectCharPlace[playerid] == 25) { SetPlayerSkin(playerid, CivFemalePeds[25][0]); SelectCharPlace[playerid] = 26; ChosenSkin[playerid] = CivFemalePeds[25][0]; }
  855. else if(SelectCharPlace[playerid] == 26) { SetPlayerSkin(playerid, CivFemalePeds[26][0]); SelectCharPlace[playerid] = 27; ChosenSkin[playerid] = CivFemalePeds[26][0]; }
  856. else if(SelectCharPlace[playerid] == 27) { SetPlayerSkin(playerid, CivFemalePeds[27][0]); SelectCharPlace[playerid] = 28; ChosenSkin[playerid] = CivFemalePeds[27][0]; }
  857. else if(SelectCharPlace[playerid] == 28) { SetPlayerSkin(playerid, CivFemalePeds[28][0]); SelectCharPlace[playerid] = 29; ChosenSkin[playerid] = CivFemalePeds[28][0]; }
  858. else if(SelectCharPlace[playerid] == 29) { SetPlayerSkin(playerid, CivFemalePeds[29][0]); SelectCharPlace[playerid] = 30; ChosenSkin[playerid] = CivFemalePeds[29][0]; }
  859. else if(SelectCharPlace[playerid] == 30) { SetPlayerSkin(playerid, CivFemalePeds[30][0]); SelectCharPlace[playerid] = 31; ChosenSkin[playerid] = CivFemalePeds[30][0]; }
  860. else if(SelectCharPlace[playerid] == 31) { SetPlayerSkin(playerid, CivFemalePeds[31][0]); SelectCharPlace[playerid] = 32; ChosenSkin[playerid] = CivFemalePeds[31][0]; }
  861. else if(SelectCharPlace[playerid] == 32) { SetPlayerSkin(playerid, CivFemalePeds[32][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = CivFemalePeds[32][0]; }
  862. }
  863.  
  864. }
  865. return 0;
  866. }
  867. else if ((strcmp("done", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("done")))
  868. {
  869. if(ChangePos2[playerid][1] == 1)
  870. {
  871. SafeSetPlayerInterior(playerid, ChangePos2[playerid][0]);
  872. SafeSetPlayerPos(playerid, ChangePos[playerid][0],ChangePos[playerid][1],ChangePos[playerid][2]);
  873. ChangePos2[playerid][1] = 0;
  874. //return 0;
  875. }
  876. PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
  877. PlayerInfo[playerid][pChar] = ChosenSkin[playerid];
  878. SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel],0.0,0.0,0.0,0,0,0,0,0,0,0);
  879. gTeam[playerid] = PlayerInfo[playerid][pTeam];
  880. SetPlayerToTeamColor(playerid);
  881. MedicBill[playerid] = 0;
  882. SetPlayerSpawn(playerid);
  883. SetCameraBehindPlayer(playerid);
  884. SelectCharPlace[playerid] = 0;
  885. SelectCharID[playerid] = 0;
  886. SelectChar[playerid] = 0;
  887. SetTimerEx("backtoclothes", 500, false, "i", playerid);
  888. TogglePlayerControllable(playerid, 1);
  889. return 0;
  890. }
  891. else
  892. {
  893. SendClientMessage(playerid, COLOR_WHITE, "* Use 'next', or 'done'.");
  894. return 0;
  895. }
  896. }
  897. if(RegistrationStep[playerid] > 0)
  898. {
  899. if(RegistrationStep[playerid] == 1)
  900. {
  901. new idx;
  902. tmp = strtok(text, idx);
  903. if((strcmp("barbat", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("barbat")))
  904. {
  905. PlayerInfo[playerid][pSex] = 1;
  906. SendClientMessage(playerid, COLOR_YELLOW2, "Ok, deci sunteti {3344F5}Barbat.");
  907. SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Care este data de nastere? {20C0F5}(Foloseste dd/mm/yyyy)");
  908. new rand = random(sizeof(RandomMaleSkins));
  909. SetPlayerSkin(playerid, RandomMaleSkins[rand][0]);
  910. RegistrationStep[playerid] = 2;
  911. return 0;
  912. }
  913. else if((strcmp("femeie", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("femeie")))
  914. {
  915. PlayerInfo[playerid][pSex] = 2;
  916. SendClientMessage(playerid, COLOR_YELLOW2, "Ok, deci sunteti {FF00DD}Femeie.");
  917. SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Care este data de nastere? {20C0F5}(Foloseste dd/mm/yyyy)");
  918. new rand = random(sizeof(RandomFemaleSkins));
  919. SetPlayerSkin(playerid, RandomFemaleSkins[rand][0]);
  920. RegistrationStep[playerid] = 2;
  921. return 0;
  922. }
  923. else
  924. {
  925. SendClientMessage(playerid, COLOR_LIGHTRED, " {20C0F5}Sunteti {3344F5}Barbat {20C0F5}sau {FF00DD}Femeie {20C0F5}? (Scrieti ce sunteti).");
  926. }
  927. return 0;
  928. }
  929. else if(RegistrationStep[playerid] == 2)
  930. {
  931. new year, month,day;
  932. getdate(year, month, day);
  933. new DateInfo[3][20];
  934. split(text, DateInfo, '/');
  935. if(year - strvalEx(DateInfo[2]) > 100 || strvalEx(DateInfo[2]) < 1 || strvalEx(DateInfo[2]) >= year)
  936. {
  937. SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Care este data de nastere? {20C0F5}(Folosoto dd/mm/yyyy)");
  938. return 0;
  939. }
  940. new check = year - strvalEx(DateInfo[2]);
  941. if(check == year)
  942. {
  943. SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Care este data de nastere? {20C0F5}(Folosoto dd/mm/yyyy)");
  944. return 0;
  945. }
  946. if(strvalEx(DateInfo[1]) > month)
  947. {
  948. check -= 1;
  949. }
  950. else if(strvalEx(DateInfo[1]) == month && strval(DateInfo[0]) > day)
  951. {
  952. check -= 1;
  953. }
  954. PlayerInfo[playerid][pAge] = check;
  955. format(string, sizeof(string), "Ok, deci aveti %d ani.",PlayerInfo[playerid][pAge]);
  956. SendClientMessage(playerid, COLOR_YELLOW2, string);
  957. RegistrationStep[playerid] = 3;
  958. SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Din ce Tara sunteti? {20C0F5}(Scrieti: America, Europa, Asia sau Africa)");
  959. return 0;
  960. }
  961. else if(RegistrationStep[playerid] == 3)
  962. {
  963. new idx;
  964. tmp = strtok(text, idx);
  965. if((strcmp("america", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("america")))
  966. {
  967. PlayerInfo[playerid][pOrigin] = 1;
  968. SendClientMessage(playerid, COLOR_YELLOW2, "Ok, deci sunteti din America.");
  969. SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Va multumesc pentru completarea tuturor informatiilor.");
  970. SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}În cazul în care doriti sa continuati cu un Tutorial NOU Scrieti: /tutorial..");
  971. RegistrationStep[playerid] = 0;
  972. PlayerInfo[playerid][pTut] = 1;
  973. PlayerInfo[playerid][pPos_x] = 1612.324;
  974. PlayerInfo[playerid][pPos_y] = -2330.167;
  975. PlayerInfo[playerid][pPos_z] = 13.5469;
  976. MedicBill[playerid] = 0;
  977. SetPlayerSpawn(playerid);
  978. TogglePlayerControllable(playerid, 1);
  979. SafeGivePlayerMoney(playerid, 500);
  980. return 0;
  981. }
  982. else if((strcmp("europa", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("europa")))
  983. {
  984. PlayerInfo[playerid][pOrigin] = 2;
  985. SendClientMessage(playerid, COLOR_YELLOW2, "Ok, deci sunteti din Europa.");
  986. SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Va multumesc pentru completarea tuturor informatiilor.");
  987. SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}În cazul în care doriti sa continuati cu un Tutorial NOU Scrieti: /tutorial..");
  988. RegistrationStep[playerid] = 0;
  989. PlayerInfo[playerid][pTut] = 1;
  990. PlayerInfo[playerid][pPos_x] = 1612.324;
  991. PlayerInfo[playerid][pPos_y] = -2330.167;
  992. PlayerInfo[playerid][pPos_z] = 13.5469;
  993. MedicBill[playerid] = 0;
  994. SetPlayerSpawn(playerid);
  995. TogglePlayerControllable(playerid, 1);
  996. SafeGivePlayerMoney(playerid, 500);
  997. return 0;
  998. }
  999. else if((strcmp("asia", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("asia")))
  1000. {
  1001. PlayerInfo[playerid][pOrigin] = 3;
  1002. SendClientMessage(playerid, COLOR_YELLOW2, "Ok, deci sunteti din Asia.");
  1003. SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Va multumesc pentru completarea tuturor informatiilor.");
  1004. SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}În cazul în care doriti sa continuati cu un Tutorial NOU Scrieti: /tutorial..");
  1005. RegistrationStep[playerid] = 0;
  1006. PlayerInfo[playerid][pTut] = 1;
  1007. PlayerInfo[playerid][pPos_x] = 1612.324;
  1008. PlayerInfo[playerid][pPos_y] = -2330.167;
  1009. PlayerInfo[playerid][pPos_z] = 13.5469;
  1010. MedicBill[playerid] = 0;
  1011. SetPlayerSpawn(playerid);
  1012. TogglePlayerControllable(playerid, 1);
  1013. SafeGivePlayerMoney(playerid, 500);
  1014. return 0;
  1015. }
  1016. else if((strcmp("africa", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("africa")))
  1017. {
  1018. PlayerInfo[playerid][pOrigin] = 4;
  1019. SendClientMessage(playerid, COLOR_YELLOW2, "Ok, deci sunteti din Africa.");
  1020. SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Va multumesc pentru completarea tuturor informatiilor.");
  1021. SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}În cazul în care doriti sa continuati cu un Tutorial NOU Scrieti: /tutorial..");
  1022. RegistrationStep[playerid] = 0;
  1023. PlayerInfo[playerid][pTut] = 1;
  1024. PlayerInfo[playerid][pPos_x] = 1612.324;
  1025. PlayerInfo[playerid][pPos_y] = -2330.167;
  1026. PlayerInfo[playerid][pPos_z] = 13.5469;
  1027. MedicBill[playerid] = 0;
  1028. SetPlayerSpawn(playerid);
  1029. TogglePlayerControllable(playerid, 1);
  1030. SafeGivePlayerMoney(playerid, 500);
  1031. return 0;
  1032. }
  1033. else
  1034. {
  1035. SendClientMessage(playerid, COLOR_LIGHTRED, " {FF4A4A}Din ce Tara sunteti? {20C0F5}(Scrieti: America, Europa, Asia sau Africa)");
  1036. }
  1037. return 0;
  1038. }
  1039. return 0;
  1040. }
  1041. if(MarriageCeremoney[playerid] > 0)
  1042. {
  1043. new idx;
  1044. tmp = strtok(text, idx);
  1045. if ((strcmp("yes", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("yes")))
  1046. {
  1047. if(GotProposedBy[playerid] < 999)
  1048. {
  1049. if(IsPlayerConnected(GotProposedBy[playerid]))
  1050. {
  1051. GetPlayerName(playerid, sendername, sizeof(sendername));
  1052. GetPlayerName(GotProposedBy[playerid], giveplayer, sizeof(giveplayer));
  1053. format(string, sizeof(string), "Priest: %s do you take %s as your lovely Wife? (type 'yes', anything else will reject the Marriage).", giveplayer,sendername);
  1054. SendClientMessage(GotProposedBy[playerid], COLOR_WHITE, string);
  1055. MarriageCeremoney[GotProposedBy[playerid]] = 1;
  1056. MarriageCeremoney[playerid] = 0;
  1057. GotProposedBy[playerid] = 999;
  1058. return 1;
  1059. }
  1060. else
  1061. {
  1062. MarriageCeremoney[playerid] = 0;
  1063. GotProposedBy[playerid] = 999;
  1064. return 0;
  1065. }
  1066. }
  1067. else if(ProposedTo[playerid] < 999)
  1068. {
  1069. if(IsPlayerConnected(ProposedTo[playerid]))
  1070. {
  1071. GetPlayerName(playerid, sendername, sizeof(sendername));
  1072. GetPlayerName(ProposedTo[playerid], giveplayer, sizeof(giveplayer));
  1073. if(PlayerInfo[playerid][pSex] == 1 && PlayerInfo[ProposedTo[playerid]][pSex] == 2)
  1074. {
  1075. format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Wife, you may kiss the Bride.", sendername, giveplayer);
  1076. SendClientMessage(playerid, COLOR_WHITE, string);
  1077. format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Wife, you may kiss the Groom.", giveplayer, sendername);
  1078. SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
  1079. format(string, sizeof(string), "Marriage News: We have a new lovely couple, %s & %s have been married.", sendername, giveplayer);
  1080. OOCNews(COLOR_WHITE, string);
  1081. }
  1082. else if(PlayerInfo[playerid][pSex] == 1 && PlayerInfo[ProposedTo[playerid]][pSex] == 1)
  1083. {
  1084. format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Husband, you may kiss the Bride.", sendername, giveplayer);
  1085. SendClientMessage(playerid, COLOR_WHITE, string);
  1086. format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Husband & Husband, you may kiss the Groom.", giveplayer, sendername);
  1087. SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
  1088. format(string, sizeof(string), "Marriage News: We have a new Gay couple, %s & %s have been married.", sendername, giveplayer);
  1089. OOCNews(COLOR_WHITE, string);
  1090. }
  1091. else if(PlayerInfo[playerid][pSex] == 2 && PlayerInfo[ProposedTo[playerid]][pSex] == 2)
  1092. {
  1093. format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Wife & Wife, you may kiss the Bride.", sendername, giveplayer);
  1094. SendClientMessage(playerid, COLOR_WHITE, string);
  1095. format(string, sizeof(string), "Priest: %s and %s i pronounce you now...Wife & Wife, you may kiss the Groom.", giveplayer, sendername);
  1096. SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
  1097. format(string, sizeof(string), "Marriage News: We have a new Lesbian couple, %s & %s have been married.", sendername, giveplayer);
  1098. OOCNews(COLOR_WHITE, string);
  1099. }
  1100. //MarriageCeremoney[ProposedTo[playerid]] = 1;
  1101. MarriageCeremoney[ProposedTo[playerid]] = 0;
  1102. MarriageCeremoney[playerid] = 0;
  1103. format(string, sizeof(string), "%s", sendername);
  1104. strmid(PlayerInfo[ProposedTo[playerid]][pMarriedTo], string, 0, strlen(string), 255);
  1105. format(string, sizeof(string), "%s", giveplayer);
  1106. strmid(PlayerInfo[playerid][pMarriedTo], string, 0, strlen(string), 255);
  1107. SafeGivePlayerMoney(playerid, - 20000);
  1108. PlayerInfo[playerid][pMarried] = 1;
  1109. PlayerInfo[ProposedTo[playerid]][pMarried] = 1;
  1110. PlayerInfo[ProposedTo[playerid]][pPhousekey] = PlayerInfo[playerid][pPhousekey];
  1111. PlayerInfo[ProposedTo[playerid]][pPbiskey] = PlayerInfo[playerid][pPbiskey];
  1112. ProposedTo[playerid] = 999;
  1113. MarriageCeremoney[playerid] = 0;
  1114. return 1;
  1115. }
  1116. else
  1117. {
  1118. MarriageCeremoney[playerid] = 0;
  1119. ProposedTo[playerid] = 999;
  1120. return 0;
  1121. }
  1122. }
  1123. }
  1124. else
  1125. {
  1126. if(GotProposedBy[playerid] < 999)
  1127. {
  1128. if(IsPlayerConnected(GotProposedBy[playerid]))
  1129. {
  1130. GetPlayerName(playerid, sendername, sizeof(sendername));
  1131. GetPlayerName(GotProposedBy[playerid], giveplayer, sizeof(giveplayer));
  1132. format(string, sizeof(string), "* You didn't want to Marry %s, no 'yes' was said.",giveplayer);
  1133. SendClientMessage(playerid, COLOR_YELLOW, string);
  1134. format(string, sizeof(string), "* %s did't want to Marry you, no 'yes' was said.",sendername);
  1135. SendClientMessage(GotProposedBy[playerid], COLOR_YELLOW, string);
  1136. return 0;
  1137. }
  1138. else
  1139. {
  1140. MarriageCeremoney[playerid] = 0;
  1141. GotProposedBy[playerid] = 999;
  1142. return 0;
  1143. }
  1144. }
  1145. else if(ProposedTo[playerid] < 999)
  1146. {
  1147. if(IsPlayerConnected(ProposedTo[playerid]))
  1148. {
  1149. GetPlayerName(playerid, sendername, sizeof(sendername));
  1150. GetPlayerName(ProposedTo[playerid], giveplayer, sizeof(giveplayer));
  1151. format(string, sizeof(string), "* You didn't want to Marry %s, no 'yes' was said.",giveplayer);
  1152. SendClientMessage(playerid, COLOR_YELLOW, string);
  1153. format(string, sizeof(string), "* %s did't want to Marry you, no 'yes' was said.",sendername);
  1154. SendClientMessage(ProposedTo[playerid], COLOR_YELLOW, string);
  1155. return 0;
  1156. }
  1157. else
  1158. {
  1159. MarriageCeremoney[playerid] = 0;
  1160. ProposedTo[playerid] = 999;
  1161. return 0;
  1162. }
  1163. }
  1164. }
  1165. return 0;
  1166. }
  1167. if(WritingPaper[playerid] > 0)
  1168. {
  1169. new line;
  1170. new nstring[128];
  1171. new idx;
  1172. new length = strlen(text);
  1173. while ((idx < length) && (text[idx] <= ' '))
  1174. {
  1175. idx++;
  1176. }
  1177. new offset = idx;
  1178. new result[64];
  1179. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  1180. {
  1181. result[idx - offset] = text[idx];
  1182. idx++;
  1183. }
  1184. result[idx - offset] = EOS;
  1185. if(!strlen(result))
  1186. {
  1187. if(WritingLine[playerid] == 1) { SendClientMessage(playerid, COLOR_GRAD2, "* Please type in the Title of your Newspaper."); }
  1188. else { SendClientMessage(playerid, COLOR_LIGHTRED, "* Please type in a Text Line of your Newspaper."); }
  1189. return 0;
  1190. }
  1191. format(nstring, sizeof(nstring), "%s", text);
  1192. switch(WritingLine[playerid])
  1193. {
  1194. case 1:
  1195. {
  1196. new fstring[MAX_PLAYER_NAME];
  1197. GetPlayerName(playerid, sendername, sizeof(sendername));
  1198. format(fstring, sizeof(fstring), "%s", sendername);
  1199. strmid(PaperInfo[WritingPaperNumber[playerid]][PaperMaker], fstring, 0, strlen(fstring), 255);
  1200. strmid(PaperInfo[WritingPaperNumber[playerid]][PaperTitle], nstring, 0, strlen(nstring), 255);
  1201. line = 0; WritingLine[playerid] = 2;
  1202. SendClientMessage(playerid, COLOR_LIGHTRED, "* Now you can write down the News Lines, 7 remaining.");
  1203. }
  1204. case 2:
  1205. {
  1206. strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText1], nstring, 0, strlen(nstring), 255);
  1207. line = 1; WritingLine[playerid] = 3;
  1208. }
  1209. case 3:
  1210. {
  1211. strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText2], nstring, 0, strlen(nstring), 255);
  1212. line = 2; WritingLine[playerid] = 4;
  1213. }
  1214. case 4:
  1215. {
  1216. strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText3], nstring, 0, strlen(nstring), 255);
  1217. line = 3; WritingLine[playerid] = 5;
  1218. }
  1219. case 5:
  1220. {
  1221. strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText4], nstring, 0, strlen(nstring), 255);
  1222. line = 4; WritingLine[playerid] = 6;
  1223. }
  1224. case 6:
  1225. {
  1226. strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText5], nstring, 0, strlen(nstring), 255);
  1227. line = 5; WritingLine[playerid] = 7;
  1228. }
  1229. case 7:
  1230. {
  1231. strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText6], nstring, 0, strlen(nstring), 255);
  1232. line = 6; WritingLine[playerid] = 8;
  1233. }
  1234. case 8:
  1235. {
  1236. strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText7], nstring, 0, strlen(nstring), 255);
  1237. PaperInfo[WritingPaperNumber[playerid]][PaperUsed] = 1;
  1238. SavePapers();
  1239. line = 7; WritingLine[playerid] = 0; WritingPaper[playerid] = 0; WritingPaperNumber[playerid] = 999;
  1240. }
  1241. }
  1242. if(line > 0)
  1243. {
  1244. format(string, sizeof(string), "* You wrote Line %d of the Newspaper.", line);
  1245. SendClientMessage(playerid, COLOR_WHITE, string);
  1246. if(line == 7)
  1247. {
  1248. SendClientMessage(playerid, COLOR_WHITE, "* Your Newspaper has been added to the News List (for Paper Boys).");
  1249. }
  1250. }
  1251. return 0;
  1252. }
  1253. if(ConnectedToPC[playerid] == 255)
  1254. {
  1255. new idx;
  1256. tmp = strtok(text, idx);
  1257. if ((strcmp("Contracts", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Contracts")))
  1258. {
  1259. if(PlayerInfo[playerid][pRank] < 4)
  1260. {
  1261. SendClientMessage(playerid, COLOR_GREY, " Only Hitman with Rank 4 or above can search and assign Contracts !");
  1262. return 0;
  1263. }
  1264. SearchingHit(playerid);
  1265. return 0;
  1266. }
  1267. else if ((strcmp("News", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("News")))
  1268. {
  1269. new x_nr[24];
  1270. x_nr = strtok(text, idx);
  1271.  
  1272. if(!strlen(x_nr)) {
  1273. SendClientMessage(playerid, COLOR_WHITE, "|__________________ Hitman Agency News __________________|");
  1274. SendClientMessage(playerid, COLOR_WHITE, "USAGE: News [number] or News delete [number] or News delete all");
  1275. format(string, sizeof(string), "1: %s :: Hitman: %s", News[hAdd1], News[hContact1]);
  1276. SendClientMessage(playerid, COLOR_GREY, string);
  1277. format(string, sizeof(string), "2: %s :: Hitman: %s", News[hAdd2], News[hContact2]);
  1278. SendClientMessage(playerid, COLOR_GREY, string);
  1279. format(string, sizeof(string), "3: %s :: Hitman: %s", News[hAdd3], News[hContact3]);
  1280. SendClientMessage(playerid, COLOR_GREY, string);
  1281. format(string, sizeof(string), "4: %s :: Hitman: %s", News[hAdd4], News[hContact4]);
  1282. SendClientMessage(playerid, COLOR_GREY, string);
  1283. format(string, sizeof(string), "5: %s :: Hitman: %s", News[hAdd5], News[hContact5]);
  1284. SendClientMessage(playerid, COLOR_GREY, string);
  1285. SendClientMessage(playerid, COLOR_WHITE, "|________________________________________________________|");
  1286. return 0;
  1287. }//lets start
  1288. if(strcmp(x_nr,"1",true) == 0)
  1289. {
  1290. if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
  1291. if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
  1292. if(News[hTaken1] == 0)
  1293. {
  1294. GetPlayerName(playerid, sendername, sizeof(sendername));
  1295. if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
  1296. format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd1], string, 0, strlen(string), 255);
  1297. format(string, sizeof(string), "%s",sendername); strmid(News[hContact1], string, 0, strlen(string), 255);
  1298. News[hTaken1] = 1; PlacedNews[playerid] = 1;
  1299. SendClientMessage(playerid, COLOR_WHITE, "* You placed a News Message on the Hitman Agency's News Channel.");
  1300. return 0;
  1301. }
  1302. else
  1303. {
  1304. SendClientMessage(playerid, COLOR_GREY, " Spot 1 is already Taken !");
  1305. return 0;
  1306. }
  1307. }
  1308. else if(strcmp(x_nr,"2",true) == 0)
  1309. {
  1310. if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
  1311. if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
  1312. if(News[hTaken2] == 0)
  1313. {
  1314. GetPlayerName(playerid, sendername, sizeof(sendername));
  1315. if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
  1316. format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd2], string, 0, strlen(string), 255);
  1317. format(string, sizeof(string), "%s",sendername); strmid(News[hContact2], string, 0, strlen(string), 255);
  1318. News[hTaken2] = 1; PlacedNews[playerid] = 1;
  1319. SendClientMessage(playerid, COLOR_WHITE, "* You placed a News Message on the Hitman Agency's News Channel.");
  1320. return 0;
  1321. }
  1322. else
  1323. {
  1324. SendClientMessage(playerid, COLOR_GREY, " Spot 2 is already Taken !");
  1325. return 0;
  1326. }
  1327. }
  1328. else if(strcmp(x_nr,"3",true) == 0)
  1329. {
  1330. if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
  1331. if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
  1332. if(News[hTaken3] == 0)
  1333. {
  1334. GetPlayerName(playerid, sendername, sizeof(sendername));
  1335. if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
  1336. format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd3], string, 0, strlen(string), 255);
  1337. format(string, sizeof(string), "%s",sendername); strmid(News[hContact3], string, 0, strlen(string), 255);
  1338. News[hTaken3] = 1; PlacedNews[playerid] = 1;
  1339. SendClientMessage(playerid, COLOR_WHITE, "* You placed a News Message on the Hitman Agency's News Channel.");
  1340. return 0;
  1341. }
  1342. else
  1343. {
  1344. SendClientMessage(playerid, COLOR_GREY, " Spot 3 is already Taken !");
  1345. return 0;
  1346. }
  1347. }
  1348. else if(strcmp(x_nr,"4",true) == 0)
  1349. {
  1350. if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
  1351. if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
  1352. if(News[hTaken4] == 0)
  1353. {
  1354. GetPlayerName(playerid, sendername, sizeof(sendername));
  1355. if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
  1356. format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd4], string, 0, strlen(string), 255);
  1357. format(string, sizeof(string), "%s",sendername); strmid(News[hContact4], string, 0, strlen(string), 255);
  1358. News[hTaken4] = 1; PlacedNews[playerid] = 1;
  1359. SendClientMessage(playerid, COLOR_WHITE, "* You placed a News Message on the Hitman Agency's News Channel.");
  1360. return 0;
  1361. }
  1362. else
  1363. {
  1364. SendClientMessage(playerid, COLOR_GREY, " Spot 4 is already Taken !");
  1365. return 0;
  1366. }
  1367. }
  1368. else if(strcmp(x_nr,"5",true) == 0)
  1369. {
  1370. if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
  1371. if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
  1372. if(News[hTaken5] == 0)
  1373. {
  1374. GetPlayerName(playerid, sendername, sizeof(sendername));
  1375. if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
  1376. format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd5], string, 0, strlen(string), 255);
  1377. format(string, sizeof(string), "%s",sendername); strmid(News[hContact5], string, 0, strlen(string), 255);
  1378. News[hTaken5] = 1; PlacedNews[playerid] = 1;
  1379. SendClientMessage(playerid, COLOR_WHITE, "* You placed a News Message on the Hitman Agency's News Channel.");
  1380. return 0;
  1381. }
  1382. else
  1383. {
  1384. SendClientMessage(playerid, COLOR_GREY, " Spot 5 is already Taken !");
  1385. return 0;
  1386. }
  1387. }
  1388. else if(strcmp(x_nr,"delete",true) == 0)
  1389. {
  1390. if(PlayerInfo[playerid][pRank] < 4)
  1391. {
  1392. SendClientMessage(playerid, COLOR_GREY, " You must be Rank 4 to delete messages from the News Channel !");
  1393. return 0;
  1394. }
  1395. new string1[MAX_PLAYER_NAME];
  1396. new x_tel[64];
  1397. x_tel = strtok(text, idx);
  1398. if(!strlen(x_tel)) {
  1399. SendClientMessage(playerid, COLOR_WHITE, "USAGE: News delete [number] or News delete all.");
  1400. return 0;
  1401. }
  1402. if(strcmp(x_tel,"1",true) == 0)
  1403. {
  1404. format(string, sizeof(string), "Nothing"); strmid(News[hAdd1], string, 0, strlen(string), 255);
  1405. format(string1, sizeof(string1), "No-one"); strmid(News[hContact1], string1, 0, strlen(string1), 255);
  1406. News[hTaken1] = 0;
  1407. SendClientMessage(playerid, COLOR_WHITE, "* You deleted News Message (1) from the Hitman Agency's News Channel.");
  1408. return 0;
  1409. }
  1410. else if(strcmp(x_tel,"2",true) == 0)
  1411. {
  1412. format(string, sizeof(string), "Nothing"); strmid(News[hAdd2], string, 0, strlen(string), 255);
  1413. format(string1, sizeof(string1), "No-one"); strmid(News[hContact2], string1, 0, strlen(string1), 255);
  1414. News[hTaken2] = 0;
  1415. SendClientMessage(playerid, COLOR_WHITE, "* You deleted News Message (2) from the Hitman Agency's News Channel.");
  1416. return 0;
  1417. }
  1418. else if(strcmp(x_tel,"3",true) == 0)
  1419. {
  1420. format(string, sizeof(string), "Nothing"); strmid(News[hAdd3], string, 0, strlen(string), 255);
  1421. format(string1, sizeof(string1), "No-one"); strmid(News[hContact3], string1, 0, strlen(string1), 255);
  1422. News[hTaken3] = 0;
  1423. SendClientMessage(playerid, COLOR_WHITE, "* You deleted News Message (3) from the Hitman Agency's News Channel.");
  1424. return 0;
  1425. }
  1426. else if(strcmp(x_tel,"4",true) == 0)
  1427. {
  1428. format(string, sizeof(string), "Nothing"); strmid(News[hAdd4], string, 0, strlen(string), 255);
  1429. format(string1, sizeof(string1), "No-one"); strmid(News[hContact4], string1, 0, strlen(string1), 255);
  1430. News[hTaken4] = 0;
  1431. SendClientMessage(playerid, COLOR_WHITE, "* You deleted News Message (4) from the Hitman Agency's News Channel.");
  1432. return 0;
  1433. }
  1434. else if(strcmp(x_tel,"5",true) == 0)
  1435. {
  1436. format(string, sizeof(string), "Nothing"); strmid(News[hAdd5], string, 0, strlen(string), 255);
  1437. format(string1, sizeof(string1), "No-one"); strmid(News[hContact5], string1, 0, strlen(string1), 255);
  1438. News[hTaken5] = 0;
  1439. SendClientMessage(playerid, COLOR_WHITE, "* You deleted News Message (5) from the Hitman Agency's News Channel.");
  1440. return 0;
  1441. }
  1442. else if(strcmp(x_tel,"all",true) == 0)
  1443. {
  1444. format(string, sizeof(string), "Nothing"); strmid(News[hAdd1], string, 0, strlen(string), 255);
  1445. format(string1, sizeof(string1), "No-one"); strmid(News[hContact1], string1, 0, strlen(string1), 255);
  1446. News[hTaken1] = 0;
  1447. format(string, sizeof(string), "Nothing"); strmid(News[hAdd2], string, 0, strlen(string), 255);
  1448. format(string1, sizeof(string1), "No-one"); strmid(News[hContact2], string1, 0, strlen(string1), 255);
  1449. News[hTaken2] = 0;
  1450. format(string, sizeof(string), "Nothing"); strmid(News[hAdd3], string, 0, strlen(string), 255);
  1451. format(string1, sizeof(string1), "No-one"); strmid(News[hContact3], string1, 0, strlen(string1), 255);
  1452. News[hTaken3] = 0;
  1453. format(string, sizeof(string), "Nothing"); strmid(News[hAdd4], string, 0, strlen(string), 255);
  1454. format(string1, sizeof(string1), "No-one"); strmid(News[hContact4], string1, 0, strlen(string1), 255);
  1455. News[hTaken4] = 0;
  1456. format(string, sizeof(string), "Nothing"); strmid(News[hAdd5], string, 0, strlen(string), 255);
  1457. format(string1, sizeof(string1), "No-one"); strmid(News[hContact5], string1, 0, strlen(string1), 255);
  1458. News[hTaken5] = 0;
  1459. SendClientMessage(playerid, COLOR_WHITE, "* You deleted all the News Message from the Hitman Agency's News Channel.");
  1460. return 0;
  1461. }
  1462. else
  1463. {
  1464. SendClientMessage(playerid, COLOR_WHITE, "USAGE: News delete [number] or News delete all.");
  1465. return 0;
  1466. }
  1467. }
  1468. else { return 0; }
  1469. }
  1470. else if ((strcmp("Givehit", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Givehit")))
  1471. {
  1472. if(PlayerInfo[playerid][pRank] < 4)
  1473. {
  1474. SendClientMessage(playerid, COLOR_GREY, " You need Rank 4 to Give Contracts to Hitmans !");
  1475. return 0;
  1476. }
  1477. if(hitfound == 0)
  1478. {
  1479. SendClientMessage(playerid, COLOR_GREY, " There is no Hit Founded yet, use Contracts in the Portable first !");
  1480. return 0;
  1481. }
  1482. tmp = strtok(text, idx);
  1483. if(!strlen(tmp))
  1484. {
  1485. SendClientMessage(playerid, COLOR_GRAD1, "USAGE: Givehit [playerid/PartOfName]");
  1486. return 0;
  1487. }
  1488. //giveplayerid = strval(tmp);
  1489. giveplayerid = ReturnUser(tmp);
  1490. if(IsPlayerConnected(giveplayerid))
  1491. {
  1492. if(giveplayerid != INVALID_PLAYER_ID)
  1493. {
  1494. if(PlayerInfo[giveplayerid][pMember] == 8 || PlayerInfo[giveplayerid][pLeader] == 8)
  1495. {
  1496. if(GoChase[giveplayerid] < 999)
  1497. {
  1498. SendClientMessage(playerid, COLOR_GREY, " That Hitman is already busy with a Contract !");
  1499. return 0;
  1500. }
  1501. if(IsPlayerConnected(hitid))
  1502. {
  1503. GetPlayerName(playerid, sendername, sizeof(sendername));
  1504. GetPlayerName(giveplayerid, giver, sizeof(giver));
  1505. GetPlayerName(hitid, giveplayer, sizeof(giveplayer));
  1506. //format(string, sizeof(string), "* You assigned%s to kill: %s(ID:%d), for $%d.", giver, giveplayer, hitid, PlayerInfo[hitid][pValue]);
  1507. //SendClientMessage(playerid, COLOR_YELLOW, string);
  1508. //format(string, sizeof(string), "* Hitman %s has assigned you to kill: %s(ID:%d), for $%d.", sendername, giveplayer, hitid, PlayerInfo[hitid][pValue]);
  1509. //SendClientMessage(giveplayerid, COLOR_YELLOW, string);
  1510. format(string, sizeof(string), "* Hitman %s, assigned Hitman %s to kill: %s(ID:%d), for $%d.", sendername, giver, giveplayer, hitid, PlayerInfo[hitid][pHeadValue]);
  1511. SendFamilyMessage(8, COLOR_YELLOW, string);
  1512. GoChase[giveplayerid] = hitid;
  1513. GetChased[hitid] = giveplayerid;
  1514. GotHit[hitid] = 1;
  1515. hitid = 0;
  1516. hitfound = 0;
  1517. return 0;
  1518. }
  1519. else
  1520. {
  1521. SendClientMessage(playerid, COLOR_GREY, " The Contracted Person is offline, use Contracts in the Portable again !");
  1522. return 0;
  1523. }
  1524. }
  1525. else
  1526. {
  1527. SendClientMessage(playerid, COLOR_GREY, " That player is not a Hitman !");
  1528. return 0;
  1529. }
  1530. }
  1531. return 0;
  1532. }
  1533. else
  1534. {
  1535. SendClientMessage(playerid, COLOR_GREY, " That Hitman is not Online, or ain't a Hitman !");
  1536. return 0;
  1537. }
  1538. }
  1539. else if ((strcmp("Ranks", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Ranks")))
  1540. {
  1541. SendClientMessage(playerid, COLOR_WHITE, "|__________________ Agency's Ranks __________________|");
  1542. for(new i=0; i < MAX_PLAYERS; i++)
  1543. {
  1544. if(IsPlayerConnected(i))
  1545. {
  1546. if(PlayerInfo[i][pMember] == 8||PlayerInfo[i][pLeader] == 8)
  1547. {
  1548. GetPlayerName(i, giveplayer, sizeof(giveplayer));
  1549. format(string, sizeof(string), "* %s: Rank %d", giveplayer,PlayerInfo[i][pRank]);
  1550. SendClientMessage(playerid, COLOR_GREY, string);
  1551. }
  1552. }
  1553. }
  1554. }
  1555. else if ((strcmp("Order", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Order")))
  1556. {
  1557. if(OrderReady[playerid] > 0)
  1558. {
  1559. SendClientMessage(playerid, COLOR_GREY, " You already Ordered a Package, pick it up at your Head Quarter's Front Door first !");
  1560. return 0;
  1561. }
  1562. tmp = strtok(text, idx);
  1563. if ((strcmp("1", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("1")))
  1564. {
  1565. if(PlayerInfo[playerid][pRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " Your Rank is not high enough to Order that Package !"); return 0; }
  1566. if(GetPlayerMoney(playerid) > 4999)
  1567. {
  1568. SendClientMessage(playerid, COLOR_WHITE, "* You have Ordered Package 1 ($5000), it will be delivered at your Head Quarter's Front Door.");
  1569. OrderReady[playerid] = 1;
  1570. return 0;
  1571. }
  1572. else
  1573. {
  1574. SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !");
  1575. return 0;
  1576. }
  1577. }
  1578. else if ((strcmp("2", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("2")))
  1579. {
  1580. if(PlayerInfo[playerid][pRank] < 2) { SendClientMessage(playerid, COLOR_GREY, " Your Rank is not high enough to Order that Package !"); return 0; }
  1581. if(GetPlayerMoney(playerid) > 5999)
  1582. {
  1583. SendClientMessage(playerid, COLOR_WHITE, "* You have Ordered Package 2 ($6000), it will be delivered at your Head Quarter's Front Door.");
  1584. OrderReady[playerid] = 2;
  1585. return 0;
  1586. }
  1587. else
  1588. {
  1589. SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !");
  1590. return 0;
  1591. }
  1592. }
  1593. else if ((strcmp("3", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("3")))
  1594. {
  1595. if(PlayerInfo[playerid][pRank] < 2) { SendClientMessage(playerid, COLOR_GREY, " Your Rank is not high enough to Order that Package !"); return 0; }
  1596. if(GetPlayerMoney(playerid) > 5999)
  1597. {
  1598. SendClientMessage(playerid, COLOR_WHITE, "* You have Ordered Package 3 ($6000), it will be delivered at your Head Quarter's Front Door.");
  1599. OrderReady[playerid] = 3;
  1600. return 0;
  1601. }
  1602. else
  1603. {
  1604. SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !");
  1605. return 0;
  1606. }
  1607. }
  1608. else if ((strcmp("4", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("4")))
  1609. {
  1610. if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " Your Rank is not high enough to Order that Package !"); return 0; }
  1611. if(GetPlayerMoney(playerid) > 7999)
  1612. {
  1613. SendClientMessage(playerid, COLOR_WHITE, "* You have Ordered Package 4 ($8000), it will be delivered at your Head Quarter's Front Door.");
  1614. OrderReady[playerid] = 4;
  1615. return 0;
  1616. }
  1617. else
  1618. {
  1619. SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !");
  1620. return 0;
  1621. }
  1622. }
  1623. else if ((strcmp("5", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("5")))
  1624. {
  1625. if(PlayerInfo[playerid][pRank] < 3) { SendClientMessage(playerid, COLOR_GREY, " Your Rank is not high enough to Order that Package !"); return 0; }
  1626. if(GetPlayerMoney(playerid) > 7999)
  1627. {
  1628. SendClientMessage(playerid, COLOR_WHITE, "* You have Ordered Package 5 ($8000), it will be delivered at your Head Quarter's Front Door.");
  1629. OrderReady[playerid] = 5;
  1630. return 0;
  1631. }
  1632. else
  1633. {
  1634. SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !");
  1635. return 0;
  1636. }
  1637. }
  1638. else if ((strcmp("6", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("6")))
  1639. {
  1640. if(PlayerInfo[playerid][pRank] < 4) { SendClientMessage(playerid, COLOR_GREY, " Your Rank is not high enough to Order that Package !"); return 0; }
  1641. if(GetPlayerMoney(playerid) > 8499)
  1642. {
  1643. SendClientMessage(playerid, COLOR_WHITE, "* You have Ordered Package 6 ($8500), it will be delivered at your Head Quarter's Front Door.");
  1644. OrderReady[playerid] = 6;
  1645. return 0;
  1646. }
  1647. else
  1648. {
  1649. SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !");
  1650. return 0;
  1651. }
  1652. }
  1653. else if ((strcmp("7", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("7")))
  1654. {
  1655. if(PlayerInfo[playerid][pRank] < 4) { SendClientMessage(playerid, COLOR_GREY, " Your Rank is not high enough to Order that Package !"); return 0; }
  1656. if(GetPlayerMoney(playerid) > 8499)
  1657. {
  1658. SendClientMessage(playerid, COLOR_WHITE, "* You have Ordered Package 7 ($8500), it will be delivered at your Head Quarter's Front Door.");
  1659. OrderReady[playerid] = 7;
  1660. return 0;
  1661. }
  1662. else
  1663. {
  1664. SendClientMessage(playerid, COLOR_GREY," You can't afford that Package !");
  1665. return 0;
  1666. }
  1667. }
  1668. else
  1669. {
  1670. SendClientMessage(playerid, COLOR_WHITE, "|__________________ Available Packages __________________|");
  1671. if(PlayerInfo[playerid][pRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "|(1) ($5000 ) Rank 1 - 5: Knife, Desert Eagle, MP5, Shotgun"); }
  1672. if(PlayerInfo[playerid][pRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "|(2) ($6000 ) Rank 2 - 5: Knife, Desert Eagle, M4, MP5, Shotgun"); }
  1673. if(PlayerInfo[playerid][pRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "|(3) ($6000 ) Rank 2 - 5: Knife, Desert Eagle, AK47, MP5, Shotgun"); }
  1674. if(PlayerInfo[playerid][pRank] >= 3) { SendClientMessage(playerid, COLOR_GREY, "|(4) ($8000) Rank 3 - 5: Knife, Desert Eagle, M4, MP5, Shotgun, Sniper"); }
  1675. if(PlayerInfo[playerid][pRank] >= 3) { SendClientMessage(playerid, COLOR_GREY, "|(5) ($8000) Rank 3 - 5: Knife, Desert Eagle, AK47, MP5, Shotgun, Sniper"); }
  1676. if(PlayerInfo[playerid][pRank] >= 4) { SendClientMessage(playerid, COLOR_GREY, "|(6) ($8500) Rank 4 - 5: Knife, Desert Eagle, M4, MP5, Shotgun, Sniper"); }
  1677. if(PlayerInfo[playerid][pRank] >= 4) { SendClientMessage(playerid, COLOR_GREY, "|(7) ($8500) Rank 4 - 5: Knife, Desert Eagle, AK47, MP5, Shotgun, Sniper"); }
  1678. SendClientMessage(playerid, COLOR_WHITE, "|________________________________________________________|");
  1679. return 0;
  1680. }
  1681. }
  1682. else if ((strcmp("Logout", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Logout")))
  1683. {
  1684. SendClientMessage(playerid, COLOR_WHITE, "* You have shutdowned your Laptop, and Disconnected from your Agency.");
  1685. ConnectedToPC[playerid] = 0;
  1686. return 0;
  1687. }
  1688. else
  1689. {
  1690. SendClientMessage(playerid, COLOR_WHITE, "|___ Hitman Agency ___|");
  1691. SendClientMessage(playerid, COLOR_YELLOW2, "| - News");
  1692. SendClientMessage(playerid, COLOR_YELLOW2, "| - Contracts");
  1693. SendClientMessage(playerid, COLOR_YELLOW2, "| - Givehit");
  1694. SendClientMessage(playerid, COLOR_YELLOW2, "| - Backup");
  1695. SendClientMessage(playerid, COLOR_YELLOW2, "| - Order");
  1696. SendClientMessage(playerid, COLOR_YELLOW2, "| - Ranks");
  1697. SendClientMessage(playerid, COLOR_YELLOW2, "| - Logout");
  1698. SendClientMessage(playerid, COLOR_YELLOW2, "|");
  1699. SendClientMessage(playerid, COLOR_WHITE, "|______________|00:00|");
  1700. return 0;
  1701. }
  1702. return 0;
  1703. }
  1704. if(CallLawyer[playerid] == 111)
  1705. {
  1706. new idx;
  1707. tmp = strtok(text, idx);
  1708. if ((strcmp("yes", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("yes")))
  1709. {
  1710. GetPlayerName(playerid, sendername, sizeof(sendername));
  1711. format(string, sizeof(string), "** %s is in Jail, and needs a Lawyer. Go to the Police Station.", sendername);
  1712. SendJobMessage(2, TEAM_AZTECAS_COLOR, string);
  1713. SendJobMessage(2, TEAM_AZTECAS_COLOR, "* When you are at the Police Station, ask an Officer to approve you with /accept lawyer.");
  1714. SendClientMessage(playerid, COLOR_LIGHTRED, "A message has been sent to all available Lawyers, please wait.");
  1715. WantLawyer[playerid] = 0;
  1716. CallLawyer[playerid] = 0;
  1717. return 0;
  1718. }
  1719. else
  1720. {
  1721. SendClientMessage(playerid, COLOR_LIGHTRED, "There is no Lawyer available to you anymore, Jail Time started.");
  1722. WantLawyer[playerid] = 0;
  1723. CallLawyer[playerid] = 0;
  1724. return 0;
  1725. }
  1726. }
  1727. if(TalkingLive[playerid] != 255)
  1728. {
  1729. GetPlayerName(playerid, sendername, sizeof(sendername));
  1730. if(PlayerInfo[playerid][pJob] == 6)
  1731. {
  1732. format(string, sizeof(string), "LiveNR %s: %s", sendername, text);
  1733. OOCNews(COLOR_LIGHTGREEN, string);
  1734. }
  1735. else
  1736. {
  1737. format(string, sizeof(string), "Live interview %s: %s", sendername, text);
  1738. OOCNews(COLOR_LIGHTGREEN, string);
  1739. }
  1740. return 0;
  1741. }
  1742. if(Mobile[playerid] != 255)
  1743. {
  1744. new idx;
  1745. tmp = strtok(text, idx);
  1746. GetPlayerName(playerid, sendername, sizeof(sendername));
  1747. if(UnidentifedCall[playerid] == 1)
  1748. {
  1749. format(string, sizeof(string), "Stranger Says (cellphone): %s", text);
  1750. }
  1751. else
  1752. {
  1753. format(string, sizeof(string), "%s Says (cellphone): %s", sendername, text);
  1754. }
  1755. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  1756. //printf("callers line %d called %d caller %d",Mobile[Mobile[playerid]],Mobile[playerid],playerid);
  1757. if(Mobile[playerid] == 914)
  1758. {
  1759. if(!strlen(tmp))
  1760. {
  1761. SendClientMessage(playerid, TEAM_CYAN_COLOR, "Dispatch: Sorry I don't understand?");
  1762. return 0;
  1763. }
  1764. new turner[MAX_PLAYER_NAME];
  1765. new wanted[128];
  1766. GetPlayerName(playerid, turner, sizeof(turner));
  1767. SendClientMessage(playerid, TEAM_CYAN_COLOR, "Dispatch: We have alerted all units in the area.");
  1768. SendClientMessage(playerid, TEAM_CYAN_COLOR, "Thank you for reporting this incident");
  1769. format(wanted, sizeof(wanted), "Dispatch: All Units IA: Caller: %s",turner);
  1770. format(wanted, sizeof(wanted), "Dispatch: Incident: %s",text);
  1771. SendRadioMessage(1, TEAM_CYAN_COLOR, wanted);
  1772. SendRadioMessage(2, TEAM_CYAN_COLOR, wanted);
  1773. SendRadioMessage(3, TEAM_CYAN_COLOR, wanted);
  1774. SendRadioMessage(4, TEAM_CYAN_COLOR, wanted);
  1775. SendRadioMessage(12, TEAM_CYAN_COLOR, wanted);
  1776. new Float:trace_x, Float:trace_y, Float:trace_z;
  1777. GetPlayerPos(playerid, trace_x, trace_y, trace_z);
  1778. emdtrace = 1; emdtrace_x = trace_x; emdtrace_y = trace_y; emdtrace_z = trace_z;
  1779. SendClientMessage(playerid, COLOR_SEA, "They Hung Up...");
  1780. Mobile[playerid] = 255;
  1781. return 0;
  1782. }
  1783. if(Mobile[playerid] == 913)
  1784. {
  1785. if(!strlen(tmp))
  1786. {
  1787. SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Sorry i dont understand?");
  1788. return 0;
  1789. }
  1790. if ((strcmp("no", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("no")))
  1791. {
  1792. new turner[MAX_PLAYER_NAME];
  1793. new wanted[128];
  1794. GetPlayerName(playerid, turner, sizeof(turner));
  1795. SendClientMessage(playerid, COLOR_DBLUE, "Police Dispatch: We have alerted all units in the area.");
  1796. SendClientMessage(playerid, COLOR_DBLUE, "Thank you for reporting this crime");
  1797. format(wanted, sizeof(wanted), "HQ: All Units APB: Reporter: %s",turner);
  1798. format(wanted, sizeof(wanted), "HQ: Crime: %s, Suspect: Unknown",PlayerCrime[playerid][pAccusing]);
  1799. SendRadioMessage(1, TEAM_CYAN_COLOR, wanted);
  1800. SendRadioMessage(2, TEAM_CYAN_COLOR, wanted);
  1801. SendRadioMessage(3, TEAM_CYAN_COLOR, wanted);
  1802. new Float:trace_x, Float:trace_y, Float:trace_z;
  1803. GetPlayerPos(playerid, trace_x, trace_y, trace_z);
  1804. pdtrace = 1; pdtrace_x = trace_x; pdtrace_y = trace_y; pdtrace_z = trace_z;
  1805. SendClientMessage(playerid, COLOR_SEA, "They Hung Up...");
  1806. Mobile[playerid] = 255;
  1807. return 0;
  1808. }
  1809. new badguy;
  1810. //badguy = strval(tmp);
  1811. badguy = ReturnUser(tmp);
  1812. if (IsPlayerConnected(badguy))
  1813. {
  1814. if(badguy != INVALID_PLAYER_ID)
  1815. {
  1816. if (gTeam[badguy] == 2 || gTeam[badguy] == 1)
  1817. {
  1818. SendClientMessage(playerid, COLOR_DBLUE, "Police Dispatch: You will have to contact internal affairs. This is an emergency line");
  1819. SendClientMessage(playerid, COLOR_SEA, "They Hung Up...");
  1820. Mobile[playerid] = 255;
  1821. return 0;
  1822. }
  1823. if (WantedPoints[badguy] > 0)
  1824. {
  1825. SendClientMessage(playerid, COLOR_DBLUE, "Police Dispatch: Units are already assigned to that case");
  1826. SendClientMessage(playerid, COLOR_DBLUE, "Thank you for reporting this crime");
  1827. SendClientMessage(playerid, COLOR_SEA, "They Hung Up...");
  1828. Mobile[playerid] = 255;
  1829. return 0;
  1830. }
  1831. if (badguy == playerid)
  1832. {
  1833. SendClientMessage(playerid, COLOR_DBLUE, "Police Dispatch: Dont Fool Around, This is an emergency line.");
  1834. SendClientMessage(playerid, COLOR_SEA, "They Hung Up...");
  1835. Mobile[playerid] = 255;
  1836. return 0;
  1837. }
  1838. SendClientMessage(playerid, COLOR_DBLUE, "Police Dispatch: We have alerted all units in the area.");
  1839. SendClientMessage(playerid, COLOR_DBLUE, "Thank you for reporting this crime");
  1840. new Float:trace_x, Float:trace_y, Float:trace_z;
  1841. GetPlayerPos(playerid, trace_x, trace_y, trace_z);
  1842. pdtrace = 1; pdtrace_x = trace_x; pdtrace_y = trace_y; pdtrace_z = trace_z;
  1843. SendClientMessage(playerid, COLOR_SEA, "They Hung Up...");
  1844. Mobile[playerid] = 255;
  1845. return 0;
  1846. }//invalid id
  1847. return 0;
  1848. }//not connected
  1849. else
  1850. {
  1851. format(string, sizeof(string), "Police Dispatch: I have no Information on %s, are you sure thats the right name?",tmp);
  1852. SendClientMessage(playerid, COLOR_DBLUE, string);
  1853. return 0;
  1854. }
  1855. }
  1856. if(Mobile[playerid] == 912)
  1857. {
  1858. if(!strlen(tmp))
  1859. {
  1860. SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Sorry i dont understand?");
  1861. return 0;
  1862. }
  1863. strmid(PlayerCrime[playerid][pAccusing], text, 0, strlen(text), 255);
  1864. SendClientMessage(playerid, COLOR_DBLUE, "Police HQ: If you know the assailant's name or part of it say it now or just say no.");
  1865. Mobile[playerid] = 913;
  1866. return 0;
  1867. }
  1868. if(Mobile[playerid] == 911)
  1869. {
  1870. if(!strlen(tmp))
  1871. {
  1872. SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Sorry i dont understand, police or paramedic?");
  1873. return 0;
  1874. }
  1875. else if ((strcmp("police", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("police")))
  1876. {
  1877. SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: I am patching you to Police HQ, please hold.");
  1878. Mobile[playerid] = 912;
  1879. SendClientMessage(playerid, COLOR_DBLUE, "HQ: Please give me a short description of the crime and location.");
  1880. return 0;
  1881. }
  1882. else if ((strcmp("paramedic", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("paramedic")))
  1883. {
  1884. SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: I am patching you to Paramedic HQ, please hold.");
  1885. Mobile[playerid] = 914;
  1886. SendClientMessage(playerid, TEAM_CYAN_COLOR, "Dispatch: Please give me a short description of the Incident.");
  1887. return 0;
  1888. }
  1889. else
  1890. {
  1891. SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Sorry I don't understand, police or paramedic?");
  1892. return 0;
  1893. }
  1894. }
  1895. if(Mobile[playerid] == 3900)
  1896. {
  1897. SendFamilyMessage(9, COLOR_GREEN, "You have one new message:");
  1898. GetPlayerName(playerid, sendername, sizeof(sendername));
  1899. format(string, sizeof(string), "[ID:%d] %s says: %s", playerid, sendername, text);
  1900. SendFamilyMessage(9, COLOR_GREEN, string);
  1901. SendClientMessage(playerid, COLOR_GREEN, "ABC Studio: Thanks for your information !");
  1902. SendClientMessage(playerid, COLOR_SEA, "They Hung Up...");
  1903. Mobile[playerid] = 255;
  1904. return 0;
  1905. }
  1906. if(Mobile[playerid] == 1180)
  1907. {
  1908. if(!strlen(tmp))
  1909. {
  1910. SendClientMessage(playerid, COLOR_GREEN, "Advertisement business: What would you like to advertise?");
  1911. return 0;
  1912. }
  1913. GetPlayerName(playerid, sendername, sizeof(sendername));
  1914. new length = strlen(text);
  1915. while ((idx < length) && (text[idx] <= ' '))
  1916. {
  1917. idx++;
  1918. }
  1919. new offset = idx;
  1920. new result[64];
  1921. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  1922. {
  1923. result[idx - offset] = text[idx];
  1924. idx++;
  1925. }
  1926. result[idx - offset] = EOS;
  1927. if ((!adds) && (PlayerInfo[playerid][pAdmin] < 1))
  1928. {
  1929. format(string, sizeof(string), " Please try again later %d seconds between Advertisements !", (addtimer/1000));
  1930. SendClientMessage(playerid, COLOR_GRAD2, string);
  1931. return 1;
  1932.  
  1933. }
  1934. new payout = idx * 10;
  1935. if(GetPlayerMoney(playerid) < payout + 200)
  1936. {
  1937. format(string, sizeof(string), "* You used %d characters which cost $%d, you don't have enough.", offset, payout);
  1938. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  1939. return 1;
  1940. }
  1941. SafeGivePlayerMoney(playerid, - payout);
  1942. SafeGivePlayerMoney(playerid, - 200);
  1943. SBizzInfo[7][sbTill] += payout + 200;
  1944. ExtortionSBiz(7, payout + 200);
  1945. format(string, sizeof(string), "Advertisement: %s, Contact %s (PH: %d)", result,sendername, PlayerInfo[playerid][pPnumber]);
  1946. OOCNews(TEAM_GROVE_COLOR,string);
  1947. format(string, sizeof(string), "~r~Paid $%d~n~~w~Message contained: %d Characters~n~~w~Plus ~g~100$~w~ for ad through phone", payout, idx);
  1948. GameTextForPlayer(playerid, string, 5000, 1);
  1949. if (PlayerInfo[playerid][pAdmin] < 1){SetTimer("AddsOn", addtimer, 0);adds = 0;}
  1950. }
  1951. if(IsPlayerConnected(Mobile[playerid]))
  1952. {
  1953. if(Mobile[Mobile[playerid]] == playerid)
  1954. {
  1955. if(PlayerInfo[Mobile[playerid]][pSpeaker] == 1)
  1956. {
  1957. ProxDetector(20.0, Mobile[playerid], string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  1958. }
  1959. else
  1960. {
  1961. SendClientMessage(Mobile[playerid], COLOR_YELLOW,string);
  1962. }
  1963. }
  1964. }
  1965. else
  1966. {
  1967. SendClientMessage(playerid, COLOR_YELLOW,"Theres nobody there");
  1968. }
  1969. format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Says (cellphone): %s", d,m,y,h,mi,s, sendername, text);
  1970. ChatLog(string);
  1971. return 0;
  1972. }
  1973. if (BusShowLocation[playerid][0] == 1)
  1974. {
  1975. new idx;
  1976. tmp = strtok(text, idx);
  1977. if ((strcmp("yes", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("yes")))
  1978. {
  1979. SetPlayerCheckpoint(playerid, BusShowLocation[playerid][1], BusShowLocation[playerid][2], BusShowLocation[playerid][3], 3.0);
  1980. SendClientMessage(playerid, COLOR_YELLOW, "There's the location (red checkpoint), you'd better hurry!");
  1981. BusShowLocation[playerid][0] = 0;
  1982. BusShowLocationC[playerid] = 1;
  1983. return 0;
  1984. }
  1985. else
  1986. {
  1987. BusShowLocation[playerid][0] = 0;
  1988. return 0;
  1989. }
  1990. }
  1991. if (PlayerInfo[playerid][pChatMode] == 0) // By CuervO_NegrO
  1992. {
  1993. if(gPlayerLogged[playerid] == 0)
  1994. {
  1995. return 0;
  1996. }
  1997. if(PlayerInfo[playerid][pMuted] == 1)
  1998. {
  1999. SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
  2000. return 0;
  2001. }
  2002. GetPlayerName(playerid, sendername, sizeof(sendername));
  2003. new playercar = GetPlayerVehicleID(playerid);
  2004. new y1,m1,d1;
  2005. new h1,mi1,s1;
  2006. getdate(y1,m1,d1);
  2007. gettime(h1,mi1,s1);
  2008. if(!IsPlayerInAnyVehicle(playerid))
  2009. {
  2010. if(PlayerInfo[playerid][pAdminDuty] == 1)
  2011. {
  2012. format(string, sizeof(string), "Admin: %s", text);
  2013. SetPlayerChatBubble(playerid, string, COLOR_NICERED, 20.0, 8000);
  2014. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  2015. format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Local Admin): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
  2016. ChatLog(string);
  2017. }
  2018. if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 1)
  2019. {
  2020. format(string, sizeof(string), "Stranger: %s", text);
  2021. SetPlayerChatBubble(playerid, string, COLOR_WHITE, 20.0, 8000);
  2022. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  2023. format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Local Masked): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
  2024. ChatLog(string);
  2025. }
  2026. if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 0)
  2027. {
  2028. format(string, sizeof(string), "%s: %s", sendername, text);
  2029. SetPlayerChatBubble(playerid, string, COLOR_WHITE, 20.0, 8000);
  2030. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  2031. format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Local): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
  2032. ChatLog(string);
  2033. }
  2034. }
  2035. else
  2036. {
  2037. if(IsModelAPlane(playercar) || IsModelABike(playercar) || IsModelAHeli(playercar) || IsModelABoat(playercar) || IsModelASpecial(playercar))
  2038. {
  2039.  
  2040. if(PlayerInfo[playerid][pAdminDuty] == 1)
  2041. {
  2042. format(string, sizeof(string), "Admin: %s", text);
  2043. SetPlayerChatBubble(playerid, string, COLOR_NICERED, 20.0, 8000);
  2044. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  2045. format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Admin Local): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
  2046. ChatLog(string);
  2047. }
  2048. if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 1)
  2049. {
  2050. format(string, sizeof(string), "Stranger: %s", text);
  2051. SetPlayerChatBubble(playerid, string, COLOR_WHITE, 20.0, 8000);
  2052. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  2053. format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Masked Local): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
  2054. ChatLog(string);
  2055. }
  2056. if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 0)
  2057. {
  2058. format(string, sizeof(string), "%s: %s", sendername, text);
  2059. SetPlayerChatBubble(playerid, string, COLOR_WHITE, 20.0, 8000);
  2060. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  2061. format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Local): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
  2062. ChatLog(string);
  2063. }
  2064. }
  2065. else
  2066. {
  2067. if(VehicleWindows[GetPlayerVehicleID(playerid)] == 0)
  2068. {
  2069.  
  2070. if(PlayerInfo[playerid][pAdminDuty] == 1)
  2071. {
  2072. format(string, sizeof(string), "(Windows Shut) Admin: %s", text);
  2073. SetPlayerChatBubble(playerid, string, COLOR_NICERED, 10.0, 8000);
  2074. ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  2075. format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Admin Windows Shut): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
  2076. ChatLog(string);
  2077. }
  2078. if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 1)
  2079. {
  2080. format(string, sizeof(string), "(Windows Shut) Stranger: %s", text);
  2081. SetPlayerChatBubble(playerid, string, COLOR_WHITE, 10.0, 8000);
  2082. ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  2083. format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Masked Windows Shut): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
  2084. ChatLog(string);
  2085. }
  2086. if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 0)
  2087. {
  2088. format(string, sizeof(string), "(Windows Shut) %s: %s", sendername, text);
  2089. SetPlayerChatBubble(playerid, string, COLOR_WHITE, 10.0, 8000);
  2090. ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  2091. format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Windows Shut): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
  2092. ChatLog(string);
  2093. }
  2094. }
  2095. else
  2096. {
  2097.  
  2098. if(PlayerInfo[playerid][pAdminDuty] == 1)
  2099. {
  2100. format(string, sizeof(string), "(Windows Open) Admin: %s", text);
  2101. SetPlayerChatBubble(playerid, string, COLOR_NICERED, 20.0, 8000);
  2102. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  2103. format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Admin Windows Open): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
  2104. ChatLog(string);
  2105. }
  2106. if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 1)
  2107. {
  2108. format(string, sizeof(string), "(Windows Open) Stranger: %s", text);
  2109. SetPlayerChatBubble(playerid, string, COLOR_WHITE, 20.0, 8000);
  2110. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  2111. format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Masked Windows Open): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
  2112. ChatLog(string);
  2113. }
  2114. if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 0)
  2115. {
  2116. format(string, sizeof(string), "(Windows Open) %s: %s", sendername, text);
  2117. SetPlayerChatBubble(playerid, string, COLOR_WHITE, 20.0, 8000);
  2118. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  2119. format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Windows Open): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
  2120. ChatLog(string);
  2121. }
  2122. }
  2123. }
  2124. }
  2125. return 0;
  2126. }
  2127. else if (PlayerInfo[playerid][pChatMode] == 1) // By CuervO_NegrO
  2128. {
  2129. if(gPlayerLogged[playerid] == 0)
  2130. {
  2131. return 0;
  2132. }
  2133. if(PlayerInfo[playerid][pMuted] == 1)
  2134. {
  2135. SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
  2136. return 0;
  2137. }
  2138. if(noooc == 1 && PlayerInfo[playerid][pAdmin] < 1)
  2139. {
  2140. SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, OOC is turned off");
  2141. return 0;
  2142. }
  2143. GetPlayerName(playerid, sendername, sizeof(sendername));
  2144. new y1,m1,d1;
  2145. new h1,mi1,s1;
  2146. getdate(y1,m1,d1);
  2147. gettime(h1,mi1,s1);
  2148. if(PlayerInfo[playerid][pAdmin] == 0)
  2149. {
  2150. format(string, sizeof(string), "(( %s ))", text);
  2151. }
  2152. else
  2153. {
  2154. format(string, sizeof(string), "[[ %s ]]", text);
  2155. }
  2156. SendPlayerMessageToAll(playerid, string);
  2157. format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (OOC): %s",d1,m1,y1,h1,mi1,s1, sendername, text);
  2158. PublicLog(string);
  2159. return 0;
  2160. }
  2161. return 1;
  2162. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement