Guest User

OnPlayerText

a guest
Apr 21st, 2011
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 62.42 KB | None | 0 0
  1. public OnPlayerText(playerid, text[])
  2. {
  3. SetPlayerChatBubble(playerid, text, COLOR_WHITE, 20.0, 10000);
  4. new giver[MAX_PLAYER_NAME];
  5. new giveplayer[MAX_PLAYER_NAME];
  6. new tmp[256];
  7. new string[256];
  8. new giveplayerid;
  9. /*if(strfind(text, "189.", true) != -1 || strfind(text, "201.", true) != -1 || strfind(text, "200.", true) != -1 || strfind(text, "69.", true) != -1 || strfind(text, "187.", true) != -1){
  10. SendClientMessage(playerid,LARANJA,"Se seu server é uma merda e está falindo, não venha chorar aqui! ;)");
  11. format(string, sizeof(string), "~%s levou kick automático. Motivo: Tentou divulgar IP!" ,PlayerNamex(playerid));
  12. SendClientMessageToAll(LARANJA, string);
  13. Kick(playerid);
  14. return 0;
  15. }*/
  16. /*if(strfind(text, "Porra", true) != -1 || strfind(text, "Mizera", true) != -1 || strfind(text, "kct", true) != -1 || strfind(text, "cu", true) != -1 || strfind(text, "cú", true) != -1){
  17. SendClientMessage(playerid,LARANJA,"*******");
  18. return 0;
  19. }*/
  20. if(PlayerInfo[playerid][pMuted] == 1)
  21. {
  22. SendClientMessage(playerid, TEAM_CYAN_COLOR, "Voce nao pode falar, voce foi calado");
  23. return 0;
  24. }
  25. if(SelectChar[playerid] == 255)
  26. {
  27. new idx;
  28. tmp = strtok(text, idx);
  29. if ((strcmp("Proximo", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Proximo")))
  30. {
  31. switch (SelectCharID[playerid])
  32. {
  33. case 1: //Policia Militar
  34. {
  35. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 280); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 280; }
  36. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 281); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 281; }
  37. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 283); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 283; }
  38. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 150); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 150; }
  39. }
  40. case 2: //GATE
  41. {
  42. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 141); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 141; }
  43. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 285); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 285; }
  44. }
  45. case 3: //Exército
  46. {
  47. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 287); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 287; }
  48. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 191); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 191; }
  49. }
  50. case 4: //SAMU
  51. {
  52. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 91); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 91; }
  53. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 219); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 219; }
  54. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 251); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 251; }
  55. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 276); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = 276; }
  56. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, 275); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = 275; }
  57. else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, 274); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 274; }
  58. }
  59. case 5: //Varrios Los Aztecas
  60. {
  61. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 116); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 116; }
  62. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 115); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 115; }
  63. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 114); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 114; }
  64. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 41); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = 41; }
  65. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, 148); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 148; }
  66. }
  67. case 6: //LIFG
  68. {
  69. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 235); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 235; }
  70. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 234); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 234; }
  71. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 233); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 233; }
  72. }
  73. case 7: //Prefeito
  74. {
  75. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 164); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 164; }
  76. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 163); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 163; }
  77. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 153); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 153; }
  78. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 141); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 141; }
  79. }
  80. case 8: //Hitman Agency
  81. {
  82. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 166); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 166; }
  83. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 165); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 165; }
  84. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 152); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 152; }
  85. }
  86. case 9: //Rede Globo
  87. {
  88. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 17); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 17; }
  89. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 299); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 299; }
  90. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 237); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 237; }
  91. }
  92. case 10: //Vazio
  93. {
  94. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 50); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 50; }
  95. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 56); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 56; }
  96. }
  97. case 11: //Driving/Flying School
  98. {
  99. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 59); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 59; }
  100. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 60); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 60; }
  101. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 55); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 55; }
  102. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 40); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 40; }
  103. }
  104. case 12: //Bomberitos
  105. {
  106. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 277); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 277; }
  107. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 279); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 279; }
  108. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 278); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 278; }
  109. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 251); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 251; }
  110. }
  111. case 13: //Mongols MC
  112. {
  113. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 254); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 254; }
  114. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 247); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 247; }
  115. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 248); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 248; }
  116. }
  117. case 14: //Transnacional
  118. {
  119. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 61); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 61; }
  120. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 255); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 255; }
  121. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 233); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 233; }
  122. }
  123. case 15: //Grove
  124. {
  125. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 271); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 271; }
  126. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 105); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 105; }
  127. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 106); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 106; }
  128. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 107); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = 107; }
  129. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, 56); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 56; }
  130. //else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, JoinPed[50][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[50][0]; }
  131. }
  132. case 16: //FARC
  133. {
  134. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 46); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 46; }
  135. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 47); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 47; }
  136. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 48); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 48; }
  137. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 244); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 244; }
  138. }
  139. case 17: //Policia Civil
  140. {
  141. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 217); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 217; }
  142. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 240); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 240; }
  143. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 211); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 211; }
  144. }
  145. case 18: //Ballas
  146. {
  147. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 102); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 102; }
  148. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 103); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 103; }
  149. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 104); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 104; }
  150. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 63); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = 63; }
  151. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, 40); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 40; }
  152. }
  153. case 19: //Vagos
  154. {
  155. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 108); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 108; }
  156. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 109); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 109; }
  157. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 110); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 110; }
  158. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 91); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = 91; }
  159. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, 85); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 85; }
  160. }
  161. case 20: //Yakuza
  162. {
  163. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 40); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 40; }
  164. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 118); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 118; }
  165. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 117); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 117; }
  166. }
  167. case 21: //Comando Vermelho
  168. {
  169. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 134); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 134; }
  170. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 219); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 219; }
  171. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 183); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 183; }
  172. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 79); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 79; }
  173. }
  174. case 22: //Máfia La Hermandad
  175. {
  176. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 120); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 120; }
  177. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 125); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 125; }
  178. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 150); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 150; }
  179. }
  180. case 23: //G-MOB
  181. {
  182. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 24); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 24; }
  183. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 21); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 21; }
  184. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 20); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 20; }
  185. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 28); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = 28; }
  186. else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, 12); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 12; }
  187. }
  188. case 24: //Drifters
  189. {
  190. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 23); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 23; }
  191. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 29); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 29; }
  192. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 60); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 60; }
  193. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 85); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 85; }
  194. }
  195. case 25: //Policia Federal
  196. {
  197. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 287); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 287; }
  198. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 191); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 191; }
  199. }
  200. case 26: //TransTaxi
  201. {
  202. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 61); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 61; }
  203. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 255); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 255; }
  204. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 233); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 233; }
  205. }
  206. case 27: //SBT
  207. {
  208. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 17); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 17; }
  209. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 299); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 299; }
  210. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 237); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 237; }
  211. }
  212. case 28: //Policia Rodoviaria
  213. {
  214. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 284); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 284; }
  215. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 194); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 194; }
  216. }
  217. case 29: //C.T.P
  218. {
  219. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 179); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 179; }
  220. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 164); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 164; }
  221. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 169); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 169; }
  222. }
  223. case 30: //Governo Federal
  224. {
  225. if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 164); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 164; }
  226. else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 163); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 163; }
  227. else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 153); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 153; }
  228. else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 141); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 141; }
  229. }
  230. }
  231. return 0;
  232. }
  233. else if ((strcmp("Confirma", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Confirma")))
  234. {
  235. if(ChangePos2[playerid][1] == 1)
  236. {
  237. SetPlayerInterior(playerid, ChangePos2[playerid][0]);
  238. SetPlayerPos(playerid, ChangePos[playerid][0],ChangePos[playerid][1],ChangePos[playerid][2]);
  239. ChangePos2[playerid][1] = 0;
  240. return 0;
  241. }
  242. PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
  243. PlayerInfo[playerid][pChar] = ChosenSkin[playerid];
  244. SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel],0.0,0.0,0.0,0,0,0,0,0,0,0);
  245. gTeam[playerid] = PlayerInfo[playerid][pTeam];
  246. SetPlayerToTeamColor(playerid);
  247. MedicBill[playerid] = 0;
  248. SpawnPlayer(playerid);
  249. SelectCharPlace[playerid] = 0;
  250. SelectCharID[playerid] = 0;
  251. SelectChar[playerid] = 0;
  252. return 0;
  253. }
  254. else
  255. {
  256. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Use 'Proximo', ou 'Confirma'.");
  257. return 0;
  258. }
  259. }
  260. if(RegistrationStep[playerid] > 0)
  261. {
  262. if(RegistrationStep[playerid] == 1)
  263. {
  264. new idx;
  265. tmp = strtok(text, idx);
  266. if((strcmp("homem", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Homem")))
  267. {
  268. SetPlayerCameraPos(playerid, 1527.5671,-1756.6531,33.4297);
  269. SetPlayerCameraLookAt(playerid, 1531.2134,-1671.3048,13.3828);
  270. SetPlayerPos(playerid, 1541.7875,-1703.0524,13.9816);
  271. PlayerInfo[playerid][pSexo] = 1;
  272. SetPlayerSkin(playerid, 26);
  273. PlayerInfo[playerid][pModel] = 26;
  274. SendClientMessage(playerid, COLOR_YELLOW2, "Ok, Voce e macho!.");
  275. SendClientMessage(playerid, COLOR_LIGHTRED, "Você ja jogou em outros servidores de RPG? (Sim/Não)");
  276. RegistrationStep[playerid] = 2;
  277. return 0;
  278. }
  279. else if((strcmp("mulher", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Mulher")))
  280. {
  281. SetPlayerCameraPos(playerid, 1527.5671,-1756.6531,33.4297);
  282. SetPlayerCameraLookAt(playerid, 1531.2134,-1671.3048,13.3828);
  283. SetPlayerPos(playerid, 1541.7875,-1703.0524,13.9816);
  284. PlayerInfo[playerid][pSexo] = 2;
  285. SetPlayerSkin(playerid, 193);
  286. PlayerInfo[playerid][pModel] = 193;
  287. SendClientMessage(playerid, COLOR_YELLOW2, "Ok, Voce e mulher");
  288. SendClientMessage(playerid, COLOR_LIGHTRED, "Você já jogou alguma vez em outro servidor RPG? (Sim/Não)");
  289. RegistrationStep[playerid] = 2;
  290. return 0;
  291. }
  292. else
  293. {
  294. SendClientMessage(playerid, COLOR_LIGHTRED, "Voce e 'Homem' ou 'Mulher' (Digite).");
  295. }
  296. return 0;
  297. }
  298. else if(RegistrationStep[playerid] == 2)
  299. {
  300. new idx;
  301. tmp = strtok(text, idx);
  302. if((strcmp("Sim", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Sim")))
  303. {
  304. SetPlayerCameraPos(playerid, 1527.5671,-1756.6531,33.4297);
  305. SetPlayerCameraLookAt(playerid, 1531.2134,-1671.3048,13.3828);
  306. SetPlayerPos(playerid, 1541.7875,-1703.0524,13.9816);
  307. PlayerInfo[playerid][pOrigem] = 1;
  308. SendClientMessage(playerid, COLOR_YELLOW2, "Ok, Você ja jogou em outros servidores de RPG.");
  309. SendClientMessage(playerid, COLOR_LIGHTRED, "Obrigado pelas respostas !, Siga o tutorial");
  310. RegistrationStep[playerid] = 0;
  311. TutTime[playerid] = 1;
  312. return 0;
  313. }
  314. else if((strcmp("Não", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Não")))
  315. {
  316. SetPlayerCameraPos(playerid, 1527.5671,-1756.6531,33.4297);
  317. SetPlayerCameraLookAt(playerid, 1531.2134,-1671.3048,13.3828);
  318. SetPlayerPos(playerid, 1541.7875,-1703.0524,13.9816);
  319. PlayerInfo[playerid][pOrigem] = 2;
  320. SendClientMessage(playerid, COLOR_YELLOW2, "Ok, Você é novo no RPG.");
  321. SendClientMessage(playerid, COLOR_LIGHTRED, "Obrigado pelas respostas !, Siga o tutorial");
  322. RegistrationStep[playerid] = 0;
  323. TutTime[playerid] = 1;
  324. return 0;
  325. }
  326. /*else if((strcmp("favela", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("favela")))
  327. {
  328. PlayerInfo[playerid][pOrigem] = 3;
  329. SendClientMessage(playerid, COLOR_YELLOW2, "Ok, voce é da Favela!.");
  330. SendClientMessage(playerid, COLOR_LIGHTRED, "Obrigado pelas respostas !, Siga o tutorial");
  331. RegistrationStep[playerid] = 0;
  332. TutTime[playerid] = 1;
  333. return 0;
  334. }*/
  335. else
  336. {
  337. SendClientMessage(playerid, COLOR_LIGHTRED, "Você ja jogou em outros servidores de RPG? (Sim/Não)");
  338. }
  339. return 0;
  340. }
  341. return 0;
  342. }
  343. if(MarriageCeremoney[playerid] > 0)
  344. {
  345. new idx;
  346. tmp = strtok(text, idx);
  347. if ((strcmp("sim", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("sim")))
  348. {
  349. if(GotProposedBy[playerid] < 999)
  350. {
  351. if(IsPlayerConnected(GotProposedBy[playerid]))
  352. {
  353. GetPlayerName(playerid, sendername, sizeof(sendername));
  354. GetPlayerName(GotProposedBy[playerid], giveplayer, sizeof(giveplayer));
  355. format(string, sizeof(string), "Padre: %s voce aceita %s como sua amada esposa? (Digite 'sim', qualquer outra coisa cancela o cansamento).", giveplayer,sendername);
  356. SendClientMessage(GotProposedBy[playerid], COLOR_WHITE, string);
  357. MarriageCeremoney[GotProposedBy[playerid]] = 1;
  358. MarriageCeremoney[playerid] = 0;
  359. GotProposedBy[playerid] = 999;
  360. return 1;
  361. }
  362. else
  363. {
  364. MarriageCeremoney[playerid] = 0;
  365. GotProposedBy[playerid] = 999;
  366. return 0;
  367. }
  368. }
  369. else if(ProposedTo[playerid] < 999)
  370. {
  371. if(IsPlayerConnected(ProposedTo[playerid]))
  372. {
  373. GetPlayerName(playerid, sendername, sizeof(sendername));
  374. GetPlayerName(ProposedTo[playerid], giveplayer, sizeof(giveplayer));
  375. if(PlayerInfo[playerid][pSexo] == 1 && PlayerInfo[ProposedTo[playerid]][pSexo] == 2)
  376. {
  377. format(string, sizeof(string), "Padre: %s e %s eu os declaro Marido e Mulher, Pode Beijar a Noiva.", sendername, giveplayer);
  378. SendClientMessage(playerid, COLOR_WHITE, string);
  379. format(string, sizeof(string), "Padre: %s e %s eu os declaro Marido e Mulher, Pode Beijar o Noivo.", giveplayer, sendername);
  380. SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
  381. format(string, sizeof(string), "Noticia de Casamento: Temos um novo Casal, %s e %s Felicidades Para Voces.", sendername, giveplayer);
  382. OOCNews(COLOR_WHITE, string);
  383. }
  384. else if(PlayerInfo[playerid][pSexo] == 1 && PlayerInfo[ProposedTo[playerid]][pSexo] == 1)
  385. {
  386. format(string, sizeof(string), "Padre: %s e %s eu os declaro Boiola e Bichona, Pode Beijar o Gayzão.", sendername, giveplayer);
  387. SendClientMessage(playerid, COLOR_WHITE, string);
  388. format(string, sizeof(string), "Padre: %s e %s eu os declaro Boiola e Bichona, Pode Beijar o Gayzão.", giveplayer, sendername);
  389. SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
  390. format(string, sizeof(string), "Noticia de Casamento: Temos um novo Casal Gay, %s e %s Muita queima rosca para vocês.", sendername, giveplayer);
  391. OOCNews(COLOR_WHITE, string);
  392. }
  393. else if(PlayerInfo[playerid][pSexo] == 2 && PlayerInfo[ProposedTo[playerid]][pSexo] == 2)
  394. {
  395. format(string, sizeof(string), "Padre: %s e %s eu os declaro Lesbica e Sapatão, Pode Beijar a Sapatão.", sendername, giveplayer);
  396. SendClientMessage(playerid, COLOR_WHITE, string);
  397. format(string, sizeof(string), "Padre: %s e %s eu os declaro Lesbica e Sapatão, Pode Beijar a Sapatão", giveplayer, sendername);
  398. SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
  399. format(string, sizeof(string), "Noticia de Casamento: Temos um novo Casal de Lesbicas, %s e %s Felicidades Para Voces.", sendername, giveplayer);
  400. OOCNews(COLOR_WHITE, string);
  401. }
  402. MarriageCeremoney[ProposedTo[playerid]] = 0;
  403. MarriageCeremoney[playerid] = 0;
  404. format(string, sizeof(string), "%s", sendername);
  405. strmid(PlayerInfo[ProposedTo[playerid]][pMarriedTo], string, 0, strlen(string), 255);
  406. format(string, sizeof(string), "%s", giveplayer);
  407. strmid(PlayerInfo[playerid][pMarriedTo], string, 0, strlen(string), 255);
  408. GivePlayerMoneyEx(playerid, - 100000);
  409. PlayerInfo[playerid][pMarried] = 1;
  410. PlayerInfo[ProposedTo[playerid]][pMarried] = 1;
  411. PlayerInfo[ProposedTo[playerid]][pPHousekey] = PlayerInfo[playerid][pPHousekey];
  412. PlayerInfo[ProposedTo[playerid]][pPbiskey] = PlayerInfo[playerid][pPbiskey];
  413. ProposedTo[playerid] = 999;
  414. MarriageCeremoney[playerid] = 0;
  415. return 1;
  416. }
  417. else
  418. {
  419. MarriageCeremoney[playerid] = 0;
  420. ProposedTo[playerid] = 999;
  421. return 0;
  422. }
  423. }
  424. }
  425. else
  426. {
  427. if(GotProposedBy[playerid] < 999)
  428. {
  429. if(IsPlayerConnected(GotProposedBy[playerid]))
  430. {
  431. GetPlayerName(playerid, sendername, sizeof(sendername));
  432. GetPlayerName(GotProposedBy[playerid], giveplayer, sizeof(giveplayer));
  433. format(string, sizeof(string), "* Voce deseja se casar com %s, Se Quizer Digite 'sim'.",giveplayer);
  434. SendClientMessage(playerid, COLOR_YELLOW, string);
  435. format(string, sizeof(string), "* %s quer casar com voce, um 'sim' foi dito.",sendername);
  436. SendClientMessage(GotProposedBy[playerid], COLOR_YELLOW, string);
  437. return 0;
  438. }
  439. else
  440. {
  441. MarriageCeremoney[playerid] = 0;
  442. GotProposedBy[playerid] = 999;
  443. return 0;
  444. }
  445. }
  446. else if(ProposedTo[playerid] < 999)
  447. {
  448. if(IsPlayerConnected(ProposedTo[playerid]))
  449. {
  450. GetPlayerName(playerid, sendername, sizeof(sendername));
  451. GetPlayerName(ProposedTo[playerid], giveplayer, sizeof(giveplayer));
  452. format(string, sizeof(string), "* Voce deseja se casar com %s, Se Quizer Digite 'sim'.",giveplayer);
  453. SendClientMessage(playerid, COLOR_YELLOW, string);
  454. format(string, sizeof(string), "* %s quer casar com voce, um 'sim' foi dito.",sendername);
  455. SendClientMessage(ProposedTo[playerid], COLOR_YELLOW, string);
  456. return 0;
  457. }
  458. else
  459. {
  460. MarriageCeremoney[playerid] = 0;
  461. ProposedTo[playerid] = 999;
  462. return 0;
  463. }
  464. }
  465. }
  466. return 0;
  467. }
  468. /* if(WritingPaper[playerid] > 0)
  469. {
  470. new line;
  471. new nstring[256];
  472. new idx;
  473. new length = strlen(text);
  474. while ((idx < length) && (text[idx] <= ' '))
  475. {
  476. idx++;
  477. }
  478. new offset = idx;
  479. new result[64];
  480. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  481. {
  482. result[idx - offset] = text[idx];
  483. idx++;
  484. }
  485. result[idx - offset] = EOS;
  486. if(!strlen(result))
  487. {
  488. if(WritingLine[playerid] == 1) { SendClientMessage(playerid, COLOR_GRAD2, "* Por favor, Digite o título do seu jornal."); }
  489. else { SendClientMessage(playerid, COLOR_LIGHTRED, "*.Por favor Digite em uma linha de texto do seu jornal"); }
  490. return 0;
  491. }
  492. format(nstring, sizeof(nstring), "%s", text);
  493. switch(WritingLine[playerid])
  494. {
  495. case 1:
  496. {
  497. new fstring[MAX_PLAYER_NAME];
  498. GetPlayerName(playerid, sendername, sizeof(sendername));
  499. format(fstring, sizeof(fstring), "%s", sendername);
  500. strmid(PaperInfo[WritingPaperNumber[playerid]][PaperMaker], fstring, 0, strlen(fstring), 255);
  501. strmid(PaperInfo[WritingPaperNumber[playerid]][PaperTitle], nstring, 0, strlen(nstring), 255);
  502. line = 0; WritingLine[playerid] = 2;
  503. SendClientMessage(playerid, COLOR_LIGHTRED, "*.Agora você pode anotar as Linhas Novas, 7 restantes");
  504. }
  505. case 2:
  506. {
  507. strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText1], nstring, 0, strlen(nstring), 255);
  508. line = 1; WritingLine[playerid] = 3;
  509. }
  510. case 3:
  511. {
  512. strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText2], nstring, 0, strlen(nstring), 255);
  513. line = 2; WritingLine[playerid] = 4;
  514. }
  515. case 4:
  516. {
  517. strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText3], nstring, 0, strlen(nstring), 255);
  518. line = 3; WritingLine[playerid] = 5;
  519. }
  520. case 5:
  521. {
  522. strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText4], nstring, 0, strlen(nstring), 255);
  523. line = 4; WritingLine[playerid] = 6;
  524. }
  525. case 6:
  526. {
  527. strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText5], nstring, 0, strlen(nstring), 255);
  528. line = 5; WritingLine[playerid] = 7;
  529. }
  530. case 7:
  531. {
  532. strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText6], nstring, 0, strlen(nstring), 255);
  533. line = 6; WritingLine[playerid] = 8;
  534. }
  535. case 8:
  536. {
  537. strmid(PaperInfo[WritingPaperNumber[playerid]][PaperText7], nstring, 0, strlen(nstring), 255);
  538. PaperInfo[WritingPaperNumber[playerid]][PaperUsed] = 1;
  539. SavePapers();
  540. line = 7; WritingLine[playerid] = 0; WritingPaper[playerid] = 0; WritingPaperNumber[playerid] = 999;
  541. }
  542. }
  543. if(line > 0)
  544. {
  545. format(string, sizeof(string), "* Voce escreveu a linha %d do Jornal.", line);
  546. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  547. if(line == 7)
  548. {
  549. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Seu jornal foi adicionado à Lista de Notícias (Pelo Intregador de Jornal).");
  550. }
  551. }
  552. return 0;
  553. }*/
  554. if(ConnectedToPC[playerid] == 255)
  555. {
  556. new idx;
  557. tmp = strtok(text, idx);
  558. if ((strcmp("Contratos", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Contratos")))
  559. {
  560. if(PlayerInfo[playerid][pCargo] < 4)
  561. {
  562. SendClientMessage(playerid, COLOR_GREY, " Apenas cargo 4 pode ler os contratos !");
  563. return 0;
  564. }
  565. SearchingHit(playerid);
  566. return 0;
  567. }
  568. else if ((strcmp("News", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("News")))
  569. {
  570. new x_nr[256];
  571. x_nr = strtok(text, idx);
  572.  
  573. if(!strlen(x_nr)) {
  574. SendClientMessage(playerid, COLOR_WHITE, "|__________________ Hitman Agency News __________________|");
  575. SendClientMessage(playerid, COLOR_WHITE, "USE: News [number] ou News delete [number] ou News delete all");
  576. format(string, sizeof(string), "1: %s :: Hitman: %s", News[hAdd1], News[hContact1]);
  577. SendClientMessage(playerid, COLOR_GREY, string);
  578. format(string, sizeof(string), "2: %s :: Hitman: %s", News[hAdd2], News[hContact2]);
  579. SendClientMessage(playerid, COLOR_GREY, string);
  580. format(string, sizeof(string), "3: %s :: Hitman: %s", News[hAdd3], News[hContact3]);
  581. SendClientMessage(playerid, COLOR_GREY, string);
  582. format(string, sizeof(string), "4: %s :: Hitman: %s", News[hAdd4], News[hContact4]);
  583. SendClientMessage(playerid, COLOR_GREY, string);
  584. format(string, sizeof(string), "5: %s :: Hitman: %s", News[hAdd5], News[hContact5]);
  585. SendClientMessage(playerid, COLOR_GREY, string);
  586. SendClientMessage(playerid, COLOR_WHITE, "|________________________________________________________|");
  587. return 0;
  588. }//lets start
  589. if(strcmp(x_nr,"1",true) == 0)
  590. {
  591. if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
  592. if(PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
  593. if(News[hTaken1] == 0)
  594. {
  595. GetPlayerName(playerid, sendername, sizeof(sendername));
  596. if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
  597. format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd1], string, 0, strlen(string), 255);
  598. format(string, sizeof(string), "%s",sendername); strmid(News[hContact1], string, 0, strlen(string), 255);
  599. News[hTaken1] = 1; PlacedNews[playerid] = 1;
  600. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel.");
  601. return 0;
  602. }
  603. else
  604. {
  605. SendClientMessage(playerid, COLOR_GREY, " Spot 1 is already Taken !");
  606. return 0;
  607. }
  608. }
  609. else if(strcmp(x_nr,"2",true) == 0)
  610. {
  611. if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
  612. if(PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
  613. if(News[hTaken2] == 0)
  614. {
  615. GetPlayerName(playerid, sendername, sizeof(sendername));
  616. if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
  617. format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd2], string, 0, strlen(string), 255);
  618. format(string, sizeof(string), "%s",sendername); strmid(News[hContact2], string, 0, strlen(string), 255);
  619. News[hTaken2] = 1; PlacedNews[playerid] = 1;
  620. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel.");
  621. return 0;
  622. }
  623. else
  624. {
  625. SendClientMessage(playerid, COLOR_GREY, " Spot 2 is already Taken !");
  626. return 0;
  627. }
  628. }
  629. else if(strcmp(x_nr,"3",true) == 0)
  630. {
  631. if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
  632. if(PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
  633. if(News[hTaken3] == 0)
  634. {
  635. GetPlayerName(playerid, sendername, sizeof(sendername));
  636. if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
  637. format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd3], string, 0, strlen(string), 255);
  638. format(string, sizeof(string), "%s",sendername); strmid(News[hContact3], string, 0, strlen(string), 255);
  639. News[hTaken3] = 1; PlacedNews[playerid] = 1;
  640. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel.");
  641. return 0;
  642. }
  643. else
  644. {
  645. SendClientMessage(playerid, COLOR_GREY, " Spot 3 is already Taken !");
  646. return 0;
  647. }
  648. }
  649. else if(strcmp(x_nr,"4",true) == 0)
  650. {
  651. if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
  652. if(PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
  653. if(News[hTaken4] == 0)
  654. {
  655. GetPlayerName(playerid, sendername, sizeof(sendername));
  656. if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
  657. format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd4], string, 0, strlen(string), 255);
  658. format(string, sizeof(string), "%s",sendername); strmid(News[hContact4], string, 0, strlen(string), 255);
  659. News[hTaken4] = 1; PlacedNews[playerid] = 1;
  660. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel.");
  661. return 0;
  662. }
  663. else
  664. {
  665. SendClientMessage(playerid, COLOR_GREY, " Spot 4 is already Taken !");
  666. return 0;
  667. }
  668. }
  669. else if(strcmp(x_nr,"5",true) == 0)
  670. {
  671. if(PlacedNews[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " Already placed a News Message, it must be deleted first !"); return 0; }
  672. if(PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playerid, COLOR_GREY, " You must be Rank 3 to write messages to the News Channel !"); return 0; }
  673. if(News[hTaken5] == 0)
  674. {
  675. GetPlayerName(playerid, sendername, sizeof(sendername));
  676. if(strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playerid, COLOR_GREY, " News Text to short !"); return 0; }
  677. format(string, sizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd5], string, 0, strlen(string), 255);
  678. format(string, sizeof(string), "%s",sendername); strmid(News[hContact5], string, 0, strlen(string), 255);
  679. News[hTaken5] = 1; PlacedNews[playerid] = 1;
  680. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You placed a News Message on the Hitman Agency's News Channel.");
  681. return 0;
  682. }
  683. else
  684. {
  685. SendClientMessage(playerid, COLOR_GREY, " Spot 5 is already Taken !");
  686. return 0;
  687. }
  688. }
  689. else if(strcmp(x_nr,"delete",true) == 0)
  690. {
  691. if(PlayerInfo[playerid][pCargo] < 4)
  692. {
  693. SendClientMessage(playerid, COLOR_GREY, " Você precisa de cargo 4 parar delatr as chamadas !");
  694. return 0;
  695. }
  696. new string1[MAX_PLAYER_NAME];
  697. new x_tel[256];
  698. x_tel = strtok(text, idx);
  699. if(!strlen(x_tel)) {
  700. SendClientMessage(playerid, COLOR_WHITE, "USE: News delete [number] ou News delete all.");
  701. return 0;
  702. }
  703. if(strcmp(x_tel,"1",true) == 0)
  704. {
  705. format(string, sizeof(string), "Nothing"); strmid(News[hAdd1], string, 0, strlen(string), 255);
  706. format(string1, sizeof(string1), "No-one"); strmid(News[hContact1], string1, 0, strlen(string1), 255);
  707. News[hTaken1] = 0;
  708. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted News Message (1) from the Hitman Agency's News Channel.");
  709. return 0;
  710. }
  711. else if(strcmp(x_tel,"2",true) == 0)
  712. {
  713. format(string, sizeof(string), "Nothing"); strmid(News[hAdd2], string, 0, strlen(string), 255);
  714. format(string1, sizeof(string1), "No-one"); strmid(News[hContact2], string1, 0, strlen(string1), 255);
  715. News[hTaken2] = 0;
  716. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted News Message (2) from the Hitman Agency's News Channel.");
  717. return 0;
  718. }
  719. else if(strcmp(x_tel,"3",true) == 0)
  720. {
  721. format(string, sizeof(string), "Nothing"); strmid(News[hAdd3], string, 0, strlen(string), 255);
  722. format(string1, sizeof(string1), "No-one"); strmid(News[hContact3], string1, 0, strlen(string1), 255);
  723. News[hTaken3] = 0;
  724. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted News Message (3) from the Hitman Agency's News Channel.");
  725. return 0;
  726. }
  727. else if(strcmp(x_tel,"4",true) == 0)
  728. {
  729. format(string, sizeof(string), "Nothing"); strmid(News[hAdd4], string, 0, strlen(string), 255);
  730. format(string1, sizeof(string1), "No-one"); strmid(News[hContact4], string1, 0, strlen(string1), 255);
  731. News[hTaken4] = 0;
  732. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted News Message (4) from the Hitman Agency's News Channel.");
  733. return 0;
  734. }
  735. else if(strcmp(x_tel,"5",true) == 0)
  736. {
  737. format(string, sizeof(string), "Nothing"); strmid(News[hAdd5], string, 0, strlen(string), 255);
  738. format(string1, sizeof(string1), "No-one"); strmid(News[hContact5], string1, 0, strlen(string1), 255);
  739. News[hTaken5] = 0;
  740. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted News Message (5) from the Hitman Agency's News Channel.");
  741. return 0;
  742. }
  743. else if(strcmp(x_tel,"all",true) == 0)
  744. {
  745. format(string, sizeof(string), "Nothing"); strmid(News[hAdd1], string, 0, strlen(string), 255);
  746. format(string1, sizeof(string1), "No-one"); strmid(News[hContact1], string1, 0, strlen(string1), 255);
  747. News[hTaken1] = 0;
  748. format(string, sizeof(string), "Nothing"); strmid(News[hAdd2], string, 0, strlen(string), 255);
  749. format(string1, sizeof(string1), "No-one"); strmid(News[hContact2], string1, 0, strlen(string1), 255);
  750. News[hTaken2] = 0;
  751. format(string, sizeof(string), "Nothing"); strmid(News[hAdd3], string, 0, strlen(string), 255);
  752. format(string1, sizeof(string1), "No-one"); strmid(News[hContact3], string1, 0, strlen(string1), 255);
  753. News[hTaken3] = 0;
  754. format(string, sizeof(string), "Nothing"); strmid(News[hAdd4], string, 0, strlen(string), 255);
  755. format(string1, sizeof(string1), "No-one"); strmid(News[hContact4], string1, 0, strlen(string1), 255);
  756. News[hTaken4] = 0;
  757. format(string, sizeof(string), "Nothing"); strmid(News[hAdd5], string, 0, strlen(string), 255);
  758. format(string1, sizeof(string1), "No-one"); strmid(News[hContact5], string1, 0, strlen(string1), 255);
  759. News[hTaken5] = 0;
  760. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Voce deletou todas as mensagens de novidades dos Hitmans.");
  761. return 0;
  762. }
  763. else
  764. {
  765. SendClientMessage(playerid, COLOR_WHITE, "USE: News delete [number] ou News delete all.");
  766. return 0;
  767. }
  768. }
  769. else { return 0; }
  770. }
  771. //Entregar contrato
  772. else if ((strcmp("entregarcont", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("entregarcont")))
  773. {
  774. if(PlayerInfo[playerid][pCargo] < 4)
  775. {
  776. SendClientMessage(playerid, COLOR_GREY, " Você precisa Cargo 4 para dar os contratos para os Assasinos!");
  777. return 0;
  778. }
  779. if(hitfound == 0)
  780. {
  781. SendClientMessage(playerid, COLOR_GREY, " Nenhum contrato lido ainda, use: contratos!");
  782. return 0;
  783. }
  784. tmp = strtok(text, idx);
  785. if(!strlen(tmp))
  786. {
  787. SendClientMessage(playerid, COLOR_GRAD1, "USO: entregarcont [ID do jogador]");
  788. return 0;
  789. }
  790. //giveplayerid = strval(tmp);
  791. giveplayerid = ReturnUser(tmp);
  792. if(IsPlayerConnected(giveplayerid))
  793. {
  794. if(giveplayerid != INVALID_PLAYER_ID)
  795. {
  796. if(PlayerInfo[giveplayerid][pMembro] == 8 && PlayerInfo[giveplayerid][pLider] == 8)
  797. {
  798. SendClientMessage(playerid, COLOR_GREY, " Isso não é um jogador Assasino!");
  799. return 0;
  800. }
  801. if(GoChase[giveplayerid] < 999)
  802. {
  803. SendClientMessage(playerid, COLOR_GREY, " Assasino que já está ocupado com um Contrato!");
  804. return 0;
  805. }
  806. if(IsPlayerConnected(hitid))
  807. {
  808. GetPlayerName(playerid, sendername, sizeof(sendername));
  809. GetPlayerName(giveplayerid, giver, sizeof(giver));
  810. GetPlayerName(hitid, giveplayer, sizeof(giveplayer));
  811. //format(string, sizeof(string), "* You assigned%s to kill: %s(ID:%d), for R$%d.", giver, giveplayer, hitid, PlayerInfo[hitid][pValue]);
  812. //SendClientMessage(playerid, COLOR_YELLOW, string);
  813. //format(string, sizeof(string), "* Hitman %s has assigned you to kill: %s(ID:%d), for R$%d.", sendername, giveplayer, hitid, PlayerInfo[hitid][pValue]);
  814. //SendClientMessage(giveplayerid, COLOR_YELLOW, string);
  815. format(string, sizeof(string), "* Assasino %s, entregou contrato para %s matar: %s(ID:%d), por R$%d.", sendername, giver, giveplayer, hitid, PlayerInfo[hitid][pHeadValue]);
  816. SendFamilyMessage(8, COLOR_YELLOW, string);
  817. GoChase[giveplayerid] = hitid;
  818. GetChased[hitid] = giveplayerid;
  819. GotHit[hitid] = 1;
  820. PlayerInfo[hitid][pMask] = 1;
  821. hitid = 0;
  822. hitfound = 0;
  823. return 0;
  824. }
  825. else
  826. {
  827. SendClientMessage(playerid, COLOR_GREY, " Os contratos estão offline !");
  828. return 0;
  829. }
  830. }
  831. return 0;
  832. }
  833. else
  834. {
  835. SendClientMessage(playerid, COLOR_GREY, " Assassino Offline ou não é assassino !");
  836. return 0;
  837. }
  838. }
  839. else if ((strcmp("Cargos", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Ranks")))
  840. {
  841. SendClientMessage(playerid, COLOR_WHITE, "|__________________ Cargos __________________|");
  842. for(new i=0; i < MAX_PLAYERS; i++)
  843. {
  844. if(IsPlayerConnected(i))
  845. {
  846. if(PlayerInfo[i][pMembro] == 8||PlayerInfo[i][pLider] == 8)
  847. {
  848. GetPlayerName(i, giveplayer, sizeof(giveplayer));
  849. format(string, sizeof(string), "* %s: Cargo %d", giveplayer,PlayerInfo[i][pCargo]);
  850. SendClientMessage(playerid, COLOR_GREY, string);
  851. }
  852. }
  853. }
  854. }
  855. else if ((strcmp("Pacotes", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Pacotes")))
  856. {
  857. if(OrderReady[playerid] > 0)
  858. {
  859. SendClientMessage(playerid, COLOR_GREY, " Voce ja encomendou seu pacotes, va na agencia e pegue ele !");
  860. return 0;
  861. }
  862. tmp = strtok(text, idx);
  863. if ((strcmp("1", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("1")))
  864. {
  865. if(PlayerInfo[playerid][pCargo] < 1) { SendClientMessage(playerid, COLOR_GREY, " Seu cargo nao permite comprar este pacote !"); return 0; }
  866. if(GetPlayerMoneyEx(playerid) > 1499)
  867. {
  868. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Voce encomendou um pacote de (R$1500), Agora va na Agencia buscar.");
  869. OrderReady[playerid] = 1;
  870. return 0;
  871. }
  872. else
  873. {
  874. SendClientMessage(playerid, COLOR_GREY," Voce nao pode comprar este pacote !");
  875. return 0;
  876. }
  877. }
  878. else if ((strcmp("2", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("2")))
  879. {
  880. if(PlayerInfo[playerid][pCargo] < 2) { SendClientMessage(playerid, COLOR_GREY, " Seu cargo nao permite comprar este pacote !"); return 0; }
  881. if(GetPlayerMoneyEx(playerid) > 1999)
  882. {
  883. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Voce encomendou um pacote de (R$2000), Agora va na Agencia buscar.");
  884. OrderReady[playerid] = 2;
  885. return 0;
  886. }
  887. else
  888. {
  889. SendClientMessage(playerid, COLOR_GREY," Voce nao pode comprar este pacote !");
  890. return 0;
  891. }
  892. }
  893. else if ((strcmp("3", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("3")))
  894. {
  895. if(PlayerInfo[playerid][pCargo] < 2) { SendClientMessage(playerid, COLOR_GREY, " Seu cargo nao permite comprar este pacote !"); return 0; }
  896. if(GetPlayerMoneyEx(playerid) > 2499)
  897. {
  898. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Voce encomendou um pacote de (R$2500), Agora va na Agencia buscar.");
  899. OrderReady[playerid] = 3;
  900. return 0;
  901. }
  902. else
  903. {
  904. SendClientMessage(playerid, COLOR_GREY," Voce nao pode comprar este pacote !");
  905. return 0;
  906. }
  907. }
  908. else if ((strcmp("4", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("4")))
  909. {
  910. if(PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playerid, COLOR_GREY, " Seu cargo nao permite comprar este pacote !"); return 0; }
  911. if(GetPlayerMoneyEx(playerid) > 2999)
  912. {
  913. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Voce encomendou um pacote de (R$3000), Agora va na Agencia buscar.");
  914. OrderReady[playerid] = 4;
  915. return 0;
  916. }
  917. else
  918. {
  919. SendClientMessage(playerid, COLOR_GREY," Voce nao pode comprar este pacote !");
  920. return 0;
  921. }
  922. }
  923. else if ((strcmp("5", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("5")))
  924. {
  925. if(PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playerid, COLOR_GREY, " Seu cargo nao permite comprar este pacote !"); return 0; }
  926. if(GetPlayerMoneyEx(playerid) > 3999)
  927. {
  928. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Voce encomendou um pacote de (R$4000), Agora va na Agencia buscarr.");
  929. OrderReady[playerid] = 5;
  930. return 0;
  931. }
  932. else
  933. {
  934. SendClientMessage(playerid, COLOR_GREY," Voce nao pode comprar este pacote !");
  935. return 0;
  936. }
  937. }
  938. else if ((strcmp("6", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("6")))
  939. {
  940. if(PlayerInfo[playerid][pCargo] < 4) { SendClientMessage(playerid, COLOR_GREY, " Seu cargo nao permite comprar este pacote !"); return 0; }
  941. if(GetPlayerMoneyEx(playerid) > 4999)
  942. {
  943. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Voce encomendou um pacote de (R$5000), Agora va na Agencia buscar.");
  944. OrderReady[playerid] = 6;
  945. return 0;
  946. }
  947. else
  948. {
  949. SendClientMessage(playerid, COLOR_GREY," Voce nao pode comprar este pacote !");
  950. return 0;
  951. }
  952. }
  953. else if ((strcmp("7", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("7")))
  954. {
  955. if(PlayerInfo[playerid][pCargo] < 4) { SendClientMessage(playerid, COLOR_GREY, " Seu cargo nao permite comprar este pacote !"); return 0; }
  956. if(GetPlayerMoneyEx(playerid) > 4999)
  957. {
  958. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Voce encomendou um pacote de (R$5000), Agora va na Agencia buscar.");
  959. OrderReady[playerid] = 7;
  960. return 0;
  961. }
  962. else
  963. {
  964. SendClientMessage(playerid, COLOR_GREY," Voce nao pode comprar este pacote !");
  965. return 0;
  966. }
  967. }
  968. else
  969. {
  970. SendClientMessage(playerid, COLOR_WHITE, "|__________________ Available Packages __________________|");
  971. if(PlayerInfo[playerid][pCargo] >= 1) { SendClientMessage(playerid, COLOR_GREY, "|(1) (R$1500 ) Pacote 1 - 4: Desert, Mp5, Rifle e Faca"); }
  972. if(PlayerInfo[playerid][pCargo] >= 2) { SendClientMessage(playerid, COLOR_GREY, "|(2) (R$2000 ) Pacote 2 - 4: Desert, Mp5, Sniper, Faca"); }
  973. if(PlayerInfo[playerid][pCargo] >= 2) { SendClientMessage(playerid, COLOR_GREY, "|(3) (R$2500 ) Pacote 3 - 4: Desert, Mp5, Rifle, Ak47, Faca"); }
  974. if(PlayerInfo[playerid][pCargo] >= 3) { SendClientMessage(playerid, COLOR_GREY, "|(4) (R$3000) Pacote 4 - 6: Desert, Mp5, Sniper, Colt(m4),Faca,Flor"); }
  975. if(PlayerInfo[playerid][pCargo] >= 3) { SendClientMessage(playerid, COLOR_GREY, "|(5) (R$4000) Pacote 5 - 6: Desert, Mp5, Rifle, Ak47, Faca, Flor"); }
  976. if(PlayerInfo[playerid][pCargo] >= 4) { SendClientMessage(playerid, COLOR_GREY, "|(6) (R$5000) Pacote 6 - 6: Desert, Mp5, Sniper, M4, Faca, Flor"); }
  977. if(PlayerInfo[playerid][pCargo] >= 4) { SendClientMessage(playerid, COLOR_GREY, "|(7) (R$5000) Pacote 7 - 6: Desert, Mp5, Sniper, Ak47, Faca, Flor"); }
  978. SendClientMessage(playerid, COLOR_WHITE, "|________________________________________________________|");
  979. return 0;
  980. }
  981. }
  982. else if ((strcmp("Desligar", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Desligar")))
  983. {
  984. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Voce desligou seu laptop, e se desconectou da agencia.");
  985. ConnectedToPC[playerid] = 0;
  986. return 0;
  987. }
  988. else
  989. {
  990. SendClientMessage(playerid, COLOR_WHITE, "|___ Hitman Agency ___|");
  991. SendClientMessage(playerid, COLOR_YELLOW2, "| - News");
  992. SendClientMessage(playerid, COLOR_YELLOW2, "| - Contratos");
  993. SendClientMessage(playerid, COLOR_YELLOW2, "| - Entregarcont - Membro");
  994. SendClientMessage(playerid, COLOR_YELLOW2, "| - Pegarcont - Lider");
  995. SendClientMessage(playerid, COLOR_YELLOW2, "| - Backup");
  996. SendClientMessage(playerid, COLOR_YELLOW2, "| - Pacotes");
  997. SendClientMessage(playerid, COLOR_YELLOW2, "| - Cargos");
  998. SendClientMessage(playerid, COLOR_YELLOW2, "| - Desligar");
  999. SendClientMessage(playerid, COLOR_YELLOW2, "|");
  1000. SendClientMessage(playerid, COLOR_WHITE, "|______________|00:00|");
  1001. return 0;
  1002. }
  1003. return 0;
  1004. }
  1005. if(CallAdvogado[playerid] == 111)
  1006. {
  1007. new idx;
  1008. tmp = strtok(text, idx);
  1009. if ((strcmp("sim", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("sim")))
  1010. {
  1011. GetPlayerName(playerid, sendername, sizeof(sendername));
  1012. format(string, sizeof(string), "** %s esta na prisao e um advogado irá ate a DP tentar te soltar.", sendername);
  1013. SendEmpregoMessage(2, TEAM_AZTECAS_COLOR, string);
  1014. SendEmpregoMessage(2, TEAM_AZTECAS_COLOR, "* Quando o Advogado estiver na dp, peça a um Policia para te aceitalo - /aceitar advogado.");
  1015. SendClientMessage(playerid, COLOR_LIGHTRED, "A Mensagem foi enviada para todos os advogados, Por favor espere.");
  1016. WantAdvogado[playerid] = 0;
  1017. CallAdvogado[playerid] = 0;
  1018. return 0;
  1019. }
  1020. else
  1021. {
  1022. SendClientMessage(playerid, COLOR_LIGHTRED, "Nao tem advogado para voce, o tempo na cadeia começou.");
  1023. WantAdvogado[playerid] = 0;
  1024. CallAdvogado[playerid] = 0;
  1025. return 0;
  1026. }
  1027. }
  1028. if(TalkingLive[playerid] != 255)
  1029. {
  1030. GetPlayerName(playerid, sendername, sizeof(sendername));
  1031. if(PlayerInfo[playerid][pEmprego] == 6)
  1032. {
  1033. format(string, sizeof(string), "AoVivo %s: %s", sendername, text);
  1034. OOCNews(COLOR_LIGHTGREEN, string);
  1035. }
  1036. else
  1037. {
  1038. format(string, sizeof(string), "AoVivo %s: %s", sendername, text);
  1039. OOCNews(COLOR_LIGHTGREEN, string);
  1040. }
  1041. return 0;
  1042. }
  1043. if(Mobile[playerid] != 255)
  1044. {
  1045. new idx;
  1046. tmp = strtok(text, idx);
  1047. GetPlayerName(playerid, sendername, sizeof(sendername));
  1048. format(string, sizeof(string), "%s diz (Celular): %s", sendername, text);
  1049. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  1050. //printf("callers line %d called %d caller %d",Mobile[Mobile[playerid]],Mobile[playerid],playerid);
  1051. if(Mobile[playerid] == 191)
  1052. {
  1053. if(!strlen(tmp))
  1054. {
  1055. SendClientMessage(playerid, TEAM_CYAN_COLOR, "Denuncia: Desculpe, Nao intendi");
  1056. return 0;
  1057. }
  1058. new turner[MAX_PLAYER_NAME];
  1059. new wanted[128];
  1060. GetPlayerName(playerid, turner, sizeof(turner));
  1061. SendClientMessage(playerid, TEAM_CYAN_COLOR, "Denuncia: Temos alertado todas as unidades na área.");
  1062. SendClientMessage(playerid, TEAM_CYAN_COLOR, "Obrigado por Relatar o Ocorrido");
  1063. format(wanted, sizeof(wanted), "Denuncia: Todas Unidades IA: Chamador: %s",turner);
  1064. SendTeamBeepMessage(1, TEAM_CYAN_COLOR, wanted);
  1065. format(wanted, sizeof(wanted), "Denuncia: Incidente: %s",text);
  1066. SendTeamMessage(1, TEAM_CYAN_COLOR, wanted);
  1067. SendClientMessage(playerid, COLOR_GRAD2, " Ninghem na linha...");
  1068. Mobile[playerid] = 255;
  1069. return 0;
  1070. }
  1071. if(Mobile[playerid] == 191)
  1072. {
  1073. if(!strlen(tmp))
  1074. {
  1075. SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGÊNCIA: Desculpe eu não entendo");
  1076. return 0;
  1077. }
  1078. if ((strcmp("nao", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("nao")))
  1079. {
  1080. new turner[MAX_PLAYER_NAME];
  1081. new wanted[128];
  1082. GetPlayerName(playerid, turner, sizeof(turner));
  1083. SendClientMessage(playerid, COLOR_DBLUE, "COP: Alertamos todos as unidades perto do local.");
  1084. SendClientMessage(playerid, COLOR_DBLUE, "Obrigado por ter relatado o Ocorrido");
  1085. format(wanted, sizeof(wanted), "HQ: Todas as unidadess: Denunciador: %s",turner);
  1086. SendFamilyMessage(1, COLOR_DBLUE, wanted);
  1087. format(wanted, sizeof(wanted), "HQ: Crime: %s, Suspeito: Unknown",PlayerCrime[playerid][pAccusing]);
  1088. SendFamilyMessage(1, COLOR_DBLUE, wanted);
  1089. SendClientMessage(playerid, COLOR_GRAD2, " Ninguém na linha.....");
  1090. Mobile[playerid] = 255;
  1091. return 0;
  1092. }
  1093. new badguy;
  1094. //badguy = strval(tmp);
  1095. badguy = ReturnUser(tmp);
  1096. if (IsPlayerConnected(badguy))
  1097. {
  1098. if(badguy != INVALID_PLAYER_ID)
  1099. {
  1100. if (gTeam[badguy] == 2 || gTeam[badguy] == 1)
  1101. {
  1102. SendClientMessage(playerid, COLOR_DBLUE, "Polícia HQ: Você terá que entrar em contato com os assuntos internos. Esta é uma linha de emergência");
  1103. SendClientMessage(playerid, COLOR_GRAD2, " Ninghem na linha...");
  1104. Mobile[playerid] = 255;
  1105. return 0;
  1106. }
  1107. if (WantedPoints[badguy] > 0)
  1108. {
  1109. SendClientMessage(playerid, COLOR_DBLUE, "Polícia HQ: Unidades já estão atribuídos a esse caso.");
  1110. SendClientMessage(playerid, COLOR_DBLUE, "Obrigado por denunciar este crime");
  1111. SendClientMessage(playerid, COLOR_GRAD2, " Ninguémm na linha...");
  1112. Mobile[playerid] = 255;
  1113. return 0;
  1114. }
  1115. if (badguy == playerid)
  1116. {
  1117. SendClientMessage(playerid, COLOR_DBLUE, "Polícia HQ: Esta linha e de emergencia.");
  1118. SendClientMessage(playerid, COLOR_GRAD2, " Ninguémm na linha...");
  1119. Mobile[playerid] = 255;
  1120. return 0;
  1121. }
  1122. SendClientMessage(playerid, COLOR_DBLUE, "Polícia HQ: Temos alertado todas as unidades na área.");
  1123. SendClientMessage(playerid, COLOR_DBLUE, "Obrigado por denunciar este crime");
  1124. SetPlayerCriminal(badguy,playerid, PlayerCrime[playerid][pAccusing]);
  1125. if(WantedPoints[badguy] > 0) { } else { WantedPoints[badguy] += 2; }
  1126. SendClientMessage(playerid, COLOR_GRAD2, "Ninguémm na linha...");
  1127. Mobile[playerid] = 255;
  1128. return 0;
  1129. }//invalid id
  1130. return 0;
  1131. }//not connected
  1132. else
  1133. {
  1134. format(string, sizeof(string), "Police HQ: Nenhuma informação sobre %s, o nome citado esta correto?",tmp);
  1135. SendClientMessage(playerid, COLOR_DBLUE, string);
  1136. return 0;
  1137. }
  1138. }
  1139. /*if(Mobile[playerid] == 912)
  1140. {
  1141. if(!strlen(tmp))
  1142. {
  1143. SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCIA: Desculpe, nao entendi.");
  1144. return 0;
  1145. }
  1146. strmid(PlayerCrime[playerid][pAccusing], text, 0, strlen(text), 255);
  1147. SendClientMessage(playerid, COLOR_DBLUE, "Polícia HQ: Se você souber o nome do assaltante ou de parte dele, me fale, ou simplesmente dizer não");
  1148. Mobile[playerid] = 913;
  1149. return 0;
  1150. }
  1151. if(Mobile[playerid] == 190)
  1152. {
  1153. if(!strlen(tmp))
  1154. {
  1155. SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCIA: Desculpe não entendo... Policia ou SAMU?");
  1156. return 0;
  1157. }
  1158. else if ((strcmp("policia", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("policia")))
  1159. {
  1160. SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCIA: Voce optou por Policia, Espere.");
  1161. Mobile[playerid] = 912;
  1162. SendClientMessage(playerid, COLOR_DBLUE, "Polícia HQ: Por favor me dê uma breve descrição do crime.");
  1163. return 0;
  1164. }
  1165. else if ((strcmp("SAMU", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("SAMU")))
  1166. {
  1167. SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCIA: Voce optou por SAMU, Espere.");
  1168. Mobile[playerid] = 914;
  1169. SendClientMessage(playerid, TEAM_CYAN_COLOR, "Denuncia: Por favor me dê uma breve descrição do Incidente.");
  1170. return 0;
  1171. }
  1172. else
  1173. {
  1174. SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCIA: Desculpe não entendo... Policia ou SAMU?");
  1175. return 0;
  1176. }
  1177. }*/
  1178. if(IsPlayerConnected(Mobile[playerid]))
  1179. {
  1180. if(Mobile[Mobile[playerid]] == playerid)
  1181. {
  1182. SendClientMessage(Mobile[playerid], COLOR_YELLOW,string);
  1183. }
  1184. }
  1185. else
  1186. {
  1187. //SendClientMessage(playerid, COLOR_YELLOW,"Ninguém lá");
  1188. }
  1189. return 0;
  1190. }
  1191. if (realchat)
  1192. {
  1193. if(gPlayerLogged[playerid] == 0)
  1194. {
  1195. return 0;
  1196. }
  1197. GetPlayerName(playerid, sendername, sizeof(sendername));
  1198. if(!IsPlayerInAnyVehicle(playerid))
  1199. {
  1200. if(PlayerInfo[playerid][pMaskuse] == 1)
  1201. {
  1202. format(string, sizeof(string), "Mascarado diz: %s", text);
  1203. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  1204. }
  1205. else
  1206. {
  1207. format(string, sizeof(string), "%s diz: %s", sendername, text);
  1208. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  1209. }
  1210. }
  1211. else
  1212. {
  1213. if(!IsPlayerInAnyVehicle(playerid))
  1214. {
  1215. if(PlayerInfo[playerid][pMaskuse] == 1)
  1216. {
  1217. format(string, sizeof(string), "Mascarado diz: %s", text);
  1218. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  1219. }
  1220. else
  1221. {
  1222. format(string, sizeof(string), "%s diz: %s", sendername, text);
  1223. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  1224. }
  1225. }
  1226. else
  1227. {
  1228. if(!IsPlayerInAnyVehicle(playerid))
  1229. {
  1230. if(PlayerInfo[playerid][pMaskuse] == 1)
  1231. {
  1232. format(string, sizeof(string), "Mascarado diz: %s", text);
  1233. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  1234. }
  1235. else
  1236. {
  1237. format(string, sizeof(string), "%s diz: %s", sendername, text);
  1238. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  1239. }
  1240. }
  1241. else
  1242. {
  1243. if(PlayerInfo[playerid][pMaskuse] == 1)
  1244. {
  1245. format(string, sizeof(string), "Mascarado diz: %s", text);
  1246. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  1247. }
  1248. else
  1249. {
  1250. format(string, sizeof(string), "%s diz: %s", sendername, text);
  1251. ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  1252. }
  1253. }
  1254. }
  1255. }
  1256. return 0;
  1257. }
  1258. return 1;
  1259. } //acaba aqui
Advertisement
Add Comment
Please, Sign In to add comment