Nake01

Untitled

Apr 11th, 2011
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.00 KB | None | 0 0
  1. // === [Includes] ===
  2. #include <a_samp>
  3. #include <core>
  4. #include <float>
  5. #include <Dini>
  6. #include <dudb>
  7. #include <dutils>
  8. #define FILTERSCRIPT
  9. #pragma tabsize 0
  10. // === [Some configuring] ===
  11.  
  12. #define JOIN_MESSAGES false
  13. #define Leavemessages false
  14. #define leavemessagecolor COLOR_RED
  15. #define joinmessagecolor COLOR_RED
  16.  
  17. // 55 in total (commands)
  18. #define Level1Commands1 "Level 1: /asay, /aviso, /cnn, /force, /vida, /vidaall, /colete, /coleteall, /tapa, /ir, /trazer, /ejetar, /olhar, /dcarro, /rc" // 9
  19. #define Level2Commands1 "Level 2: /supertapa, /explodir, /akill, /kick, /congelar" // 9
  20. #define Level3Commands1 "Level 3: /ban, /jetpack, /veh, /mutar, /rtc" // 9
  21. #define Level4Commands1 "level 4: /vidat, /coletet, /dararma " // 7
  22. #define Level5Commands1 "Level 5: /desarmart, /ann, /pnn, /dnn, /cnnn, /znn" // 7
  23. #define Level6Commands1 "Level 6: /dargrana, /procura" // 5
  24. #define Level7Commands1 "Level 7: /mudarnomep" // 4
  25. #define Level8Commands1 "level 8: /tempo" // 3
  26. #define Level9Commands1 "level 9: /skickoff, /playerinfo" // 3
  27. #define Level10Commands1 "level 10: /trazerall, /explodirall" // 3
  28. #define Level11Commands1 "level 11: /rbans, /rlogs, /mapa, /nomedoserver, /setlevel, /kickall, /banirall, /congelarall, /descongelarall"// 3
  29. #define LevelportoesCommands1 "Portões: /abrirportaobus, /fecharportaobus, /abrirportaodp1, /fecharportaodp1" // 3
  30. #define LevelportoescontCommands1 "Portões da Bope Somente Admin Level 5.: /apbopels, /fpbopels, /apbopels1, /fpbopels1" // 3
  31. #define LevelportoesarenaCommands1 "Portões arena.: /abrirportaoarenac, /fecharportaoarenac, /abrirportaoarenav, /fecharportaoarenav" // 3
  32.  
  33. #define ADMIN_SPEC_TYPE_NONE 0
  34. #define ADMIN_SPEC_TYPE_PLAYER 1
  35. #define ADMIN_SPEC_TYPE_VEHICLE 2
  36. #define BOPE 0
  37. new gSpectateID[MAX_PLAYERS];
  38. new gSpectateType[MAX_PLAYERS];
  39.  
  40. forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
  41. forward ObjectToPoint(Float:radi, objectgt, Float:x, Float:y, Float:z);
  42.  
  43. forward KeyChanges();
  44. new playingfootball[MAX_PLAYERS];
  45. new lastentered[128];
  46.  
  47. forward Congelar(playerid);
  48. forward blindar(playerid);
  49.  
  50.  
  51. // === [Color Defines] ===
  52. #define COLOR_ADM 0x00F600AA
  53. #define COLOR_GREY 0xAFAFAFAA
  54. #define COLOR_PURPLE 0xC2A2DAAA
  55. #define COLOR_YELLOW 0xFFFF00AA
  56. #define COLOR_WHITE 0xFFFFFFAA
  57. #define COLOR_DBLUE 0x2641FEAA
  58. #define COLOR_BLUE 0x33AAFFFF
  59. #define COLOR_GREEN 0x33AA33AA
  60. #define COLOR_GREY 0xAFAFAFAA
  61. #define COLOR_GREEN 0x33AA33AA
  62. #define COLOR_RED 0xFF0000FF
  63. #define COLOR_LIGHTRED 0xFF6347AA
  64. #define COLOR_LIGHTBLUE 0x33CCFFAA
  65. #define COLOR_LIGHTGREEN 0x9ACD32AA
  66. #define COLOR_YELLOW 0xFFFF00AA
  67. #define COLOR_YELLOW2 0xF5DEB3AA
  68. #define COLOR_WHITE 0xFFFFFFAA
  69. #define COLOR_PURPLE 0xC2A2DAAA
  70. #define COLOR_DBLUE 0x2641FEAA
  71. #define COLOR_CYAN 0x00FFFFAA
  72. #define COLOR_SYSTEM 0xEFEFF7AA
  73. #define COR_CINZA 0xAFAFAFAA
  74. #define GDE 0xAFAFAFAA
  75. #define COLOR_COP 0x807FFEAA
  76. #define TIME 1
  77. #define CAR_AMOUNT 590
  78. #define CAR_RESPAW 589
  79. #define COLOR_UPC 0xAA3333AA
  80. #define COLOR_DPA 0x0000BBAA
  81. #define COLOR_TVP 0xAFAFAFAA
  82. #define COLOR_PCA 0x33AA33AA
  83. #define COLOR_PC 0xFF0000FF
  84. #define COLOR_MPC 0x800080AA
  85. #define COLOR_SOLO 0xF6C200AA
  86. #define COLOR_PERIGO 0xEAA25AAA
  87. #define COLOR_EB 0x9FF600AA
  88. #define COLOR_VIP 0x7AB800AA
  89.  
  90. // === [Pragma] ===
  91. #pragma unused ret_memcpy
  92.  
  93.  
  94. // === [Forward] ===
  95. forward IsStringAName(string[]);
  96. forward GetPlayerID(string[]);
  97. forward SendMessageToAdmins(color,const string[]);
  98. forward Restart();
  99. forward Unjail(giveplayerid);
  100. forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
  101.  
  102. // === [Loops] ===
  103. new Mute[MAX_PLAYERS];
  104. new level[MAX_PLAYERS];
  105. new levelvip[MAX_PLAYERS];
  106. new levelcv[MAX_PLAYERS];
  107. new levelada[MAX_PLAYERS];
  108. new leveltcp[MAX_PLAYERS];
  109. new levelbope[MAX_PLAYERS];
  110. new levelreb[MAX_PLAYERS];
  111. new levelpcc[MAX_PLAYERS];
  112. new levelgoe[MAX_PLAYERS];
  113. new levelpm[MAX_PLAYERS];
  114. new levelexc[MAX_PLAYERS];
  115. new freeze[MAX_PLAYERS];
  116. new WarnedTimes[MAX_PLAYERS];
  117. new logged[MAX_PLAYERS];
  118. new logado[MAX_PLAYERS];
  119. new SilentBanKick[MAX_PLAYERS];
  120. new portaoc;
  121. new arenav;
  122. new dpbope1;
  123. new arenaantigac;
  124. new arenaantigav;
  125. new helibls;
  126. new helibls1;
  127.  
  128. // === [Menus] ===
  129. new Menu:TimeMenu;
  130. new Menu:AM;
  131. new Menu:PM;
  132. new Menu:Vehicle;
  133. new futebol;
  134.  
  135. // === [Enum] ===
  136. enum pInfo
  137. {
  138. pAdmin,
  139. pPMs,
  140. pEXC,
  141. pVIP,
  142. pBOPE,
  143. pCV,
  144. pADA,
  145. pTCP,
  146. pPCC,
  147. pREB,
  148. pGOE,
  149. pPM,
  150. }
  151.  
  152. new PlayerInfo[MAX_PLAYERS][pInfo];
  153.  
  154. public OnFilterScriptInit()
  155. {
  156. return 1;
  157. }
  158. public OnFilterScriptExit()
  159. {
  160. return 1;
  161. }
  162. public OnGameModeInit()
  163. {
  164. // Don't use these lines if it's a filterscript
  165. SetGameModeText("Blank Script");
  166. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  167. return 1;
  168. }
  169.  
  170. public OnGameModeExit()
  171. {
  172. return 1;
  173. }
  174.  
  175. public OnPlayerRequestClass(playerid, classid)
  176. {
  177. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  178. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  179. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  180. return 1;
  181. }
  182.  
  183. public OnPlayerConnect(playerid)
  184. {
  185. return 1;
  186. }
  187.  
  188. public OnPlayerDisconnect(playerid, reason)
  189. {
  190. return 1;
  191. }
  192.  
  193. public OnPlayerCommandText(playerid, cmdtext[])
  194. // === [Register] ===
  195. if(strcmp(cmd, "/registrar", true) == 0)
  196. {
  197. tmp = strtok(cmdtext, idx);
  198. GetPlayerName(playerid, playername, sizeof(playername));
  199. if(20 < strlen(tmp) || strlen(tmp) < 4)
  200. {
  201. SendClientMessage(playerid, COLOR_CYAN, "Erro! Sua senha tem que ter mais de 4 e menos de 20 letras/números!");
  202. return 1;
  203. }
  204. if(!strlen(tmp))
  205. {
  206. SendClientMessage(playerid, COLOR_CYAN, "Uso correto: /registrar [senha] ~ Vai fazer com que você fique registrado com o server e seus stats sejam salvos!");
  207. }
  208. else
  209. {
  210. if (!dini_Exists(udb_encode(playername)))
  211. {
  212. dini_Create(udb_encode(playername));
  213. dini_IntSet(udb_encode(playername), "pass", udb_hash(tmp));
  214. dini_Set(udb_encode(playername),"senha",tmp);
  215. PlayerInfo[playerid][pAdmin] = 0;
  216. PlayerInfo[playerid][pVIP] = 0;
  217. PlayerInfo[playerid][pCV] = 0;
  218. PlayerInfo[playerid][pADA] = 0;
  219. PlayerInfo[playerid][pPCC] = 0;
  220. PlayerInfo[playerid][pREB] = 0;
  221. PlayerInfo[playerid][pTCP] = 0;
  222. PlayerInfo[playerid][pEXC] = 0;
  223. PlayerInfo[playerid][pBOPE] = 0;
  224. PlayerInfo[playerid][pGOE] = 0;
  225. PlayerInfo[playerid][pPM] = 0;
  226. dini_IntSet(udb_encode(playername), "level", PlayerInfo[playerid][pAdmin]);
  227. dini_IntSet(udb_encode(playername), "levelvip", PlayerInfo[playerid][pVIP]);
  228. dini_IntSet(udb_encode(playername), "levelcv", PlayerInfo[playerid][pCV]);
  229. dini_IntSet(udb_encode(playername), "levelada", PlayerInfo[playerid][pADA]);
  230. dini_IntSet(udb_encode(playername), "leveltcp", PlayerInfo[playerid][pTCP]);
  231. dini_IntSet(udb_encode(playername), "levelbope", PlayerInfo[playerid][pBOPE]);
  232. dini_IntSet(udb_encode(playername), "levelexc", PlayerInfo[playerid][pEXC]);
  233. dini_IntSet(udb_encode(playername), "levelpcc", PlayerInfo[playerid][pPCC]);
  234. dini_IntSet(udb_encode(playername), "levelreb", PlayerInfo[playerid][pREB]);
  235. dini_IntSet(udb_encode(playername), "levelgoe", PlayerInfo[playerid][pGOE]);
  236. dini_IntSet(udb_encode(playername), "levelpm", PlayerInfo[playerid][pPM]);
  237. format(string, sizeof(string), "%s(%i) registrado com a senha \"%s\"", playername, playerid, tmp);
  238. printf(string);
  239. format(string, sizeof(string), "Você criou a conta %s com a senha \"%s\". Não se esqueça da sua senha!", playername, tmp);
  240. SendClientMessage(playerid, COLOR_CYAN, string);
  241. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  242. ShowPlayerDialog(playerid, 60, DIALOG_STYLE_LIST, "Bem vindo, escolha uma organização:", "Comando Vermelho\nAmigos dos Amigos\nTerceiro Comando Puro\nPrimeiro Comando da Capital\nPolicia Militar", "Selecionar", "");
  243. }
  244. else
  245. {
  246. SendClientMessage(playerid, COLOR_YELLOW, "Um erro aconteceu enquanto tentava se registrar ao server, vaza fakes");
  247. format(string, sizeof(string), "O nick %s já é registrado nesse server!", playername,tmp);
  248. SendClientMessage(playerid, COLOR_YELLOW, string);
  249. }
  250. }
  251.  
  252. return 1;
  253. }
  254. // === [Login] ===
  255. if(strcmp(cmd, "/login", true) == 0)
  256. {
  257. if(logged[playerid] == 1)
  258. {
  259. SendClientMessage(playerid, COLOR_CYAN, "Você já está logado!");
  260. return 1;
  261. }
  262. tmp = strtok(cmdtext, idx);
  263. GetPlayerName(playerid, playername, sizeof(playername));
  264. if(!strlen(tmp))
  265. {
  266. SendClientMessage(playerid, COLOR_GREEN, "Uso correto: [senha]");
  267. }
  268. else
  269. {
  270. if(dini_Exists(udb_encode(playername)))
  271. {
  272. if(logged[playerid] == 0)
  273. {
  274. tmp2 = dini_Get(udb_encode(playername), "pass");
  275. if(udb_hash(tmp) != strval(tmp2))
  276. {
  277. new PlayerName[24];
  278. GetPlayerName(playerid, PlayerName, 30);
  279. format(string, sizeof(string), "Erro! Você digitou a senha errada para %s!", PlayerName);
  280. SendClientMessage(playerid, COLOR_RED, string);
  281. }
  282. else
  283. {
  284. new pname[MAX_PLAYER_NAME];
  285. GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  286. logged[playerid] = 1;
  287. logado[playerid] = 1;
  288. dini_Set(udb_encode(playername),"senha",tmp);
  289. PlayerInfo[playerid][pAdmin] = dini_Int(udb_encode(playername), "level");
  290. PlayerInfo[playerid][pPMs] = dini_Int(udb_encode(playername), "SeePMs");
  291. PlayerInfo[playerid][pVIP] = dini_Int(udb_encode(playername), "levelvip");
  292. PlayerInfo[playerid][pCV] = dini_Int(udb_encode(playername), "levelcv");
  293. PlayerInfo[playerid][pADA] = dini_Int(udb_encode(playername), "levelada");
  294. PlayerInfo[playerid][pTCP] = dini_Int(udb_encode(playername), "leveltcp");
  295. PlayerInfo[playerid][pBOPE] = dini_Int(udb_encode(playername), "levelbope");
  296. PlayerInfo[playerid][pEXC] = dini_Int(udb_encode(playername), "levelexc");
  297. PlayerInfo[playerid][pPCC] = dini_Int(udb_encode(playername), "levelpcc");
  298. PlayerInfo[playerid][pREB] = dini_Int(udb_encode(playername), "levelreb");
  299. PlayerInfo[playerid][pGOE] = dini_Int(udb_encode(playername), "levelgoe");
  300. PlayerInfo[playerid][pPM] = dini_Int(udb_encode(playername), "levelpm");
  301.  
  302. GameTextForPlayer(playerid, "~G~ LOGADO COM SUCESSO !",2000,1);
  303. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  304.  
  305. if(PlayerInfo[playerid][pAdmin] == 0)
  306. {
  307. new PlayerName[24];
  308. GetPlayerName(playerid, PlayerName, 30);
  309. format(string, sizeof(string), "Logado como: %s\nMembro Normal", PlayerName);
  310. SendClientMessage(playerid, COLOR_CYAN, string);
  311. PlayerInfo[playerid][pAdmin] = 0;
  312. dini_IntSet(udb_encode(playername), "level", PlayerInfo[playerid][pAdmin]);
  313.  
  314. }
  315. if(PlayerInfo[playerid][pVIP] == 1)
  316. {
  317. new PlayerName[24];
  318. GetPlayerName(playerid, PlayerName, 30);
  319. format(string, sizeof(string), "Logado como: %s, VIP | Comandos: /comandosvip", PlayerName);
  320. SendClientMessage(playerid, COLOR_CYAN, string);
  321. GivePlayerMoney(playerid, 100000);
  322.  
  323. }
  324. if(PlayerInfo[playerid][pCV] == 1)
  325. {
  326. new PlayerName[24];
  327. GetPlayerName(playerid, PlayerName, 30);
  328. format(string, sizeof(string), "Logado como: %s, Aviãozinho do CV ! | Comandos: /comandoscv", PlayerName);
  329. SendClientMessage(playerid, COLOR_CYAN, string);
  330.  
  331. }
  332. if(PlayerInfo[playerid][pCV] == 2)
  333. {
  334. new PlayerName[24];
  335. GetPlayerName(playerid, PlayerName, 30);
  336. format(string, sizeof(string), "Logado como: %s, Fogueteiro ! | Comandos: /comandoscv", PlayerName);
  337. SendClientMessage(playerid, COLOR_CYAN, string);
  338.  
  339. }
  340. if(PlayerInfo[playerid][pCV] == 3)
  341. {
  342. new PlayerName[24];
  343. GetPlayerName(playerid, PlayerName, 30);
  344. format(string, sizeof(string), "Logado como: %s, Dono da Boca ! | Comandos: /comandoscv", PlayerName);
  345. SendClientMessage(playerid, COLOR_CYAN, string);
  346.  
  347. }
  348. if(PlayerInfo[playerid][pCV] == 4)
  349. {
  350. new PlayerName[24];
  351. GetPlayerName(playerid, PlayerName, 30);
  352. format(string, sizeof(string), "Logado como: %s, Dono do Morro ! | Comandos: /comandoscv", PlayerName);
  353. SendClientMessage(playerid, COLOR_CYAN, string);
  354.  
  355. }
  356. if(PlayerInfo[playerid][pPCC] == 1)
  357. {
  358. new PlayerName[24];
  359. GetPlayerName(playerid, PlayerName, 30);
  360. format(string, sizeof(string), "Logado como: %s, Membro do Primeiro Comando da Capital | Comandos: /comandospcc", PlayerName);
  361. SendClientMessage(playerid, COLOR_CYAN, string);
  362. }
  363. if(PlayerInfo[playerid][pPCC] == 2)
  364. {
  365. new PlayerName[24];
  366. GetPlayerName(playerid, PlayerName, 30);
  367. format(string, sizeof(string), "Logado como: %s, Líder do Primeiro Comando da Capital | Comandos: /comandospcc", PlayerName);
  368. SendClientMessage(playerid, COLOR_CYAN, string);
  369.  
  370. }
  371. if(PlayerInfo[playerid][pPCC] == 3)
  372. {
  373. new PlayerName[24];
  374. GetPlayerName(playerid, PlayerName, 30);
  375. format(string, sizeof(string), "Logado como: %s, Presidente do Primeiro Comando da Capital | Comandos: /comandospcc", PlayerName);
  376. SendClientMessage(playerid, COLOR_CYAN, string);
  377.  
  378. }
  379. if(PlayerInfo[playerid][pREB] == 1)
  380. {
  381. new PlayerName[24];
  382. GetPlayerName(playerid, PlayerName, 30);
  383. format(string, sizeof(string), "Logado como: %s, Repórter | Jornalista !", PlayerName);
  384. SendClientMessage(playerid, COLOR_CYAN, string);
  385. }
  386. if(PlayerInfo[playerid][pREB] == 2)
  387. {
  388. new PlayerName[24];
  389. GetPlayerName(playerid, PlayerName, 30);
  390. format(string, sizeof(string), "Logado como: %s, Repórter | Vice-Diretor !", PlayerName);
  391. SendClientMessage(playerid, COLOR_CYAN, string);
  392. }
  393. if(PlayerInfo[playerid][pREB] == 3)
  394. {
  395. new PlayerName[24];
  396. GetPlayerName(playerid, PlayerName, 30);
  397. format(string, sizeof(string), "Logado como: %s, Repórter | Diretor !", PlayerName);
  398. SendClientMessage(playerid, COLOR_CYAN, string);
  399. }
  400. if(PlayerInfo[playerid][pREB] == 4)
  401. {
  402. new PlayerName[24];
  403. GetPlayerName(playerid, PlayerName, 30);
  404. format(string, sizeof(string), "Logado como: %s, Repórter | Diretor !", PlayerName);
  405. SendClientMessage(playerid, COLOR_CYAN, string);
  406. }
  407. if(PlayerInfo[playerid][pPM] == 1)
  408. {
  409. new PlayerName[24];
  410. GetPlayerName(playerid, PlayerName, 30);
  411. format(string, sizeof(string), "Logado como: %s, Oficial da Polícia Militar | Novato !", PlayerName);
  412. SendClientMessage(playerid, COLOR_CYAN, string);
  413. }
  414. if(PlayerInfo[playerid][pPM] == 2)
  415. {
  416. new PlayerName[24];
  417. GetPlayerName(playerid, PlayerName, 30);
  418. format(string, sizeof(string), "Logado como: %s, Oficial da Polícia Militar | Capitão !", PlayerName);
  419. SendClientMessage(playerid, COLOR_CYAN, string);
  420. }
  421. if(PlayerInfo[playerid][pPM] == 3)
  422. {
  423. new PlayerName[24];
  424. GetPlayerName(playerid, PlayerName, 30);
  425. format(string, sizeof(string), "Logado como: %s, Oficial da Polícia Militar | Coronel !", PlayerName);
  426. SendClientMessage(playerid, COLOR_CYAN, string);
  427. }
  428. if(PlayerInfo[playerid][pADA] == 1)
  429. {
  430. new PlayerName[24];
  431. GetPlayerName(playerid, PlayerName, 30);
  432. format(string, sizeof(string), "Logado como: %s, Membro dos Amigos dos Amigos ! | Comandos: /comandosada", PlayerName);
  433. SendClientMessage(playerid, COLOR_CYAN, string);
  434. }
  435. if(PlayerInfo[playerid][pADA] == 2)
  436. {
  437. new PlayerName[24];
  438. GetPlayerName(playerid, PlayerName, 30);
  439. format(string, sizeof(string), "Logado como: %s, Líder dos Amigos dos Amigos ! | Comandos: /comandosada", PlayerName);
  440. SendClientMessage(playerid, COLOR_CYAN, string);
  441. }
  442. if(PlayerInfo[playerid][pADA] == 3)
  443. {
  444. new PlayerName[24];
  445. GetPlayerName(playerid, PlayerName, 30);
  446. format(string, sizeof(string), "Logado como: %s, Presidente dos Amigos dos Amigos ! | Comandos: /comandosada", PlayerName);
  447. SendClientMessage(playerid, COLOR_CYAN, string);
  448.  
  449. }
  450. if(PlayerInfo[playerid][pTCP] == 1)
  451. {
  452. new PlayerName[24];
  453. GetPlayerName(playerid, PlayerName, 30);
  454. format(string, sizeof(string), "Logado como: %s, Membro do Terceiro Comando Puro ! | Comandos: /comandostcp", PlayerName);
  455. SendClientMessage(playerid, COLOR_CYAN, string);
  456. }
  457. if(PlayerInfo[playerid][pTCP] == 2)
  458. {
  459. new PlayerName[24];
  460. GetPlayerName(playerid, PlayerName, 30);
  461. format(string, sizeof(string), "Logado como: %s, Líder do Terceiro Comando Puro ! | Comandos: /comandostcp", PlayerName);
  462. SendClientMessage(playerid, COLOR_CYAN, string);
  463. }
  464. if(PlayerInfo[playerid][pTCP] == 3)
  465. {
  466. new PlayerName[24];
  467. GetPlayerName(playerid, PlayerName, 30);
  468. format(string, sizeof(string), "Logado como: %s, Presidente do Terceiro Comando Puro ! | Comandos: /comandostcp", PlayerName);
  469. SendClientMessage(playerid, COLOR_CYAN, string);
  470. }
  471. if(PlayerInfo[playerid][pBOPE] == 1)
  472. {
  473. new PlayerName[24];
  474. GetPlayerName(playerid, PlayerName, 30);
  475. format(string, sizeof(string), "Logado como: %s, Major do BOPE ! | Comandos: /comandosbope", PlayerName);
  476. SendClientMessage(playerid, COLOR_CYAN, string);
  477.  
  478. }
  479. if(PlayerInfo[playerid][pBOPE] == 2)
  480. {
  481. new PlayerName[24];
  482. GetPlayerName(playerid, PlayerName, 30);
  483. format(string, sizeof(string), "Logado como: %s, Capitão do BOPE ! | Comandos: /comandosbope", PlayerName);
  484. SendClientMessage(playerid, COLOR_CYAN, string);
  485. }
  486. if(PlayerInfo[playerid][pBOPE] == 3)
  487. {
  488. new PlayerName[24];
  489. GetPlayerName(playerid, PlayerName, 30);
  490. format(string, sizeof(string), "Logado como: %s, Coronel do BOPE ! | Comandos: /comandosbope", PlayerName);
  491. SendClientMessage(playerid, COLOR_CYAN, string);
  492. }
  493. if(PlayerInfo[playerid][pBOPE] == 4)
  494. {
  495. new PlayerName[24];
  496. GetPlayerName(playerid, PlayerName, 30);
  497. format(string, sizeof(string), "Logado como: %s, PRESIDENTE do BOPE ! | Comandos: /comandosbope", PlayerName);
  498. SendClientMessage(playerid, COLOR_CYAN, string);
  499. }
  500. if(PlayerInfo[playerid][pEXC] == 1)
  501. {
  502. new PlayerName[24];
  503. GetPlayerName(playerid, PlayerName, 30);
  504. format(string, sizeof(string), "Logado como: %s, Soldado do EXERCITO ! | Comandos: /comandosexc", PlayerName);
  505. SendClientMessage(playerid, COLOR_CYAN, string);
  506.  
  507. }
  508. if(PlayerInfo[playerid][pEXC] == 2)
  509. {
  510. new PlayerName[24];
  511. GetPlayerName(playerid, PlayerName, 30);
  512. format(string, sizeof(string), "Logado como: %s, Major do EXERCITO ! | Comandos: /comandosexc", PlayerName);
  513. SendClientMessage(playerid, COLOR_CYAN, string);
  514. }
  515. if(PlayerInfo[playerid][pEXC] == 3)
  516. {
  517. new PlayerName[24];
  518. GetPlayerName(playerid, PlayerName, 30);
  519. format(string, sizeof(string), "Logado como: %s, Capitão do EXERCITO ! | Comandos: /comandosexc", PlayerName);
  520. SendClientMessage(playerid, COLOR_CYAN, string);
  521. }
  522. if(PlayerInfo[playerid][pEXC] == 4)
  523. {
  524. new PlayerName[24];
  525. GetPlayerName(playerid, PlayerName, 30);
  526. format(string, sizeof(string), "Logado como: %s, Coronel do EXERCITO ! | Comandos: /comandosexc", PlayerName);
  527. SendClientMessage(playerid, COLOR_CYAN, string);
  528. }
  529. if(PlayerInfo[playerid][pGOE] == 1)
  530. {
  531. new PlayerName[24];
  532. GetPlayerName(playerid, PlayerName, 30);
  533. format(string, sizeof(string), "Logado como: %s, Oficial do GOE ! | Comandos: /comandosgoe", PlayerName);
  534. SendClientMessage(playerid, COLOR_CYAN, string);
  535. }
  536. if(PlayerInfo[playerid][pGOE] == 2)
  537. {
  538. new PlayerName[24];
  539. GetPlayerName(playerid, PlayerName, 30);
  540. format(string, sizeof(string), "Logado como: %s, Capitão do GOE ! | Comandos: /comandosgoe", PlayerName);
  541. SendClientMessage(playerid, COLOR_CYAN, string);
  542. }
  543. if(PlayerInfo[playerid][pGOE] == 3)
  544. {
  545. new PlayerName[24];
  546. GetPlayerName(playerid, PlayerName, 30);
  547. format(string, sizeof(string), "Logado como: %s, Coronel do GOE ! | Comandos: /comandosgoe", PlayerName);
  548. SendClientMessage(playerid, COLOR_CYAN, string);
  549. }
  550. if(PlayerInfo[playerid][pAdmin] == 1)
  551. {
  552. new PlayerName[24];
  553. GetPlayerName(playerid, PlayerName, 30);
  554. format(string, sizeof(string), "Logado como: %s, Admin level 1 | Todos os comandos: /adminhelp", PlayerName);
  555. SendClientMessage(playerid, COLOR_CYAN, string);
  556. format(string, sizeof(string), "~w~ADMIN ~g~onn");
  557. GameTextForAll(string, 5000, 1);
  558. format(string, sizeof(string), "%s Detectado como Administrador [Level: 1] ", pname);
  559. SendClientMessageToAll(COLOR_ADM, string);
  560.  
  561. }
  562. if(PlayerInfo[playerid][pAdmin] == 2)
  563. {
  564. new PlayerName[24];
  565. GetPlayerName(playerid, PlayerName, 30);
  566. format(string, sizeof(string), "Logado como: %s, Admin level 2 | Todos os comandos: /adminhelp", PlayerName);
  567. SendClientMessage(playerid, COLOR_CYAN, string);
  568. format(string, sizeof(string), "~w~ADMIN ~g~onn");
  569. GameTextForAll(string, 5000, 1);
  570. format(string, sizeof(string), "%s Detectado como Administrador [Level: 2] ", pname);
  571. SendClientMessageToAll(COLOR_ADM, string);
  572. }
  573. if(PlayerInfo[playerid][pAdmin] == 3)
  574. {
  575. new PlayerName[24];
  576. GetPlayerName(playerid, PlayerName, 30);
  577. format(string, sizeof(string), "Logado como: %s, Admin level 3 | Todos os comandos: /adminhelp", PlayerName);
  578. SendClientMessage(playerid, COLOR_CYAN, string);
  579. IsPlayerAdmin(playerid);
  580. format(string, sizeof(string), "~w~ADMIN ~g~onn");
  581. GameTextForAll(string, 5000, 1);
  582. format(string, sizeof(string), "%s Detectado como Administrador [Level: 3] ", pname);
  583. SendClientMessageToAll(COLOR_ADM, string);
  584. }
  585. if(PlayerInfo[playerid][pAdmin] == 4)
  586. {
  587. new PlayerName[24];
  588. GetPlayerName(playerid, PlayerName, 30);
  589. format(string, sizeof(string), "Logado como: %s, Admin level 4 | Todos os comandos: /adminhelp", PlayerName);
  590. SendClientMessage(playerid, COLOR_CYAN, string);
  591. IsPlayerAdmin(playerid);
  592. format(string, sizeof(string), "~w~ADMIN ~g~onn");
  593. GameTextForAll(string, 5000, 1);
  594. format(string, sizeof(string), "%s Detectado como Administrador [Level: 4] ", pname);
  595. SendClientMessageToAll(COLOR_ADM, string);
  596. }
  597.  
  598. if(PlayerInfo[playerid][pAdmin] == 5)
  599. {
  600. new PlayerName[24];
  601. GetPlayerName(playerid, PlayerName, 30);
  602. format(string, sizeof(string), "Logado como: %s, Admin level 5 | Todos os comandos: /adminhelp", PlayerName);
  603. SendClientMessage(playerid, COLOR_CYAN, string);
  604. IsPlayerAdmin(playerid);
  605. format(string, sizeof(string), "~w~ADMIN ~g~onn");
  606. GameTextForAll(string, 5000, 1);
  607. format(string, sizeof(string), "%s Detectado como Administrador [Level: 5] ", pname);
  608. SendClientMessageToAll(COLOR_ADM, string);
  609. }
  610.  
  611. if(PlayerInfo[playerid][pAdmin] == 6)
  612. {
  613. new PlayerName[24];
  614. GetPlayerName(playerid, PlayerName, 30);
  615. format(string, sizeof(string), "Logado como: %s, Admin level 6 | Todos os comandos: /adminhelp", PlayerName);
  616. SendClientMessage(playerid, COLOR_CYAN, string);
  617. IsPlayerAdmin(playerid);
  618. format(string, sizeof(string), "~w~ADMIN ~g~onn");
  619. GameTextForAll(string, 5000, 1);
  620. format(string, sizeof(string), "%s Detectado como Administrador [Level: 6] ", pname);
  621. SendClientMessageToAll(COLOR_ADM, string);
  622. }
  623.  
  624. if(PlayerInfo[playerid][pAdmin] == 7)
  625. {
  626. new PlayerName[24];
  627. GetPlayerName(playerid, PlayerName, 30);
  628. format(string, sizeof(string), "Logado como: %s, Admin level 7 | Todos os comandos: /adminhelp", PlayerName);
  629. SendClientMessage(playerid, COLOR_CYAN, string);
  630. IsPlayerAdmin(playerid);
  631. format(string, sizeof(string), "~w~ADMIN ~g~onn");
  632. GameTextForAll(string, 5000, 1);
  633. format(string, sizeof(string), "%s Detectado como Administrador [Level: 7] ", pname);
  634. SendClientMessageToAll(COLOR_ADM, string);
  635. }
  636.  
  637. if(PlayerInfo[playerid][pAdmin] == 8)
  638. {
  639. new PlayerName[24];
  640. GetPlayerName(playerid, PlayerName, 30);
  641. format(string, sizeof(string), "Logado como: %s, Admin level 8 | Todos os comandos: /adminhelp", PlayerName);
  642. SendClientMessage(playerid, COLOR_CYAN, string);
  643. IsPlayerAdmin(playerid);
  644. format(string, sizeof(string), "~w~ADMIN ~g~onn");
  645. GameTextForAll(string, 5000, 1);
  646. format(string, sizeof(string), "%s Detectado como Administrador [Level: 8] ", pname);
  647. SendClientMessageToAll(COLOR_ADM, string);
  648. }
  649. if(PlayerInfo[playerid][pAdmin] == 9)
  650. {
  651. new PlayerName[24];
  652. GetPlayerName(playerid, PlayerName, 30);
  653. format(string, sizeof(string), "Logado como: %s, Admin level 9 | Todos os comandos: /adminhelp", PlayerName);
  654. SendClientMessage(playerid, COLOR_CYAN, string);
  655. IsPlayerAdmin(playerid);
  656. format(string, sizeof(string), "~w~ADMIN ~g~onn");
  657. GameTextForAll(string, 5000, 1);
  658. format(string, sizeof(string), "%s Detectado como Administrador [Level: 9] ", pname);
  659. SendClientMessageToAll(COLOR_ADM, string);
  660. }
  661. if(PlayerInfo[playerid][pAdmin] == 10)
  662. {
  663. new PlayerName[24];
  664. GetPlayerName(playerid, PlayerName, 30);
  665. format(string, sizeof(string), "Logado como: %s, Admin level 10 | Administrador Maior | Todos os comandos: /adminhelp", PlayerName);
  666. SendClientMessage(playerid, COLOR_CYAN, string);
  667. IsPlayerAdmin(playerid);
  668. format(string, sizeof(string), "~w~ADMIN ~g~onn");
  669. GameTextForAll(string, 5000, 1);
  670. format(string, sizeof(string), "%s Detectado como Administrador [Level: 10] ", pname);
  671. SendClientMessageToAll(COLOR_ADM, string);
  672. }
  673. if(PlayerInfo[playerid][pAdmin] == 11)
  674. {
  675. new PlayerName[24];
  676. GetPlayerName(playerid, PlayerName, 30);
  677. format(string, sizeof(string), "Logado como: %s, Admin level 11 (Fundador da Equipe) | Todos os comandos: /adminhelp", PlayerName);
  678. SendClientMessage(playerid, COLOR_CYAN, string);
  679. IsPlayerAdmin(playerid);
  680. format(string, sizeof(string), "~w~ADMIN ~g~onn");
  681. GameTextForAll(string, 5000, 1);
  682. format(string, sizeof(string), "%s Detectado como Administrador [Level: 11] ", pname);
  683. SendClientMessageToAll(COLOR_ADM, string);
  684. }
  685. return 1;
  686. }
  687. }
  688. }
  689. else
  690. {
  691. format(string, sizeof(string), "A conta %s, não existe nesse servidor!", playername);
  692. SendClientMessage(playerid, COLOR_CYAN, string);
  693. SendClientMessage(playerid, COLOR_CYAN, "Por favor use /registrar (senha) para se registrar.");
  694. }
  695. }
  696.  
  697. return 1;
  698. }
  699. public OnPlayerRequestSpawn(playerid)
  700. {
  701. if(logado[playerid] == 1)
  702. {
  703. //deixa ele nascer
  704. return 1;
  705. }
  706. else
  707. {
  708. ShowPlayerDialog(playerid,76,DIALOG_STYLE_MSGBOX,"::::::TUTORIAL DE INICIO:::::","Para jogar em nosso servidor é preciso ser registrado: use /registrar [sua senha] e depois /login [sua senha]\r\n Se voce ja for um player registrado use /login [sua senha]\r\n Sua conta ira servir para armazenar seu dinheiro e para voce ter acesso aos comandos do servidor !","Ok", "Cancelar");
  709. return 0;
  710. }
  711. }
  712.  
  713. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  714. {
  715. if(dialogid == 60)
  716. {
  717. if(response)
  718. {
  719. if(listitem == 0)
  720. {
  721. levelcv[playerid] = 1;
  722. PlayerInfo[playerid][pCV] = 1;
  723. }
  724. if(listitem == 1)
  725. {
  726. levelada[playerid] = 1;
  727. PlayerInfo[playerid][pADA] = 1;
  728. }
  729. if(listitem == 2)
  730. {
  731. leveltcp[playerid] = 1;
  732. PlayerInfo[playerid][pTCP] = 1;
  733. }
  734. if(listitem == 3)
  735. {
  736. levelpcc[playerid] = 1;
  737. PlayerInfo[playerid][pPCC] = 1;
  738. }
  739. if(listitem == 4)
  740. {
  741. levelpm[playerid] = 1;
  742. PlayerInfo[playerid][pPM] = 1;
  743.  
  744.  
  745. }
  746. }
  747. }
  748. return 1;
  749. }
  750.  
  751. public OnPlayerSpawn(playerid)
  752. {
  753.  
  754. new sendername[MAX_PLAYER_NAME];
  755.  
  756. if(levelreb[playerid] >= 1 || PlayerInfo[playerid][pREB] >= 1)
  757. {
  758. //REPÓRTERES
  759. SetPlayerInterior(playerid,0);
  760. SetPlayerPos(playerid,-749.1455,-1346.5336,13.5140);
  761. GameTextForPlayer(playerid,"HQ DOS REPÓRTERES", 1000,1);
  762. GivePlayerWeapon(playerid,24,999999);
  763. GivePlayerWeapon(playerid,27,999999);
  764. GivePlayerWeapon(playerid,29,999999);
  765. GivePlayerWeapon(playerid,30,999999);
  766. GivePlayerWeapon(playerid,34,999999);
  767. GivePlayerWeapon(playerid,0,999999);
  768. SetPlayerArmour(playerid, 100.0);
  769. SetPlayerColor(playerid, COLOR_RED);
  770. SetPlayerSkin(playerid, 187);
  771. SetPlayerHealth(playerid, 100.0);
  772. SetPlayerVirtualWorld(playerid, 0);
  773. TogglePlayerControllable(playerid,1);
  774. SendClientMessage(playerid, COLOR_WHITE, "Use /comandosreb, para ver os comandos de sua Facção !");
  775. levelreb[playerid] = 1;
  776. PlayerInfo[playerid][pREB] = 1;
  777. GetPlayerName(playerid, sendername, sizeof(sendername));
  778. return dini_IntSet(udb_encode(sendername), "levelreb", levelreb[playerid]);
  779. }
  780.  
  781.  
  782. if(levelcv[playerid] >= 1 || PlayerInfo[playerid][pCV] >= 1)
  783. {
  784. //COMANDO VERMELHO
  785. SetPlayerInterior(playerid,0);
  786. SetPlayerPos(playerid,-2567.4292,908.1173,64.8281);
  787. GameTextForPlayer(playerid,"FAVELA: COMPLEXO DO ALEMAO", 1000,1);
  788. GivePlayerWeapon(playerid,24,999999);
  789. GivePlayerWeapon(playerid,27,999999);
  790. GivePlayerWeapon(playerid,29,999999);
  791. GivePlayerWeapon(playerid,30,999999);
  792. GivePlayerWeapon(playerid,34,999999);
  793. GivePlayerWeapon(playerid,0,999999);
  794. SetPlayerArmour(playerid, 100.0);
  795. SetPlayerColor(playerid, COLOR_RED);
  796. SetPlayerSkin(playerid, 107);
  797. SetPlayerHealth(playerid, 100.0);
  798. SetPlayerVirtualWorld(playerid, 0);
  799. TogglePlayerControllable(playerid,1);
  800. SendClientMessage(playerid, COLOR_WHITE, "Use /comandoscv, para ver os comandos de sua Facção !");
  801. SendClientMessage(playerid, COLOR_RED, "Quem comanda é o comando, e o comando e VERMELHO !");
  802. levelcv[playerid] = 1;
  803. GetPlayerName(playerid, sendername, sizeof(sendername));
  804. PlayerInfo[playerid][pCV] = 1;
  805. return dini_IntSet(udb_encode(sendername), "levelcv", levelcv[playerid]);
  806. }
  807.  
  808. if(levelada[playerid] >= 1 || PlayerInfo[playerid][pADA] >= 1)
  809. {
  810. // ADA
  811. SetPlayerInterior(playerid,0);
  812. SetPlayerPos(playerid,-2548.8665,-465.9125,69.1830);
  813. GameTextForPlayer(playerid,"FAVELA: ROCINHA", 1000,1);
  814. GivePlayerWeapon(playerid,24,999999);
  815. GivePlayerWeapon(playerid,27,999999);
  816. GivePlayerWeapon(playerid,29,999999);
  817. GivePlayerWeapon(playerid,30,999999);
  818. GivePlayerWeapon(playerid,34,999999);
  819. GivePlayerWeapon(playerid,0,999999);
  820. SetPlayerArmour(playerid, 100.0);
  821. SetPlayerColor(playerid, COLOR_YELLOW);
  822. SetPlayerSkin(playerid, 14);
  823. SetPlayerHealth(playerid, 100.0);
  824. SetPlayerVirtualWorld(playerid, 0);
  825. TogglePlayerControllable(playerid,1);
  826. SendClientMessage(playerid, COLOR_WHITE, "Use /comandosada, para ver os comandos de sua Facção !");
  827. SendClientMessage(playerid, COLOR_YELLOW, "Somos Amigos dos Amigos, sem cumpri vacilação !");
  828. levelada[playerid] = 1;
  829. GetPlayerName(playerid, sendername, sizeof(sendername));
  830. PlayerInfo[playerid][pADA] = 1;
  831. return dini_IntSet(udb_encode(sendername), "levelada", levelada[playerid]);
  832. }
  833.  
  834. if(leveltcp[playerid] >= 1 || PlayerInfo[playerid][pTCP] >= 1)
  835. {
  836. // TCP
  837. SetPlayerInterior(playerid,0);
  838. SetPlayerPos(playerid,-2432.9561,1178.8481,35.0156);
  839. GameTextForPlayer(playerid,"FAVELA: FAZENDINHA", 1000,1);
  840. GivePlayerWeapon(playerid,24,999999);
  841. GivePlayerWeapon(playerid,27,999999);
  842. GivePlayerWeapon(playerid,29,999999);
  843. GivePlayerWeapon(playerid,30,999999);
  844. GivePlayerWeapon(playerid,34,999999);
  845. GivePlayerWeapon(playerid,0,999999);
  846. SetPlayerArmour(playerid, 100.0);
  847. SetPlayerColor(playerid, 0x0078F6AA);
  848. SetPlayerSkin(playerid, 29);
  849. SetPlayerHealth(playerid, 100.0);
  850. SetPlayerVirtualWorld(playerid, 0);
  851. TogglePlayerControllable(playerid,1);
  852. SendClientMessage(playerid, COLOR_WHITE, "Use /comandostcp, para ver os comandos de sua Facção !");
  853. SendClientMessage(playerid, 0x0078F6AA, "Terceiro Comando Puro, fala que é nóis !");
  854. leveltcp[playerid] = 1;
  855. PlayerInfo[playerid][pTCP] = 1;
  856. GetPlayerName(playerid, sendername, sizeof(sendername));
  857. return dini_IntSet(udb_encode(sendername), "leveltcp", leveltcp[playerid]);
  858. }
  859.  
  860. if(levelpcc[playerid] >= 1 || PlayerInfo[playerid][pPCC] >= 1)
  861. {
  862. // PCC
  863. SetPlayerInterior(playerid,0);
  864. SetPlayerPos(playerid,-2596.9053,908.8477,64.8281);
  865. GivePlayerWeapon(playerid,24,999999);
  866. GivePlayerWeapon(playerid,27,999999);
  867. GivePlayerWeapon(playerid,29,999999);
  868. GivePlayerWeapon(playerid,30,999999);
  869. GivePlayerWeapon(playerid,34,999999);
  870. GivePlayerWeapon(playerid,24,999999);
  871. GivePlayerWeapon(playerid,0,999999);
  872. SetPlayerArmour(playerid, 100.0);
  873. SetPlayerColor(playerid, 0xA81B00AA);
  874. SetPlayerSkin(playerid, 200);
  875. SetPlayerHealth(playerid, 100.0);
  876. SetPlayerVirtualWorld(playerid, 0);
  877. TogglePlayerControllable(playerid,1);
  878. SendClientMessage(playerid, COLOR_WHITE, "Use /comandospcc, para ver os comandos de sua Facção !");
  879. SendClientMessage(playerid, 0xA81B00AA, "Quem manda ? Quem manda ? Quem manda, é o PCC !");
  880. levelpcc[playerid] = 1;
  881. PlayerInfo[playerid][pPCC] = 1;
  882. GetPlayerName(playerid, sendername, sizeof(sendername));
  883. return dini_IntSet(udb_encode(sendername), "levelpcc", leveltcp[playerid]);
  884. }
  885.  
  886. if(levelpm[playerid] >= 1 || PlayerInfo[playerid][pPM] >= 1)
  887. {
  888. // PM
  889. SendClientMessage(playerid, COLOR_WHITE, "Use /comandospm para ver os comandos !");
  890. SetPlayerInterior(playerid,0);
  891. SetPlayerPos(playerid,-1622.0015,669.7461,7.1875);
  892. GameTextForPlayer(playerid,"DP-SF: PM", 1000,1);
  893. GivePlayerWeapon(playerid,23,999999);
  894. GivePlayerWeapon(playerid,25,999999);
  895. GivePlayerWeapon(playerid,28,999999);
  896. GivePlayerWeapon(playerid,3,999999);
  897. SetPlayerArmour(playerid, 100.0);
  898. SetPlayerColor(playerid, 0x0000F6AA);
  899. SetPlayerSkin(playerid, 280);
  900. SetPlayerHealth(playerid, 100.0);
  901. SetPlayerVirtualWorld(playerid, 0);
  902. TogglePlayerControllable(playerid,1);
  903.  
  904. levelpm[playerid] = 1;
  905. PlayerInfo[playerid][pPM] = 1;
  906. GetPlayerName(playerid, sendername, sizeof(sendername));
  907. dini_IntSet(udb_encode(sendername), "levelpm", levelpm[playerid]);
  908. }
  909.  
  910. if(levelbope[playerid] >= 1 || PlayerInfo[playerid][pBOPE] >= 1)
  911. {
  912. // BOPE
  913. SendClientMessage(playerid, COLOR_WHITE, "Use /comandosbope para ver os comandos !");
  914. SetPlayerInterior(playerid,0);
  915. SetPlayerPos(playerid,1569.2749,-1691.6061,5.8906);
  916. GameTextForPlayer(playerid,"DP-LS: BOPE", 1000,1);
  917. GivePlayerWeapon(playerid,29,999999);
  918. GivePlayerWeapon(playerid,27,999999);
  919. GivePlayerWeapon(playerid,41,999999);
  920. GivePlayerWeapon(playerid,24,999999);
  921. GivePlayerWeapon(playerid,3,999999);
  922. GivePlayerWeapon(playerid,34,999999);
  923. GivePlayerWeapon(playerid,31,999999);
  924. SetPlayerArmour(playerid, 100.0);
  925. SetPlayerColor(playerid, 0x6C6B6AAA);
  926. SetPlayerSkin(playerid, 285);
  927. SetPlayerHealth(playerid, 100.0);
  928. SetPlayerVirtualWorld(playerid, 0);
  929. PlayerInfo[playerid][pBOPE] = 1;
  930. //SpawnPlayer(playerid);
  931. TogglePlayerControllable(playerid,1);
  932. }
  933.  
  934. if(levelexc[playerid] >= 1 || PlayerInfo[playerid][pEXC] >= 1)
  935. {
  936. // EXC
  937. SendClientMessage(playerid, COLOR_WHITE, "Use /comandosexc para ver os comandos !");
  938. SetPlayerInterior(playerid,0);
  939. SetPlayerPos(playerid,-1502.1250,472.0990,7.1875,86.2896);
  940. GameTextForPlayer(playerid,"BATALHAO DO EXERCITO", 1000,1);
  941. GivePlayerWeapon(playerid,29,999999);
  942. GivePlayerWeapon(playerid,27,999999);
  943. GivePlayerWeapon(playerid,41,999999);
  944. GivePlayerWeapon(playerid,24,999999);
  945. GivePlayerWeapon(playerid,3,999999);
  946. GivePlayerWeapon(playerid,34,999999);
  947. GivePlayerWeapon(playerid,31,999999);
  948. SetPlayerArmour(playerid, 100.0);
  949. SetPlayerColor(playerid, 0x33AA33AA);
  950. SetPlayerSkin(playerid, 287);
  951. SetPlayerHealth(playerid, 100.0);
  952. SetPlayerVirtualWorld(playerid, 0);
  953. PlayerInfo[playerid][pEXC] = 1;
  954. //SpawnPlayer(playerid);
  955. TogglePlayerControllable(playerid,1);
  956. }
  957.  
  958.  
  959. if(levelgoe[playerid] >= 1 || PlayerInfo[playerid][pGOE] >= 1)
  960. {
  961. // GOE
  962. SendClientMessage(playerid, COLOR_WHITE, "Use /comandosgoe para ver os comandos !");
  963. SetPlayerInterior(playerid,0);
  964. SetPlayerPos(playerid,311.4784,-1513.7678,24.9219,43.4672);
  965. GivePlayerWeapon(playerid,29,999999);
  966. GivePlayerWeapon(playerid,27,999999);
  967. GivePlayerWeapon(playerid,31,999999);
  968. GivePlayerWeapon(playerid,24,999999);
  969. GivePlayerWeapon(playerid,3,999999);
  970. GivePlayerWeapon(playerid,41,999999);
  971. GivePlayerWeapon(playerid,23,999999);
  972. SetPlayerArmour(playerid, 100.0);
  973. SetPlayerColor(playerid, 0x000000AA);
  974. SetPlayerSkin(playerid, 281);
  975. SetPlayerHealth(playerid, 100.0);
  976. SetPlayerVirtualWorld(playerid, 0);
  977. PlayerInfo[playerid][pGOE] = 1;
  978. //SpawnPlayer(playerid);
  979. TogglePlayerControllable(playerid,1);
  980. }
  981.  
  982. return 1;
  983. }
Advertisement
Add Comment
Please, Sign In to add comment