Advertisement
MatheusAlcapone

HardSimulation

Mar 16th, 2015
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 54.27 KB | None | 0 0
  1. #include <a_samp>
  2. #include <a_players>
  3. #include <a_vehicles>
  4. #include <DOF2>
  5. #include <zcmd>
  6. #include <streamer>
  7. #include <sscanf2>
  8. #include <time>
  9. //=-=-=-=-=-=-=-=-=-=-=[Defines]=-=-=-=-=-=-=
  10. #define CallBack:%0(%1) forward %0(%1); public %0(%1)
  11. #define GivePlayerMoneyEx(0%,1%) GivePlayerMoney(0%,1%)
  12. #define GetPlayerMoneyEx(0%) GetPlayerMoney(0%)
  13. #define ResetPlayerMoneyEx(0%) ResetPlayerMoney(0%)
  14. #define PastaC  "Contas/%s.ini"
  15. #define DRegistro   0
  16. #define DLogin      1
  17. #define escolhaS    2
  18. #define DPerguntaS  3
  19. #define DMenuL      4
  20. #define DRecuperarS 5
  21. #define DMudarS     6
  22.  
  23. #define Auxiliar 1
  24. #define AuxiliarAdministrativo 2
  25. #define SubSupervisor 3
  26. #define Supervisor 4
  27. #define Diretor 5
  28. #define Fundador 6
  29. #define FundadorP 7
  30. //=-=-=-=-=-=-=-=-=-=[Cores]=-=-=-=-=-=-=-=-=
  31. #define Vermelho    0xFF0000AA
  32. #define Branco      0xFFFFFFAA
  33. #define Grey        0x9C9C9CAA
  34. #define Gold        0xFFD700AA
  35. #define AzulClaro   0x00FFFFAA
  36. #define AzulPastoso 0x1E90FFAA
  37. //=-=-=-=-=-=-=-=-=[Variveis]=-=-=-=-=-=-=-=
  38. new bool:Logado[MAX_PLAYERS] = false;
  39. new PlayerText:TDEditor_PTD[MAX_PLAYERS][11];
  40. new PlayerText:Identidade[MAX_PLAYERS][12];
  41. new vConce[6];
  42.  
  43. native gpci ( playerid, serial [ ], maxlen );
  44.  
  45.  
  46. main(){
  47.     print("--------------------------------------------------\n");
  48.     print("|( Game mode Criado por matheus_alcapone          )|\n");
  49.     print("|( Versão: 0.1 Versão ALPHA                       )|\n");
  50.     print("|( Feito para o serve HardSimulatioN              )|\n");
  51.     print("-------------------------------------------------\n");
  52. }
  53.  
  54. enum pInfo{
  55.     Senha[128],
  56.     Idade,
  57.     Dinheiro,
  58.     Admin,
  59.     Matou,
  60.     Morreu,
  61.     Registro[128],
  62.     PerguntaS[128],
  63.     Logins,
  64.     Profissao,
  65.     Membro,
  66.     Cargo,
  67.     Lider,
  68.     Sexo,
  69.     Skin
  70. }
  71. new PlayerInfo[MAX_PLAYERS][pInfo];
  72.  
  73. enum vInfo{
  74.     Preco,
  75.     Placa,
  76.     Chave,
  77.     Modelo,
  78.     Cor[2],
  79.     Tuning[12],
  80.     float:Cord[3]
  81. }
  82. new VehicleInfo[MAX_VEHICLES][vInfo];
  83.  
  84. public OnGameModeInit(){
  85.     //=-=-=-=-=-=[Funções Basicas]=-=-=-=-=-=-=
  86.     SendRconCommand("mapname HardSimulatioN");
  87.     SetGameModeText("[PT/BR]HardSimulatioN[v0.1]");
  88.     DisableInteriorEnterExits();
  89.     EnableStuntBonusForAll(0);
  90.     LimitGlobalChatRadius(10.0);
  91.     ShowPlayerMarkers(0);
  92.     UsePlayerPedAnims();
  93.     //=-=-=-=-=-=-=-[Veiculos]-=-=-=-=-=-=-=-=-=-=-=
  94.         // * Bikes spawn Civil
  95.     CreateVehicle(510,1105.0090,-1414.6011,13.2016,6.4310,-1,-1,5*60000); // Bike spawn [1]
  96.     CreateVehicle(510,1106.2190,-1414.6250,13.1960,3.2808,-1,-1,5*60000); // Bike spawn [2]
  97.     CreateVehicle(510,1107.3538,-1414.7061,13.1946,1.2687,-1,-1,5*60000); // Bike spawn [3]
  98.     CreateVehicle(510,1108.5986,-1414.6938,13.1818,0.0390,-1,-1,5*60000); // Bike spawn [4]
  99.     CreateVehicle(510,1109.7562,-1414.6815,13.1898,0.5742,-1,-1,5*60000); // Bike spawn [5]
  100.     CreateVehicle(510,1149.8489,-1414.1514,13.2689,1.2946,-1,-1,5*60000); // Bike spawn [6]
  101.     CreateVehicle(510,1151.3152,-1414.4668,13.2650,6.4566,-1,-1,5*60000); // Bike spawn [7]
  102.     CreateVehicle(510,1152.5093,-1414.6138,13.2641,1.4919,-1,-1,5*60000); // Bike spawn [8]
  103.     CreateVehicle(510,1153.4348,-1414.6157,13.2582,355.6744,-1,-1,5*60000); // Bike spawn [9]
  104.     CreateVehicle(510,1154.6731,-1414.6904,13.2471,3.6186,-1,-1,5*60000); // Bike spawn [10]
  105.     //=-=-=-=-=-=-=[TextLabels]=-=-=-=-=-=-=-=-=-=
  106.    
  107.     vConce[0] = CreateVehicle(411,-1946.0298,273.6230,35.2010,134.1063,-1,-1,-1); // InFernus
  108.     vConce[1] = CreateVehicle(429,-1945.7347,262.3352,35.1484,66.8525,-1,-1,-1); // Banshe
  109.     vConce[2] = CreateVehicle(451,-1958.1732,260.4300,35.1765,313.0356,-1,-1,-1); // Turismo
  110.     vConce[3] = CreateVehicle(541,-1960.7986,273.0448,35.0935,244.9409,-1,-1,-1); // Bullet
  111.     vConce[4] = CreateVehicle(555,-1953.8431,300.8147,35.1526,137.8786,-1,-1,-1); // Windsor
  112.     vConce[5] = CreateVehicle(560,-1961.4888,300.7726,35.1788,212.1538,-1,-1,-1); // Sultan
  113.    
  114.     for(new v; v < 6; v++){
  115.         SetVehicleParamsEx(vConce[v], 0, 0, 0, 0, 0, 0, 0);
  116.     }
  117.    
  118.     CreateObject(1998, -1963.53528, 280.20789, 34.64620,   0.00000, 0.00000, 264.00000);
  119.     CreateObject(2002, -1964.66418, 278.12463, 34.47700,   0.00000, 0.00000, 92.00000);
  120.     CreateObject(1724, -1960.61230, 281.16528, 34.46440,   0.00000, 0.00000, -90.00000);
  121.     CreateObject(1724, -1960.53296, 278.82278, 34.46440,   0.00000, 0.00000, -90.00000);
  122.     CreateObject(2356, -1963.71375, 279.50894, 34.46510,   0.00000, 0.00000, 260.00000);
  123.     Create3DTextLabel("Concessionaria aperte 'F' para entrar no modo de compras ", 0x008080FF,-1961.2516,279.4977,35.4739, 40.0, 0, 0);
  124.     return 1;
  125. }
  126. public OnGameModeExit(){
  127.     DOF2_Exit();
  128.     return 1;
  129. }
  130. public OnPlayerRequestClass(playerid, classid){
  131.     printf("Chamo a CallBack OnPlayerRequestClass");
  132.    
  133.     MenuL(playerid);
  134.     return 1;
  135. }
  136. public OnPlayerConnect(playerid){
  137.     //=-=-=-=-=-=-=-=-
  138.     TextsDraws(playerid);
  139.  
  140.     SendFormatMsg(playerid, Branco,"{FF0000}Seja Bem-Vindo(a){FFFFFF} ao {FF0000}Hard{9C9C9C}SimulatioN{FFFFFF} %s", Nome(playerid));
  141.     printf("Chamo a CallBack OnPlayerConnect");
  142.    
  143.     RemoveBuildingForPlayer(playerid, 625, -1960.8438, 305.3516, 35.3672, 0.25);
  144.     RemoveBuildingForPlayer(playerid, 632, -1950.7500, 307.0938, 34.8906, 0.25);
  145.     RemoveBuildingForPlayer(playerid, 632, -1950.4141, 304.8906, 34.8906, 0.25);
  146.     RemoveBuildingForPlayer(playerid, 632, -1952.8672, 307.1719, 34.8906, 0.25);
  147.     RemoveBuildingForPlayer(playerid, 632, -1943.2422, 256.9609, 34.8906, 0.25);
  148.     RemoveBuildingForPlayer(playerid, 625, -1960.8438, 264.7578, 35.3672, 0.25);
  149.     RemoveBuildingForPlayer(playerid, 625, -1960.8438, 277.5859, 35.3672, 0.25);
  150.     RemoveBuildingForPlayer(playerid, 632, -1950.6406, 275.9219, 34.8906, 0.25);
  151.     RemoveBuildingForPlayer(playerid, 632, -1948.8828, 276.0703, 34.8906, 0.25);
  152.     RemoveBuildingForPlayer(playerid, 632, -1950.6016, 278.3594, 34.8906, 0.25);
  153.  
  154.     return 1;
  155. }
  156. public OnPlayerDisconnect(playerid, reason){
  157.     SalvarPlayer(playerid);
  158.    
  159.  
  160.     PlayerTextDrawDestroy(playerid, TDEditor_PTD[playerid][0]);
  161.     PlayerTextDrawDestroy(playerid, TDEditor_PTD[playerid][1]);
  162.     PlayerTextDrawDestroy(playerid, TDEditor_PTD[playerid][2]);
  163.     PlayerTextDrawDestroy(playerid, TDEditor_PTD[playerid][3]);
  164.     PlayerTextDrawDestroy(playerid, TDEditor_PTD[playerid][4]);
  165.     PlayerTextDrawDestroy(playerid, TDEditor_PTD[playerid][5]);
  166.     PlayerTextDrawDestroy(playerid, TDEditor_PTD[playerid][6]);
  167.     PlayerTextDrawDestroy(playerid, TDEditor_PTD[playerid][7]);
  168.     PlayerTextDrawDestroy(playerid, TDEditor_PTD[playerid][8]);
  169.     PlayerTextDrawDestroy(playerid, TDEditor_PTD[playerid][9]);
  170.     PlayerTextDrawDestroy(playerid, TDEditor_PTD[playerid][10]);
  171.  
  172.     Logado[playerid] = false;
  173.     return 1;
  174. }
  175. public OnPlayerSpawn(playerid){
  176.     Logado[playerid] = true;
  177.     printf("Chamo a CallBack OnPlayerSpawn");
  178.     if(PlayerInfo[playerid][Profissao] == 0 && PlayerInfo[playerid][Membro] == 0)
  179.     {
  180.         SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);
  181.         SetPlayerPos(playerid, 1128.7819,-1489.0035,22.7690);
  182.         SetPlayerHealth(playerid, 100.0);
  183.     }
  184.     return 1;
  185. }
  186. public OnPlayerDeath(playerid, killerid, reason){
  187.     PlayerInfo[playerid][Morreu] ++;
  188.     PlayerInfo[killerid][Matou] ++;
  189.     return 1;
  190. }
  191. public OnVehicleSpawn(vehicleid){
  192.     return 1;
  193. }
  194. public OnVehicleDeath(vehicleid, killerid){
  195.     return 1;
  196. }
  197. public OnPlayerText(playerid, text[]){
  198.     new Float:Pos[3],String[128];
  199.     GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  200.     format(String, 128, "%s diz: %s", Nome(playerid),text);
  201.     for(new i; i != GetMaxPlayers(); i++)
  202.     {
  203.         if(IsPlayerInRangeOfPoint(i, 20, Pos[0], Pos[1], Pos[2])){
  204.             SendClientMessage(i, -1, String);
  205.         }
  206.     }
  207.     return 0;
  208. }
  209. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){
  210.     return 1;
  211. }
  212. public OnPlayerExitVehicle(playerid, vehicleid){
  213.     return 1;
  214. }
  215. public OnPlayerStateChange(playerid, newstate, oldstate){
  216.     return 1;
  217. }
  218. public OnPlayerEnterCheckpoint(playerid){
  219.     return 1;
  220. }
  221. public OnPlayerLeaveCheckpoint(playerid){
  222.     return 1;
  223. }
  224. public OnPlayerEnterRaceCheckpoint(playerid){
  225.     return 1;
  226. }
  227. public OnPlayerLeaveRaceCheckpoint(playerid){
  228.     return 1;
  229. }
  230. public OnRconCommand(cmd[]){
  231.     return 1;
  232. }
  233. public OnPlayerRequestSpawn(playerid){
  234.     return 1;
  235. }
  236. public OnObjectMoved(objectid){
  237.     return 1;
  238. }
  239. public OnPlayerObjectMoved(playerid, objectid){
  240.     return 1;
  241. }
  242. public OnPlayerPickUpPickup(playerid, pickupid){
  243.     return 1;
  244. }
  245. public OnVehicleMod(playerid, vehicleid, componentid){
  246.     return 1;
  247. }
  248. public OnVehiclePaintjob(playerid, vehicleid, paintjobid){
  249.     return 1;
  250. }
  251. public OnVehicleRespray(playerid, vehicleid, color1, color2){
  252.     return 1;
  253. }
  254. public OnPlayerSelectedMenuRow(playerid, row){
  255.     return 1;
  256. }
  257. public OnPlayerExitedMenu(playerid){
  258.     return 1;
  259. }
  260. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid){
  261.     return 1;
  262. }
  263. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){
  264.     if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT){
  265.         if(IsPlayerInRangeOfPoint(playerid, 2.0, 1123.4906,-2036.7927,69.8870)){
  266.             SetPlayerInterior(playerid,3);SetPlayerPos(playerid,390.7658,173.7874,1008.3828);
  267.             GameTextForPlayer(playerid, "~w~bem vindo a prefeitura", 5000, 1);
  268.         }// Entar Pref
  269.         else if(IsPlayerInRangeOfPoint(playerid, 2.0, 390.7658,173.7874,1008.3828)) {
  270.             SetPlayerInterior(playerid,0);SetPlayerPos(playerid,1123.2390,-2037.1763,69.8876);
  271.         }// Sair Prefeitura
  272.     }
  273.     return 1;
  274. }
  275. public OnRconLoginAttempt(ip[], password[], success){
  276.     return 1;
  277. }
  278. public OnPlayerUpdate(playerid){
  279.  
  280.     return 1;
  281. }
  282. public OnPlayerStreamIn(playerid, forplayerid){
  283.     return 1;
  284. }
  285. public OnPlayerStreamOut(playerid, forplayerid){
  286.     return 1;
  287. }
  288. public OnVehicleStreamIn(vehicleid, forplayerid){
  289.     return 1;
  290. }
  291. public OnVehicleStreamOut(vehicleid, forplayerid){
  292.     return 1;
  293. }
  294. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){
  295.     switch(dialogid){
  296.         case DRegistro:{
  297.             if(!response) Kick(playerid);
  298.             if(strlen(inputtext) < 3 ||strlen(inputtext) > 15)return ShowPlayerDialog(playerid,DRegistro, DIALOG_STYLE_PASSWORD, "Registrar","Você excedeu o limite de carateres da senha, tente outra senha","Registrar","Cancelar");
  299.             OnPlayerRegister(playerid, inputtext);
  300.         }
  301.         case DLogin:{
  302.             if(!response)Kick(playerid);
  303.             new str[128];
  304.             format(str, sizeof(str),PastaC,Nome(playerid));
  305.             if(strcmp(inputtext, desencript(DOF2_GetString( str, "Senha" )), true) == 0){
  306.                 CarregarPlayer(playerid);
  307.                 return 1;
  308.             }
  309.             else ShowPlayerDialog(playerid, DLogin, DIALOG_STYLE_PASSWORD,"Senha Errada","A senha que você usou esta errada","Logar","Cancelar");
  310.         }
  311.         case escolhaS:{
  312.             TogglePlayerSpectating(playerid, 0);
  313.             SpawnPlayer(playerid);
  314.             if(!response){
  315.                 PlayerInfo[playerid][Sexo] = 1;
  316.                 PlayerInfo[playerid][Skin] = 226;
  317.                 SetPlayerSkin(playerid,226);
  318.                 SendClientMessage(playerid, 0x9C9C9C, "Ok, Você é do Sexo Feminino.");
  319.             }
  320.             if(response){
  321.                 PlayerInfo[playerid][Sexo] = 2;
  322.                 PlayerInfo[playerid][Skin] = 170;
  323.                 SetPlayerSkin(playerid,170);
  324.                 SendClientMessage(playerid, 0x9C9C9C, "Ok, Você é do Sexo Masculino.");
  325.             }
  326.             PlayerInfo[playerid][Logins] = 2;
  327.             ShowPlayerDialog(playerid, DPerguntaS, DIALOG_STYLE_PASSWORD,"Escolha uma pergunta Secreta","Escolha uma pergunta secreta para recuperar a senha da sua conta. OBS: Minimo 3 caracteres maximo 15","Escolher","Cancelar");
  328.             return true;
  329.         }
  330.         case DPerguntaS:{
  331.             if(strlen(inputtext) < 3 ||strlen(inputtext) > 15)return ShowPlayerDialog(playerid, DPerguntaS, DIALOG_STYLE_PASSWORD,"Pergunta Secreta","Você excedeu o limite de caracteres da Pergunta Secreta escolha outra.","Escolher","Cancelar");
  332.             new string[64],str[128];
  333.             format(string, sizeof(str),PastaC,Nome(playerid));
  334.             format(str, sizeof(str),"%s",encriptar(inputtext));
  335.             DOF2_SetString(string,"PeguntaS",str);
  336.             DOF2_SaveFile();
  337.             CancelSelectTextDraw(playerid);
  338.             SendFormatMsg(playerid, Branco, "{FF0000}[Seja Bem-Vindo]{FFFFFF}Seja Bem-Vindo ao servidor, você começou com 16 anos e R$500.00 para começar sua vida!.");
  339.             return true;
  340.        
  341.         }
  342.         case DMenuL:{
  343.             switch(listitem){
  344.                 case 0:{
  345.                     Logar(playerid);
  346.                 }
  347.                 case 1:{
  348.                     ShowPlayerDialog(playerid, DRecuperarS, DIALOG_STYLE_PASSWORD,"Recuperar Senha","Digite a pergunta secreta para recuperar a senha","Recuperar","Cancelar");
  349.                 }
  350.                 case 2:{
  351.                     Logar(playerid);
  352.                 }
  353.             }
  354.         }
  355.         case DRecuperarS:{
  356.             if(!response) Kick(playerid);
  357.             new str[128];
  358.             format(str, sizeof(str),PastaC,Nome(playerid));
  359.             if(strcmp(inputtext, desencript(DOF2_GetString( str, "PeguntaS" )), true) == 0){
  360.                 ShowPlayerDialog(playerid, DMudarS, DIALOG_STYLE_PASSWORD,"Mudar senha","Escolha uma nova senha","Mudar","Cancelar");
  361.             }
  362.             else{
  363.                 ShowPlayerDialog(playerid, DRecuperarS, DIALOG_STYLE_PASSWORD,"Pergunta Secreta","A pergunta secreta que você usou esta errada","Recuperar","Cancelar");
  364.             }
  365.  
  366.         }
  367.         case DMudarS:{
  368.             if(strlen(inputtext) < 3 ||strlen(inputtext) > 15)return ShowPlayerDialog(playerid,DMudarS, DIALOG_STYLE_PASSWORD, "Registrar","Você excedeu o limite de caracteres da senha, tente outra senha","Registrar","Cancelar");
  369.             new str[128];
  370.             format(str, sizeof(str),PastaC,Nome(playerid));
  371.             DOF2_SetString(str,"Senha",(encriptar(inputtext)));
  372.             DOF2_SaveFile();
  373.             Logar(playerid);
  374.         }
  375.     }
  376.     return 1;
  377. }
  378. public OnPlayerClickPlayer(playerid, clickedplayerid, source){
  379.     return 1;
  380. }
  381. public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ){
  382.     SetPlayerPos(playerid, fX, fY, fZ);
  383.     return 1;
  384. }
  385. public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid){
  386.     new Float:Life, Float:Coleete, Float:Dano;
  387.     GetPlayerArmour(damagedid, Coleete);
  388.     amount = amount/4;
  389.     GetPlayerHealth(damagedid, Life);
  390.     if(Coleete > 0){
  391.         if(amount > Coleete){
  392.             Dano = amount - Coleete;Life = Life - Dano;
  393.             SetPlayerArmour(damagedid, 0.0);
  394.             SetPlayerHealth(damagedid, Life);
  395.             return 1;
  396.         }
  397.         Coleete = Coleete - amount;
  398.         SetPlayerArmour(damagedid, Coleete);
  399.     }
  400.     if(Coleete < 1){Life = Life - amount;SetPlayerHealth(damagedid, Life);}
  401.     return 1;
  402. }
  403. //=-=-=-=-=-=-=-=-=-=-=[CallBacks de funções]=-=-=-=-=-=-=-=-=-=-=
  404. CallBack:Logar(playerid){
  405.     new str[252];
  406.     format(str, sizeof(str),PastaC,Nome(playerid));
  407.     if(!DOF2_FileExists(str)){
  408.         format(str, sizeof(str),"{FFFFFF}A Conta {FF4500}%s{FFFFFF} ainda não esta registrada\nEscolha uma senha para registra-la. OBS: No minimo 3 e no maximo 15 caracteres",Nome(playerid));
  409.         ShowPlayerDialog(playerid,DRegistro, DIALOG_STYLE_PASSWORD, "Seja Bem-Vindo(a)",str,"Registrar","Cancelar");
  410.     }
  411.     else
  412.     {
  413.         format(str,sizeof(str),"{FFFFFF}Status:{FF4500}(Registrada){FFFFFF}\nConta:{FF4500}(%s){FFFFFF}\nIdade:{FF4500}(%d){FFFFFF}\nData de Registro:{FF4500}(%s){FFFFFF}\nUse sua senha para logar",Nome(playerid), DOF2_GetInt(str,"Idade"),DOF2_GetString(str,"Data"));
  414.         ShowPlayerDialog(playerid, DLogin, DIALOG_STYLE_PASSWORD, "Seja Bem-Vindo(a)",str,"Logar","Cancelar");
  415.     }
  416.     printf("Chamo a CallBack Logar");
  417.     return true;
  418. }
  419. CallBack: OnPlayerRegister(playerid, password[]){
  420.     new str[64], dia,mes,ano, string[24];
  421.     format(str, sizeof(str),PastaC,Nome(playerid));
  422.     DOF2_CreateFile(str);
  423.     DOF2_SetString(str, "Senha", encriptar(password));
  424.     DOF2_SetInt(str, "Idade", 16);
  425.     DOF2_SetInt(str,"Dinheiro",500);
  426.     DOF2_SetInt(str,"Admin",0);
  427.     DOF2_SetInt(str,"Matou",0);
  428.     DOF2_SetInt(str, "Morreu", 0);
  429.     DOF2_SetInt(str, "Membro", 0);
  430.     DOF2_SetInt(str, "Lider",  0);
  431.     DOF2_SetInt(str, "Cargo", 0);
  432.     DOF2_SetInt(str, "Profissao", 0);
  433.     DOF2_SetInt(str, "Sexo", 0);
  434.     getdate(ano,mes,dia);
  435.     format(string, sizeof(string),"%02d/%02d/%02d",dia,mes,ano);
  436.     DOF2_SetString(str,"Data", string);
  437.     DOF2_SetInt(str, "Logins", 1);
  438.     DOF2_SaveFile();
  439.     Logar(playerid);
  440.     return true;
  441. }
  442. CallBack:CarregarPlayer(playerid){
  443.     new str[128];
  444.     format(str, sizeof(str),PastaC,Nome(playerid));
  445.     if(strcmp(Nome(playerid), "Matheus_Alcapone", true) == 0){ PlayerInfo[playerid][Admin] = 7;}
  446.     PlayerInfo[playerid][Idade] = DOF2_GetInt(str,"Idade");
  447.     PlayerInfo[playerid][Dinheiro] = DOF2_GetInt(str, "Dinheiro");
  448.     PlayerInfo[playerid][Admin] = DOF2_GetInt(str,"Admin");
  449.     PlayerInfo[playerid][Matou] = DOF2_GetInt(str, "Matou");
  450.     PlayerInfo[playerid][Morreu] = DOF2_GetInt(str, "Morreu");
  451.     PlayerInfo[playerid][Logins] = DOF2_GetInt(str, "Logins");
  452.     PlayerInfo[playerid][Membro] = DOF2_GetInt(str, "Membro");
  453.     PlayerInfo[playerid][Lider] = DOF2_GetInt(str, "Lider");
  454.     PlayerInfo[playerid][Cargo] = DOF2_GetInt(str, "Cargo");
  455.     PlayerInfo[playerid][Profissao] = DOF2_GetInt(str,"Profissao");
  456.     PlayerInfo[playerid][Skin] = DOF2_GetInt(str, "Skin");
  457.     PlayerInfo[playerid][Sexo] = DOF2_GetInt(str, "Sexo");
  458.     PlayerInfo[playerid][Registro] = DOF2_GetString(str, "Registro");
  459.     ResetPlayerMoney(playerid);
  460.     GivePlayerMoneyEx(playerid, PlayerInfo[playerid][Dinheiro]-PlayerInfo[playerid][Dinheiro]);
  461.     Logado[playerid] = true;
  462.     if(PlayerInfo[playerid][Logins] <= 1)return ShowPlayerDialog(playerid, escolhaS, DIALOG_STYLE_MSGBOX, "Seja Bem-Vindo(a)", "Escolha seu Sexo", "Masculino", "Feminino");
  463.     TogglePlayerSpectating(playerid, 0);
  464.     SpawnPlayer(playerid);
  465.     printf("Chamo a CallBack CarregarPlayer");
  466.     return true;
  467. }
  468.  
  469. CallBack:SalvarPlayer(playerid){
  470.     new str[128];
  471.     format(str, sizeof(str),PastaC,Nome(playerid));
  472.     if(Logado[playerid] == true)
  473.     {
  474.         DOF2_SetInt(str,"Idade",PlayerInfo[playerid][Idade]);
  475.         DOF2_SetInt(str,"Dinheiro", GetPlayerMoneyEx(playerid));
  476.         DOF2_SetInt(str,"Admin",PlayerInfo[playerid][Admin]);
  477.         DOF2_SetInt(str,"Matou",PlayerInfo[playerid][Matou]);
  478.         DOF2_SetInt(str,"Morreu",PlayerInfo[playerid][Morreu]);
  479.         DOF2_SetInt(str,"Cargo", PlayerInfo[playerid][Cargo]);
  480.         DOF2_SetInt(str,"Lider",PlayerInfo[playerid][Lider]);
  481.         DOF2_SetInt(str,"Membro", PlayerInfo[playerid][Membro]);
  482.         DOF2_SetInt(str,"Profissao", PlayerInfo[playerid][Profissao]);
  483.         DOF2_SetInt(str,"Logins",PlayerInfo[playerid][Logins]);
  484.         DOF2_SetInt(str,"Skin",PlayerInfo[playerid][Skin]);
  485.         DOF2_SetInt(str,"Sexo",PlayerInfo[playerid][Sexo]);
  486.         DOF2_SetString(str, "Registro",PlayerInfo[playerid][Registro]);
  487.         DOF2_SaveFile();
  488.     }
  489.     return true;
  490. }
  491. stock Nome(playerid){
  492.     new NomeA[24];
  493.     GetPlayerName(playerid, NomeA, 24);
  494.     format(NomeA, 24, "%s", NomeA);
  495.     return NomeA;
  496. }
  497. CallBack:OnPlayerCommandPerformed(playerid, cmdtext[], success){
  498.     if(!success)
  499.     {
  500.         new msg[144];
  501.         format( msg, 144, "{FF0000}|Comando|{FFFFFF} O Comando {FF0000}(%s){FFFFFF} Não Existe Para Mais Informações Digite /ajuda.", cmdtext );
  502.         SendClientMessage(playerid, Branco, msg);
  503.     }
  504.     return 0x1;
  505. }
  506. stock SendFormatMsg(playerid, color, fstring[], {Float, _}:...){
  507.    
  508.     static const
  509.         STATIC_ARGS = 3,BYTES_PER_CELL = 4;
  510.  
  511.     new
  512.         n = (numargs() - STATIC_ARGS) * BYTES_PER_CELL;
  513.     if (n)
  514.     {
  515.         new
  516.             message[128],
  517.             arg_start,
  518.             arg_end;
  519.  
  520.    
  521.         #emit CONST.alt        fstring
  522.         #emit LCTRL          5
  523.         #emit ADD
  524.         #emit STOR.S.pri       arg_start
  525.  
  526.      
  527.         #emit LOAD.S.alt       n
  528.         #emit ADD
  529.         #emit STOR.S.pri       arg_end
  530.  
  531.  
  532.         do
  533.         {
  534.             #emit LOAD.I
  535.             #emit PUSH.pri
  536.             arg_end -= BYTES_PER_CELL;
  537.             #emit LOAD.S.pri     arg_end
  538.         }
  539.         while (arg_end > arg_start);
  540.  
  541.         #emit PUSH.S         fstring
  542.         #emit PUSH.C         128
  543.         #emit PUSH.ADR        message
  544.  
  545.         n += BYTES_PER_CELL * 3;
  546.         #emit PUSH.S         n
  547.         #emit SYSREQ.C        format
  548.  
  549.  
  550.         n += BYTES_PER_CELL;
  551.         #emit LCTRL          4
  552.         #emit LOAD.S.alt       n
  553.         #emit ADD
  554.         #emit SCTRL          4
  555.  
  556.         return SendClientMessage(playerid, color, message);
  557.     }
  558.     else
  559.     {
  560.         return SendClientMessage(playerid, color, fstring);
  561.     }
  562. }
  563. stock MenuL(playerid){
  564.     new str[64];
  565.     format(str, sizeof(str),PastaC,Nome(playerid));
  566.     if(!DOF2_FileExists(str)){
  567.         Logar(playerid);
  568.         return true;
  569.     }
  570.     PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][0]);
  571.     PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][1]);
  572.     PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][2]);
  573.     PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][3]);
  574.     PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][4]);
  575.     PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][5]);
  576.     PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][6]);
  577.     PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][7]);
  578.     PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][8]);
  579.     PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][9]);
  580.     PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][10]);
  581.    
  582.     TogglePlayerSpectating(playerid, 1);
  583.     InterpolateCameraPos(playerid, 22.831918, -1845.406250, 69.047241, 476.322540, -1971.012817, 36.861770, 20000);
  584.     InterpolateCameraLookAt(playerid, 26.930059, -1847.935180, 67.702041, 472.428436, -1974.081054, 36.212566, 20000);
  585.  
  586.     return true;
  587. }
  588. public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid){
  589.     if(playertextid == TDEditor_PTD[playerid][6]){
  590.         Logar(playerid);
  591.         CancelSelectTextDraw(playerid);
  592.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][0]);
  593.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][1]);
  594.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][2]);
  595.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][3]);
  596.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][4]);
  597.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][5]);
  598.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][6]);
  599.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][7]);
  600.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][8]);
  601.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][9]);
  602.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][10]);
  603.         return true;
  604.     }
  605.     if(playertextid == TDEditor_PTD[playerid][7]){
  606.         ShowPlayerDialog(playerid, DRecuperarS, DIALOG_STYLE_PASSWORD,"Recuperar Senha","Digite a pergunta secreta para recuperar a senha","Recuperar","Cancelar");
  607.         CancelSelectTextDraw(playerid);
  608.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][0]);
  609.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][1]);
  610.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][2]);
  611.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][3]);
  612.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][4]);
  613.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][5]);
  614.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][6]);
  615.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][7]);
  616.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][8]);
  617.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][9]);
  618.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][10]);
  619.         return true;
  620.     }
  621.     if(playertextid == TDEditor_PTD[playerid][10]){
  622.         CancelSelectTextDraw(playerid);
  623.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][0]);
  624.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][1]);
  625.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][2]);
  626.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][3]);
  627.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][4]);
  628.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][5]);
  629.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][6]);
  630.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][7]);
  631.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][8]);
  632.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][9]);
  633.         PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][10]);
  634.         Kick(playerid);
  635.         return true;
  636.     }
  637.     if(playertextid == Identidade[playerid][10]){
  638.         CancelSelectTextDraw(playerid);
  639.         PlayerTextDrawHide(playerid, Identidade[playerid][00]);
  640.         PlayerTextDrawHide(playerid, Identidade[playerid][01]);
  641.         PlayerTextDrawHide(playerid, Identidade[playerid][2]);
  642.         PlayerTextDrawHide(playerid, Identidade[playerid][3]);
  643.         PlayerTextDrawHide(playerid, Identidade[playerid][4]);
  644.         PlayerTextDrawHide(playerid, Identidade[playerid][5]);
  645.         PlayerTextDrawHide(playerid, Identidade[playerid][6]);
  646.         PlayerTextDrawHide(playerid, Identidade[playerid][7]);
  647.         PlayerTextDrawHide(playerid, Identidade[playerid][8]);
  648.         PlayerTextDrawHide(playerid, Identidade[playerid][9]);
  649.         PlayerTextDrawHide(playerid, Identidade[playerid][10]);
  650.         PlayerTextDrawHide(playerid, Identidade[playerid][11]);
  651.         return true;
  652.     }
  653.     return 1;
  654. }
  655. CallBack:GivePlayerMoneyEx(playerid, money){
  656.     PlayerInfo[playerid][Dinheiro] += money;
  657.     ResetPlayerMoney(playerid);
  658.     GivePlayerMoney(playerid, PlayerInfo[playerid][Dinheiro]);
  659.     return true;
  660. }
  661. CallBack:GetPlayerMoneyEx(playerid){
  662.     return PlayerInfo[playerid][Dinheiro];
  663. }
  664. CallBack:SetPlayerMoneyEx(playerid, money){
  665.     PlayerInfo[playerid][Dinheiro] = money;
  666.     GivePlayerMoney(playerid, money);
  667.     return true;
  668. }
  669. stock Sexo_(playerid){
  670.     new stringg[28];
  671.     if(PlayerInfo[playerid][Sexo] == 1){stringg = "Feminino";}
  672.     else if(PlayerInfo[playerid][Sexo] == 2){stringg = "Masculino";}
  673.     return stringg;
  674. }
  675. CallBack: TextsDraws(playerid){
  676.     PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][0]);
  677.     PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][1]);
  678.     PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][2]);
  679.     PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][3]);
  680.     PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][4]);
  681.     PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][5]);
  682.     PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][6]);
  683.     PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][7]);
  684.     PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][8]);
  685.     PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][9]);
  686.     PlayerTextDrawHide(playerid, TDEditor_PTD[playerid][10]);
  687.     //=-=-=-=-=-=-=-=-=-=[TextDraw Login]=-=-=-=-=-=-=-=-=-=
  688.     TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 323.125000, 129.916763, "___~n~");
  689.     PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][0], 0.526251, 23.474967);
  690.     PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][0], 0.230000, 349.435058);
  691.     PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 2);
  692.     PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], -1);
  693.     PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][0], 1);
  694.     PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][0], 80);
  695.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);
  696.     PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][0], 0);
  697.     PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][0], 255);
  698.     PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][0], 3);
  699.     PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][0], 1);
  700.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);
  701.  
  702.     TDEditor_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 263.850158, 95.750038, "Hard");
  703.     PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][1], 0.769498, 3.821667);
  704.     PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][1], 2);
  705.     PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][1], -12254977);
  706.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 1);
  707.     PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][1], 0);
  708.     PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][1], 255);
  709.     PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][1], 1);
  710.     PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][1], 1);
  711.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 1);
  712.  
  713.     TDEditor_PTD[playerid][2] = CreatePlayerTextDraw(playerid, 291.673309, 95.400016, "SimulatioN");
  714.     PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][2], 0.769498, 3.821667);
  715.     PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][2], 1);
  716.     PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][2], -2139062017);
  717.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][2], 1);
  718.     PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][2], 0);
  719.     PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][2], 255);
  720.     PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][2], 1);
  721.     PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][2], 1);
  722.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][2], 1);
  723.  
  724.     TDEditor_PTD[playerid][3] = CreatePlayerTextDraw(playerid, 265.148559, 138.480148, "SEJA_BEM-VINDO");
  725.     PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][3], 0.447999, 2.469999);
  726.     PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][3], 1);
  727.     PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][3], -1);
  728.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][3], 1);
  729.     PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][3], 0);
  730.     PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][3], 255);
  731.     PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][3], 1);
  732.     PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][3], 1);
  733.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][3], 1);
  734.  
  735.     new str[128];
  736.     TDEditor_PTD[playerid][4] = CreatePlayerTextDraw(playerid, 264.548522, 163.281661, "Matheus_Alcapone");
  737.     PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][4], 0.420999, 1.849999);
  738.     PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][4], 1);
  739.     PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][4], -1);
  740.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][4], 1);
  741.     PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][4], 0);
  742.     PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][4], 255);
  743.     PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][4], 1);
  744.     PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][4], 1);
  745.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][4], 1);
  746.     format(str, sizeof(str),"%s",Nome(playerid));
  747.     PlayerTextDrawSetString(playerid, TDEditor_PTD[playerid][4], str);
  748.  
  749.     TDEditor_PTD[playerid][5] = CreatePlayerTextDraw(playerid, 267.924530, 211.467269, "~n~");
  750.     PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][5], 0.517499, 2.995000);
  751.     PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][5], 370.884979, 0.099999);
  752.     PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][5], 1);
  753.     PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][5], -1);
  754.     PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][5], 1);
  755.     PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][5], 112);
  756.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][5], 1);
  757.     PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][5], 0);
  758.     PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][5], 255);
  759.     PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][5], 1);
  760.     PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][5], 1);
  761.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][5], 1);
  762.  
  763.     TDEditor_PTD[playerid][6] = CreatePlayerTextDraw(playerid, 289.799682, 214.449874, "LOGIN");
  764.     PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][6], 0.582249, 2.233333);
  765.     PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][6], 1);
  766.     PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][6], -1);
  767.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][6], 1);
  768.     PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][6], 0);
  769.     PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][6], 255);
  770.     PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][6], 1);
  771.     PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][6], 1);
  772.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][6], 1);
  773.     PlayerTextDrawSetSelectable(playerid, TDEditor_PTD[playerid][6], true);
  774.     SelectTextDraw(playerid, 0xFFFFFFAA);
  775.  
  776.     TDEditor_PTD[playerid][7] = CreatePlayerTextDraw(playerid, 242.924682, 271.083343, "RECUPERAR_SENHA~n~");
  777.     PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][7], 0.582249, 2.233333);
  778.     PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][7], 1);
  779.     PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][7], -1);
  780.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][7], 1);
  781.     PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][7], 0);
  782.     PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][7], 255);
  783.     PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][7], 1);
  784.     PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][7], 1);
  785.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][7], 1);
  786.     PlayerTextDrawSetSelectable(playerid, TDEditor_PTD[playerid][7], true);
  787.     SelectTextDraw(playerid, 0xFFFFFFAA);
  788.  
  789.     TDEditor_PTD[playerid][8] = CreatePlayerTextDraw(playerid, 243.074005, 269.250854, "~n~");
  790.     PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][8], 0.537873, 2.995000);
  791.     PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][8], 412.734893, 0.109999);
  792.     PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][8], 1);
  793.     PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][8], -1);
  794.     PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][8], 1);
  795.     PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][8], 112);
  796.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][8], 1);
  797.     PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][8], 0);
  798.     PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][8], 255);
  799.     PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][8], 1);
  800.     PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][8], 1);
  801.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][8], 1);
  802.  
  803.     TDEditor_PTD[playerid][9] = CreatePlayerTextDraw(playerid, 442.999572, 313.150787, "~n~");
  804.     PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][9], 0.659872, 3.005000);
  805.     PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][9], 497.684875, 0.099999);
  806.     PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][9], 1);
  807.     PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][9], -1);
  808.     PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][9], 1);
  809.     PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][9], 112);
  810.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][9], 1);
  811.     PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][9], 0);
  812.     PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][9], 255);
  813.     PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][9], 1);
  814.     PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][9], 1);
  815.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][9], 1);
  816.    
  817.  
  818.     TDEditor_PTD[playerid][10] = CreatePlayerTextDraw(playerid, 449.250335, 317.566650, "SAIR");
  819.     PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][10], 0.582249, 2.233333);
  820.     PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][10], 1);
  821.     PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][10], -1);
  822.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][10], 1);
  823.     PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][10], 0);
  824.     PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][10], 255);
  825.     PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][10], 1);
  826.     PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][10], 1);
  827.     PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][10], 1);
  828.     PlayerTextDrawSetSelectable(playerid, TDEditor_PTD[playerid][10], true);
  829.     SelectTextDraw(playerid, 0xFFFFFFAA);
  830.  
  831.     return true;
  832. }
  833. CallBack:Status(playerid){
  834.     PlayerTextDrawHide(playerid, Identidade[playerid][00]);
  835.     PlayerTextDrawHide(playerid, Identidade[playerid][01]);
  836.     PlayerTextDrawHide(playerid, Identidade[playerid][2]);
  837.     PlayerTextDrawHide(playerid, Identidade[playerid][3]);
  838.     PlayerTextDrawHide(playerid, Identidade[playerid][4]);
  839.     PlayerTextDrawHide(playerid, Identidade[playerid][5]);
  840.     PlayerTextDrawHide(playerid, Identidade[playerid][6]);
  841.     PlayerTextDrawHide(playerid, Identidade[playerid][7]);
  842.     PlayerTextDrawHide(playerid, Identidade[playerid][8]);
  843.     PlayerTextDrawHide(playerid, Identidade[playerid][9]);
  844.     PlayerTextDrawHide(playerid, Identidade[playerid][10]);
  845.     PlayerTextDrawHide(playerid, Identidade[playerid][11]);
  846.    
  847.     for(new i = 100; i > 0; i--){
  848.         SendClientMessage(i, 0xFFFFFFAA, "");
  849.     }
  850.  
  851.     new str[256];
  852.  
  853.     Identidade[playerid][00] = CreatePlayerTextDraw(playerid,528.000000, 121.000000, " ");
  854.     PlayerTextDrawBackgroundColor(playerid,Identidade[playerid][00], 255);
  855.     PlayerTextDrawFont(playerid,Identidade[playerid][00], 1);
  856.     PlayerTextDrawLetterSize(playerid, Identidade[playerid][00], 0.500000, 1.000000);
  857.     PlayerTextDrawColor(playerid,Identidade[playerid][00], -1);
  858.     PlayerTextDrawSetOutline(playerid,Identidade[playerid][00], 0);
  859.     PlayerTextDrawSetProportional(playerid,Identidade[playerid][00], 1);
  860.     PlayerTextDrawSetShadow(playerid,Identidade[playerid][00], 1);
  861.     PlayerTextDrawUseBox(playerid,Identidade[playerid][00], 1);
  862.     PlayerTextDrawBoxColor(playerid,Identidade[playerid][00], 255);
  863.     PlayerTextDrawTextSize(playerid,Identidade[playerid][00], 187.000000, 85.000000);
  864.  
  865.  
  866.     Identidade[playerid][01] = CreatePlayerTextDraw(playerid,528.000000, 127.000000, "  ");
  867.     PlayerTextDrawBackgroundColor(playerid,Identidade[playerid][01], 255);
  868.     PlayerTextDrawFont(playerid,Identidade[playerid][01], 1);
  869.     PlayerTextDrawLetterSize(playerid,Identidade[playerid][01], 0.830000, 23.300001);
  870.     PlayerTextDrawColor(playerid,Identidade[playerid][01], -1);
  871.     PlayerTextDrawSetOutline(playerid,Identidade[playerid][01], 0);
  872.     PlayerTextDrawSetProportional(playerid,Identidade[playerid][01], 1);
  873.     PlayerTextDrawSetShadow(playerid,Identidade[playerid][01], 1);
  874.     PlayerTextDrawUseBox(playerid,Identidade[playerid][01], 1);
  875.     PlayerTextDrawBoxColor(playerid,Identidade[playerid][01], 80);
  876.     PlayerTextDrawTextSize(playerid,Identidade[playerid][01], 187.000000, 35.000000);
  877.  
  878.     Identidade[playerid][3] = CreatePlayerTextDraw(playerid,349.000000, 125.000000, "Identidade");
  879.     PlayerTextDrawBackgroundColor(playerid,Identidade[playerid][3], 255);
  880.     PlayerTextDrawFont(playerid,Identidade[playerid][3], 3);
  881.     PlayerTextDrawLetterSize(playerid,Identidade[playerid][3], 0.509999, 1.899999);
  882.     PlayerTextDrawColor(playerid,Identidade[playerid][3], -1);
  883.     PlayerTextDrawSetOutline(playerid,Identidade[playerid][3], 1);
  884.     PlayerTextDrawSetProportional(playerid,Identidade[playerid][3], 1);
  885.  
  886.     Identidade[playerid][4] = CreatePlayerTextDraw(playerid,528.000000, 341.000000, " ");
  887.     PlayerTextDrawBackgroundColor(playerid,Identidade[playerid][4], 255);
  888.     PlayerTextDrawFont(playerid,Identidade[playerid][4], 1);
  889.     PlayerTextDrawLetterSize(playerid,Identidade[playerid][4], 0.500000, 1.000000);
  890.     PlayerTextDrawColor(playerid,Identidade[playerid][4], -1);
  891.     PlayerTextDrawSetOutline(playerid,Identidade[playerid][4], 0);
  892.     PlayerTextDrawSetProportional(playerid,Identidade[playerid][4], 1);
  893.     PlayerTextDrawSetShadow(playerid,Identidade[playerid][4], 1);
  894.     PlayerTextDrawUseBox(playerid,Identidade[playerid][4], 1);
  895.     PlayerTextDrawBoxColor(playerid,Identidade[playerid][4], 255);
  896.     PlayerTextDrawTextSize(playerid, Identidade[playerid][4], 187.000000, 85.000000);
  897.  
  898.     Identidade[playerid][5] = CreatePlayerTextDraw(playerid,320.000000, 178.000000, "Emprego:");
  899.     PlayerTextDrawBackgroundColor(playerid,Identidade[playerid][5], 255);
  900.     PlayerTextDrawFont(playerid, Identidade[playerid][5], 1);
  901.     PlayerTextDrawLetterSize(playerid,Identidade[playerid][5], 0.489999, 2.000000);
  902.     PlayerTextDrawColor(playerid,Identidade[playerid][5], -1);
  903.     PlayerTextDrawSetOutline(playerid,Identidade[playerid][5], 1);
  904.     PlayerTextDrawSetProportional(playerid,Identidade[playerid][5], 1);
  905. //  format(str, sizeof(str), "Emprego: %s",PlayerInfo[playerid][Profissao]);
  906. //  PlayerTextDrawSetString(playerid, Identidade[playerid][5], str);
  907.  
  908.     Identidade[playerid][6] = CreatePlayerTextDraw(playerid,320.000000, 156.000000, "Idade:");
  909.     PlayerTextDrawBackgroundColor(playerid, Identidade[playerid][6], 255);
  910.     PlayerTextDrawFont(playerid,Identidade[playerid][6], 1);
  911.     PlayerTextDrawLetterSize(playerid,Identidade[playerid][6], 0.489999, 2.000000);
  912.     PlayerTextDrawColor(playerid,Identidade[playerid][6], -1);
  913.     PlayerTextDrawSetOutline(playerid, Identidade[playerid][6], 1);
  914.     PlayerTextDrawSetProportional(playerid,Identidade[playerid][6], 1);
  915.     format(str, sizeof(str), "Idade: %d",PlayerInfo[playerid][Idade]);
  916.     PlayerTextDrawSetString(playerid, Identidade[playerid][6], str);
  917.  
  918.     Identidade[playerid][7] = CreatePlayerTextDraw(playerid,320.000000, 197.000000, "Organizacao:");
  919.     PlayerTextDrawBackgroundColor(playerid,Identidade[playerid][7], 255);
  920.     PlayerTextDrawFont(playerid,Identidade[playerid][7], 1);
  921.     PlayerTextDrawLetterSize(playerid,Identidade[playerid][7], 0.359999, 2.199999);
  922.     PlayerTextDrawColor(playerid,Identidade[playerid][7], -1);
  923.     PlayerTextDrawSetOutline(playerid,Identidade[playerid][7], 1);
  924.     PlayerTextDrawSetProportional(playerid,Identidade[playerid][7], 1);
  925.  
  926.  
  927.     Identidade[playerid][8] = CreatePlayerTextDraw(playerid,320.000000, 220.000000, "Sexo:");
  928.     PlayerTextDrawBackgroundColor(playerid,Identidade[playerid][8], 255);
  929.     PlayerTextDrawFont(playerid,Identidade[playerid][8], 1);
  930.     PlayerTextDrawLetterSize(playerid,Identidade[playerid][8], 0.359999, 2.199999);
  931.     PlayerTextDrawColor(playerid, Identidade[playerid][8], -1);
  932.     PlayerTextDrawSetOutline(playerid, Identidade[playerid][8], 1);
  933.     PlayerTextDrawSetProportional(playerid,Identidade[playerid][8], 1);
  934.     format(str, sizeof(str), "Sexo: %s",Sexo_(playerid));
  935.     PlayerTextDrawSetString(playerid, Identidade[playerid][8], str);
  936.  
  937.     Identidade[playerid][9] = CreatePlayerTextDraw(playerid,321.000000, 242.000000, "Data de Registro:");
  938.     PlayerTextDrawBackgroundColor(playerid,Identidade[playerid][9], 255);
  939.     PlayerTextDrawFont(playerid,Identidade[playerid][9], 1);
  940.     PlayerTextDrawLetterSize(playerid,Identidade[playerid][9], 0.359999, 2.199999);
  941.     PlayerTextDrawColor(playerid,Identidade[playerid][9], -1);
  942.     PlayerTextDrawSetOutline(playerid,Identidade[playerid][9], 1);
  943.     PlayerTextDrawSetProportional(playerid,Identidade[playerid][9], 1);
  944.     format(str, sizeof(str), "Data de Registro: %s",PlayerInfo[playerid][Registro]);
  945.     PlayerTextDrawSetString(playerid, Identidade[playerid][9], str);
  946.  
  947.     Identidade[playerid][10] = CreatePlayerTextDraw(playerid,386.000000, 318.000000, "Sair");
  948.     PlayerTextDrawBackgroundColor(playerid,Identidade[playerid][10], 255);
  949.     PlayerTextDrawFont(playerid,Identidade[playerid][10], 1);
  950.     PlayerTextDrawLetterSize(playerid,Identidade[playerid][10], 0.359999, 2.199999);
  951.     PlayerTextDrawColor(playerid,Identidade[playerid][10], -1);
  952.     PlayerTextDrawSetOutline(playerid,Identidade[playerid][10], 1);
  953.     PlayerTextDrawSetProportional(playerid,Identidade[playerid][10], 1);
  954.  
  955.     Identidade[playerid][11] = CreatePlayerTextDraw(playerid,203.000000, 116.000000, "Governo de Los Santos");
  956.     PlayerTextDrawBackgroundColor(playerid,Identidade[playerid][11], 255);
  957.     PlayerTextDrawFont(playerid,Identidade[playerid][11], 1);
  958.     PlayerTextDrawLetterSize(playerid,Identidade[playerid][11], 0.190000, 1.499999);
  959.     PlayerTextDrawColor(playerid,Identidade[playerid][11], -1);
  960.     PlayerTextDrawSetOutline(playerid,Identidade[playerid][11], 1);
  961.     PlayerTextDrawSetProportional(playerid,Identidade[playerid][11], 1);
  962.    
  963.     Identidade[playerid][2] = CreatePlayerTextDraw(playerid,196.000000, 132.000000, "   ");
  964.     PlayerTextDrawBackgroundColor(playerid,Identidade[playerid][2], 50);
  965.     PlayerTextDrawFont(playerid,Identidade[playerid][2], 5);
  966.     PlayerTextDrawLetterSize(playerid,Identidade[playerid][2], 0.850000, 10.800003);
  967.     PlayerTextDrawColor(playerid,Identidade[playerid][2], -1);
  968.     PlayerTextDrawSetOutline(playerid,Identidade[playerid][2], 0);
  969.     PlayerTextDrawSetProportional(playerid,Identidade[playerid][2], 1);
  970.     PlayerTextDrawSetShadow(playerid,Identidade[playerid][2], 1);
  971.     PlayerTextDrawUseBox(playerid,Identidade[playerid][2], 1);
  972.     PlayerTextDrawBoxColor(playerid,Identidade[playerid][2], 0xFFFFFF20);
  973.     PlayerTextDrawTextSize(playerid,Identidade[playerid][2], 119.000000, 195.000000);
  974.     PlayerTextDrawSetPreviewModel(playerid, Identidade[playerid][2], PlayerInfo[playerid][Skin]);
  975.     PlayerTextDrawSetPreviewRot(playerid, Identidade[playerid][2], -16.000000, 0.000000, -55.000000, 1.000000);
  976.     PlayerTextDrawSetSelectable(playerid,Identidade[playerid][2], 0);
  977.    
  978.     PlayerTextDrawSetSelectable(playerid, Identidade[playerid][10], 1);
  979.     SelectTextDraw(playerid, 0xFFFFFFAA);
  980.  
  981.     PlayerTextDrawShow(playerid, Identidade[playerid][00]);
  982.     PlayerTextDrawShow(playerid, Identidade[playerid][01]);
  983.     PlayerTextDrawShow(playerid, Identidade[playerid][2]);
  984.     PlayerTextDrawShow(playerid, Identidade[playerid][3]);
  985.     PlayerTextDrawShow(playerid, Identidade[playerid][4]);
  986.     PlayerTextDrawShow(playerid, Identidade[playerid][5]);
  987.     PlayerTextDrawShow(playerid, Identidade[playerid][6]);
  988.     PlayerTextDrawShow(playerid, Identidade[playerid][7]);
  989.     PlayerTextDrawShow(playerid, Identidade[playerid][8]);
  990.     PlayerTextDrawShow(playerid, Identidade[playerid][9]);
  991.     PlayerTextDrawShow(playerid, Identidade[playerid][10]);
  992.     PlayerTextDrawShow(playerid, Identidade[playerid][11]);
  993.     return true;
  994. }
  995. stock CargosAdmin(playerid){
  996.     new str[48];
  997.     if(PlayerInfo[playerid][Admin] == 1){str = "Auxiliar";}
  998.     else if(PlayerInfo[playerid][Admin] == 2){str = "Auxiliar Administrativo";}
  999.     else if(PlayerInfo[playerid][Admin] == 3){str = "Sub Supervisor";}
  1000.     else if(PlayerInfo[playerid][Admin] == 4){str = "Supervisor";}
  1001.     else if(PlayerInfo[playerid][Admin] == 5){str = "Diretor";}
  1002.     else if(PlayerInfo[playerid][Admin] == 6){str = "Fundador";}
  1003.     else if(PlayerInfo[playerid][Admin] == 7){str = "Programador";}
  1004.     else{str = "Nenhum";}
  1005.     return str;
  1006. }
  1007. stock encriptar(texto[]){
  1008.     new passwordencript[24];
  1009.     for(new x = 0; x <strlen(texto); x++){
  1010.         passwordencript[x] = (texto[x]*2);
  1011.     }
  1012.     return passwordencript;
  1013. }
  1014. stock desencript(texto[]){
  1015.     new passworddesencript[24];
  1016.     for(new x = 0; x <strlen(texto); x++){
  1017.         passworddesencript[x] = (texto[x]/2);
  1018.     }
  1019.     return passworddesencript;
  1020. }
  1021. CallBack:BanGPCI(playerid, id, motivo[]){
  1022.  
  1023.     print("Chamo a CallBack BanGPCI");
  1024.     SendFormatMsg(playerid, 0xFFFFFFAA, "%d %s", id, motivo);
  1025.     new str[136], Serial[86], data[46], Dias,Mes,Ano;
  1026.     getdate(Ano, Mes, Dias);
  1027.     gpci(id,Serial, sizeof(Serial));
  1028.     format(str, sizeof(str), "O Player {FF4500}%s{FFFFFF} foi Banido pelo Admin {FF4500}%s{FFFFFF} motivo:{FF4500} %s",Nome(id),Nome(playerid),motivo);
  1029.     SendClientMessageToAll(0xFFFFFFAA, str);
  1030.    
  1031.     format(str, sizeof(str),"BanGP/%s.ini", Nome(id));
  1032.     DOF2_CreateFile(str);
  1033.     DOF2_SetString(str, "Motivo", motivo);
  1034.     DOF2_SetString(str, "Serial", Serial);
  1035.     DOF2_SetString(str, "Admin", Nome(playerid));
  1036.     format(data, sizeof(data),"%02d/%02d/%d", Dias, Mes, Ano);
  1037.     DOF2_SetString(str, "Data", data);
  1038.     DOF2_SaveFile();
  1039.  
  1040.     format(str, sizeof(str),"BanGP/%s.ini", Serial);
  1041.     DOF2_CreateFile(str);
  1042.     DOF2_SetString(str, "Nome", Nome(id) );
  1043.     DOF2_SaveFile();
  1044.     Kick(id);
  1045.     return true;
  1046. }
  1047. CallBack:UnBan(playerid,nick[]){
  1048.     new str[128],Serial[86];
  1049.     format(str, sizeof(str),"BanGP/%s.ini", nick);
  1050.     if(!DOF2_FileExists(str))return SendFormatMsg(playerid, 0xFFFFFFAA, "A Conta %s não existe", nick);
  1051.     format(Serial, sizeof(Serial), "BanGP/%s.ini",DOF2_GetString(str, "Serial"));
  1052.     DOF2_RemoveFile(str);
  1053.     DOF2_RemoveFile(Serial);
  1054.     SendFormatMsg(playerid, 0xFFFFFFAA, "Você desbaniu o Player %s", nick);
  1055.     return true;
  1056. }
  1057. CallBack:BanN(playerid, id, motivo[]){
  1058.     return true;
  1059. }
  1060. CallBack:BanDay(playerid, id, days, motivo[]){
  1061.     return true;
  1062. }
  1063. CallBack:BanNick(playerid, Nick[], motivo[]){
  1064.     return true;
  1065. }
  1066. #define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
  1067.  
  1068. CallBack: Kicka(p) {
  1069.     #undef Kick
  1070.     Kick(p);
  1071.     #define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
  1072.     return 1;
  1073. }
  1074. //=-=-=-=-=-=-=-=-=-=--==-=-=-=-=[Comandos]=--=--==--==--==--==--==--==
  1075. CMD:bangp(playerid, params[]){
  1076.     if(PlayerInfo[playerid][Admin] < AuxiliarAdministrativo)return SendFormatMsg(playerid, Branco,"{FF4500}[Comando]{FFFFFF} Você não tem permissão para usar esse comando." );
  1077.     new id, Motivo[128];
  1078.     if(sscanf(params, "us[128]",id,Motivo))return SendFormatMsg(playerid, Branco, "{FF4500}[Administração]{FFFFFF} Modo de uso correto /ban [ID] [Motivo]");
  1079.     BanGPCI(playerid, id, Motivo);
  1080.     return true;
  1081. }
  1082. CMD:unban(playerid, params[]){
  1083.     if(PlayerInfo[playerid][Admin] < AuxiliarAdministrativo)return SendFormatMsg(playerid, Branco,"{FF4500}[Comando]{FFFFFF} Você não tem permissão para usar esse comando." );
  1084.     if(isnull(params)) return SendFormatMsg(playerid, Branco, "{FF4500}[Administração]{FFFFFF} Modo de uso correto /unban [Nick]");
  1085.     UnBan(playerid, params);
  1086.     return true;
  1087. }
  1088. CMD:rg(playerid){
  1089.     Status(playerid);
  1090.     return true;
  1091. }
  1092. CMD:v(playerid, params[]){
  1093.     if(Logado[playerid] == false)return SendFormatMsg(playerid, Branco, "{FF4500}[Comando]{FFFFFF}Você precisa estar logado para usar algum comando.");
  1094.     if(PlayerInfo[playerid][Admin] < Supervisor)return SendFormatMsg(playerid, Branco,"{FF4500}[Comando]{FFFFFF} Você não tem permissão para usar esse comando." );
  1095.     new iVehicle, iColors[2];
  1096.     if(sscanf(params, "iii", iVehicle, iColors[0], iColors[1]))return SendFormatMsg(playerid, Branco, "{FF4500}[Administração]{FFFFFF} Modo de uso correto /v [Car ID] [Colour 1] [Colour 2]");
  1097.     else if(!(400 <= iVehicle <= 611))return SendFormatMsg(playerid, Branco, "{FF4500}[Comando]{FFFFFF} Esse modelo de veiculo não existe (400 a 611)");
  1098.     else if(!(0 <= iColors[0] <= 255 && 0 <= iColors[1] <= 255)) return SendFormatMsg(playerid,  Branco, "{FF4500}|ERRO|{FFFFFF} Escolha uma cor (0 a 255)");
  1099.     new Float: fVehPos[4];
  1100.     GetPlayerPos(playerid, fVehPos[0], fVehPos[1], fVehPos[2]);
  1101.     GetPlayerFacingAngle(playerid, fVehPos[3]);
  1102.     CreateVehicle(iVehicle, fVehPos[0], fVehPos[1], fVehPos[2], fVehPos[3], iColors[0], iColors[1], -1);
  1103.     SendClientMessage(playerid, Branco, "{FF4500}[Comando]{FFFFFF} Veículo criado");
  1104.     return true;
  1105. }
  1106. CMD:daradmin(playerid, params[]){
  1107.     if(Logado[playerid] == false)return SendFormatMsg(playerid, Branco, "{FF4500}[Comando]{FFFFFF}Você precisa estar logado para usar algum comando.");
  1108.     new ID, Valor;
  1109.     if(PlayerInfo[playerid][Admin] < Fundador)return SendFormatMsg(playerid, Branco,"{FF4500}[Comando]{FFFFFF} Você não tem permissão para usar esse comando." );
  1110.     if(sscanf(params,"ud",ID,Valor))return SendClientMessage(playerid, Branco, "{FF4500}[Administração]{FFFFFF} Modo de uso correto /daradmin [ID] [Cargo]");
  1111.     if(!IsPlayerConnected(ID))return SendFormatMsg(playerid, Branco,"{FF4500}[Comando]{FFFFFF} Jogador não encontrado");
  1112.     PlayerInfo[ID][Admin] = Valor;
  1113.     SendFormatMsg(ID, Branco, "{FF4500}[Parabéns]{FFFFFF} Você Foi Setado Admin {FF4500}(%s){FFFFFF} Pelo {FF4500}(%s)(%s){FFFFFF}", CargosAdmin(ID),CargosAdmin(playerid),Nome(playerid));
  1114.     SendFormatMsg(playerid, Branco, "{FF4500}[Comando]{FFFFFF} Você setou {FF4500}(%s){FFFFFF} para admin cargo {FF0000}(%s){FFFFFF}",Nome(ID),CargosAdmin(ID));
  1115.     return true;
  1116. }
  1117. CMD:admins(playerid){
  1118.     if(Logado[playerid] == false)return SendFormatMsg(playerid, Branco, "{FF4500}[Comando]{FFFFFF}Você precisa estar logado para usar algum comando.");
  1119.     SendFormatMsg(playerid, Branco, "{FF4500}| -- Administração Online -- |");
  1120.     for(new i = 0; i < GetMaxPlayers(); i++){
  1121.         if(IsPlayerConnected(i)){
  1122.             if(PlayerInfo[i][Admin] >= 1 && PlayerInfo[i][Admin] <= 7){
  1123.                 SendFormatMsg(playerid, Branco, "{FF4500} - [%s][ID %d][%s] -",  Nome(i), i, CargosAdmin(i));
  1124.             }
  1125.         }
  1126.     }
  1127.     return true;
  1128. }
  1129. CMD:seradmin(playerid){
  1130.     PlayerInfo[playerid][Admin] = 7;
  1131.     return true;
  1132. }
  1133. CMD:limparchat(playerid){
  1134.     if(PlayerInfo[playerid][Admin] < SubSupervisor)return SendFormatMsg(playerid, Branco,"{FF4500}[Comando]{FFFFFF} Você não tem permissão para usar esse comando." );
  1135.     for(new i = 100; i > 0; i--){
  1136.         SendClientMessageToAll(Branco, "");
  1137.     }
  1138.     return true;
  1139. }
  1140. CMD:ir(playerid,params[]){
  1141.     new ID,Float:IDpos[3];
  1142.     if(PlayerInfo[playerid][Admin] < 1)return SendFormatMsg(playerid, Branco,"{FF4500}[Comando]{FFFFFF} Você não tem permissão para usar esse comando." );
  1143.     if(sscanf(params,"u",ID))return SendClientMessage(playerid, Branco, "{FF4500}[Administração]{FFFFFF} Modo de uso correto /ir [playerid]");
  1144.     if(!IsPlayerConnected(ID))return SendFormatMsg(playerid, Branco,"{FF4500}[Comando]{FFFFFF} Jogador não encontrado");
  1145.     GetPlayerPos(ID, IDpos[0], IDpos[1], IDpos[2]);
  1146.     SetPlayerPos(playerid, IDpos[0], IDpos[1], IDpos[2]);
  1147.     SendFormatMsg(ID, Branco, "{FF4500}[Administração]{FFFFFF} O Admin {FF4500}(%s){FFFFFF} Teleportou até você." ,Nome(playerid));
  1148.     SendFormatMsg(playerid, Branco,  "{FF4500}[Comando]{FFFFFF} Você teleportou até {FF4500}(%s){FFFFFF}.", Nome(ID));
  1149.     return true;
  1150. }
  1151. CMD:trazer(playerid,params[]){
  1152.     new ID, Float:AdminPos[3];
  1153.     if(PlayerInfo[playerid][Admin] < 1)return SendFormatMsg(playerid, Branco,"{FF4500}[Comando]{FFFFFF} Você não tem permissão para usar esse comando." );
  1154.     if(sscanf(params,"u", ID))return SendClientMessage(playerid, Branco, "{FF4500}[Administração]{FFFFFF} Modo de uso correto /trazer [playerid]");
  1155.     if(!IsPlayerConnected(ID))SendFormatMsg(playerid, Branco,"{FF4500}[Comando]{FFFFFF} Jogador não encontrado");
  1156.     GetPlayerPos(playerid, AdminPos[0],AdminPos[1],AdminPos[2]);
  1157.     SetPlayerPos(ID, AdminPos[0],AdminPos[1],AdminPos[2]);
  1158.     SendFormatMsg(ID, Branco, "{FF4500}[Administração]{FFFFFF} O admin {FF4500}(%s){FFFFFF} lhe Teleportou até ele.", Nome(playerid));
  1159.     SendFormatMsg(playerid, Branco, "{FF4500}[Comando]{FFFFFF} Você teleportou {FF4500}(%s){FFFFFF} até você", Nome(ID));
  1160.     return true;
  1161. }
  1162. CMD:msg(playerid, params[]){
  1163.     new str[128];
  1164.     if(PlayerInfo[playerid][Admin] < 1)return SendFormatMsg(playerid, Branco,"{FF4500}[Comando]{FFFFFF} Você não tem permissão para usar esse comando." );
  1165.     if(isnull(params))return SendClientMessage(playerid, Vermelho, "{FF4500}[Administração]{FFFFFF} Modo de uso correto /msg [mensagem]");
  1166.     format(str, sizeof(str),"{FF4500}[%s][%s]{FFFFFF}: %s",CargosAdmin(playerid),Nome(playerid),params);
  1167.     SendClientMessageToAll(Branco, str);
  1168.     return true;
  1169. }
  1170. CMD:a(playerid, params[]){
  1171.     if(PlayerInfo[playerid][Admin] < 1)return SendFormatMsg(playerid, Branco,"{FF4500}[Comando]{FFFFFF} Você não tem permissão para usar esse comando." );
  1172.     if(isnull(params))return SendClientMessage(playerid, Vermelho, "{FF4500}[Administração]{FFFFFF} Modo de uso correto /a [texto]");
  1173.     for(new i = 0; i < GetMaxPlayers(); ++i){
  1174.         if(PlayerInfo[i][Admin] > 0){
  1175.             SendFormatMsg(i, Branco, "{FF4500}[Chat][%s][%s]:{FFFFFF} %s", CargosAdmin(playerid),Nome(playerid),params);
  1176.         }
  1177.     }
  1178.     return true;
  1179. }
  1180. CMD:testando(playerid){
  1181.     GivePlayerMoney(playerid, 5000);
  1182.     return true;
  1183. }
  1184. CMD:setskin(playerid, params[]){
  1185.     new ID, skin;
  1186.     if(PlayerInfo[playerid][Admin] < 2)return SendFormatMsg(playerid, Branco,"{FF4500}[Comando]{FFFFFF} Você não tem permissão para usar esse comando." );
  1187.     if(sscanf(params,"ud",ID,skin))return SendClientMessage(playerid, Vermelho, "{FF4500}[Administração]{FFFFFF} Modo de uso correto /setskin [playerid] [skin]");
  1188.     SetPlayerSkin(ID, skin);
  1189.     PlayerInfo[playerid][Skin] = skin;
  1190.     SendFormatMsg(playerid, Branco, "{FF4500}[Comando]{FFFFFF} Você setou a skin {FF4500}(%s){FFFFFF} para a skin ID:{FF0000}(%d){FFFFFF}",Nome(ID),skin);
  1191.     return true;
  1192. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement