BR_Gustavo

Comandos TmO

Sep 16th, 2018
208
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //------------------------------------------------------------------------------
  2. CMD:settmo(playerid,params[])
  3. {
  4.     new ID,Nivel,MsgNivelbG[150],InserirMysql[250];
  5.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  6.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  7.     if(!IsPlayerAdmin(playerid) && PlayerClan[playerid][TmO] < 8)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR","You need to be 7+ level [TmO] Member to use this command","OK",""); {
  8.     if(sscanf(params,"ud",ID,Nivel))return SendClientMessage(playerid,Vermelho,"USAGE: /SetTmO [Player] [Level]");
  9.     if(!IsPlayerConnected(ID))return SendClientMessage(playerid,Vermelho,"ERROR: Player is not connected");{
  10.     if(PlayerInfo[ID][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: Player must be registered and logged in to be set as a [bG] member");
  11.     if(Nivel <=-1 || Nivel >= 11)return SendClientMessage(playerid,0xFF0000AA,"ERROR: Max [TmO] Level is 10");
  12.     P_TmOComando(playerid,"SetTmO");
  13.     new TempoComando[6];
  14.     getdate(TempoComando[2],TempoComando[1],TempoComando[0]);
  15.     gettime(TempoComando[3],TempoComando[4],TempoComando[5]);
  16.     format(MsgNivelbG,sizeof(MsgNivelbG),"%s has set your [TmO] Status to level %d",Nome(playerid),Nivel);
  17.     SendClientMessage(ID,AzulClaro,MsgNivelbG);
  18.     if(Nivel > PlayerClan[ID][TmO]){ GameTextForPlayer(ID,"~g~TmO Rank PROMOTED", 2000, 3);}else
  19.     if(Nivel < PlayerClan[ID][TmO]){ GameTextForPlayer(ID,"~g~TmO Rank DEMOTED", 2000, 3);}
  20.     format(MsgNivelbG,sizeof(MsgNivelbG),"You have made %s [TmO] Level %d on %d/%d/%d at %d:%d:%d",Nome(ID),Nivel,TempoComando[0],TempoComando[1],TempoComando[2],TempoComando[3],TempoComando[4],TempoComando[5]);
  21.     printf("%s has made %s [TmO] Level %d on %d/%d/%d at %d:%d:%d",Nome(playerid),Nome(ID),Nivel,TempoComando[0],TempoComando[1],TempoComando[2],TempoComando[3],TempoComando[4],TempoComando[5]);
  22.     SendClientMessage(playerid,AzulClaro,MsgNivelbG);
  23.     mysql_format(MysqlDb,InserirMysql,sizeof(InserirMysql),"DELETE FROM `nivelclan` WHERE `Nome` = '%s' AND `clan` = 'TmO'",Nome(ID));
  24.     mysql_query(MysqlDb,InserirMysql,false);
  25.     mysql_format(MysqlDb,InserirMysql,sizeof(InserirMysql),"INSERT INTO nivelclan (Nome,Nivel,Quem,Clan,Dia,Mes,Ano,Hora,Minuto) VALUES ('%s','%d','%s','TmO','%d','%d','%d','%d','%d')",Nome(ID),Nivel,Nome(playerid),TempoComando[0],TempoComando[1],TempoComando[2],\
  26.     TempoComando[3],TempoComando[4]);
  27.     mysql_query(MysqlDb,InserirMysql,false);
  28.     PlayerClan[ID][TmO] = Nivel;}}
  29.     return 1;
  30. }
  31. //------------------------------------------------------------------------------
  32. CMD:settemptmo(playerid,params[])
  33. {
  34.     new ID,Nivel,MsgNivelbG[150];
  35.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  36.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  37.     if(PlayerClan[playerid][TmO] < 7)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR","You need to be 7+ level [TmO] Member to use this command","OK","");
  38.     if(sscanf(params,"ud",ID,Nivel))return SendClientMessage(playerid,Vermelho,"USAGE: /SetTempTmO [Player] [Level]");
  39.     if(!IsPlayerConnected(ID))return SendClientMessage(playerid,Vermelho,"ERROR: Player is not connected");{
  40.     if(PlayerInfo[ID][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: Player must be registered and logged in to be set as a [bG] member");
  41.     if(Nivel <=-1 || Nivel >= 11)return SendClientMessage(playerid,0xFF0000AA,"ERROR: Max [TmO] Level is 10");
  42.     P_TmOComando(playerid,"SetTempTmO");
  43.     new TempoComando[6];
  44.     getdate(TempoComando[2],TempoComando[1],TempoComando[0]);
  45.     gettime(TempoComando[3],TempoComando[4],TempoComando[5]);
  46.     format(MsgNivelbG,sizeof(MsgNivelbG),"%s has set youre [TmO] Status to level %d",Nome(playerid),Nivel);
  47.     SendClientMessage(ID,AzulClaro,MsgNivelbG);
  48.     if(Nivel > PlayerClan[ID][TmO]){ GameTextForPlayer(ID,"~g~TmO Rank PROMOTED", 2000, 3);}else
  49.     if(Nivel < PlayerClan[ID][TmO]){ GameTextForPlayer(ID,"~g~TmO Rank DEMOTED", 2000, 3);}
  50.     format(MsgNivelbG,sizeof(MsgNivelbG),"You have made %s [TmO] TemporaTmO Level %d on %d/%d/%d at %d:%d:%d",Nome(ID),Nivel,TempoComando[0],TempoComando[1],TempoComando[2],TempoComando[3],TempoComando[4],TempoComando[5]);
  51.     printf("%s has made %s [TmO] TemporaTmO Level %d on %d/%d/%d at %d:%d:%d",Nome(playerid),Nome(ID),Nivel,TempoComando[0],TempoComando[1],TempoComando[2],TempoComando[3],TempoComando[4],TempoComando[5]);
  52.     SendClientMessage(playerid,AzulClaro,MsgNivelbG);
  53.     PlayerClan[ID][TmO] = Nivel;}
  54.     return 1;
  55. }
  56. //------------------------------------------------------------------------------
  57. CMD:osettmo(playerid,params[])
  58. {
  59.     new Nivel,ContaNome[50],Consulta[150],InserirMysql[250];
  60.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  61.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  62.     if(PlayerClan[playerid][bG] < 9)return SendClientMessage(playerid,Vermelho,"ERROR: You need to be higher TmO Level to use this command");
  63.     if(sscanf(params,"s[50]d",ContaNome,Nivel))return SendClientMessage(playerid,Vermelho,"USAGE: /OSetTmO [Player-Name] [Level]");
  64.     if(Nivel <=-1 || Nivel >= 11)return SendClientMessage(playerid,Vermelho,"ERROR: Incorrect Level TmO - Only betwen 1 to 10");
  65.     mysql_format(MysqlDb,Consulta,sizeof(Consulta),"SELECT * FROM `contas` WHERE `Nome` = '%s'",ContaNome);
  66.     mysql_query(MysqlDb,Consulta,true);
  67.     if(cache_num_rows() == 0){ SendClientMessage(playerid,Vermelho,"ERROR: This username not exist on database!");}else
  68.     if(cache_num_rows() >=1){
  69.     new TempoComando[6];
  70.     getdate(TempoComando[2],TempoComando[1],TempoComando[0]);
  71.     gettime(TempoComando[3],TempoComando[4],TempoComando[5]);
  72.     cache_get_value(0,"Nome",ContaNome,50);
  73.     mysql_format(MysqlDb,InserirMysql,sizeof(InserirMysql),"DELETE FROM `nivelclan` WHERE `Nome` = '%s' AND `Clan` = 'TmO'",ContaNome);
  74.     mysql_query(MysqlDb,InserirMysql,false);
  75.     mysql_format(MysqlDb,InserirMysql,sizeof(InserirMysql),"INSERT INTO nivelclan (Nome,Nivel,Quem,Clan,Dia,Mes,Ano,Hora,Minuto) VALUES ('%s','%d','%s','TmO','%d','%d','%d','%d','%d')",ContaNome,Nivel,Nome(playerid),TempoComando[0],TempoComando[1],TempoComando[2],\
  76.     TempoComando[3],TempoComando[4]);
  77.     mysql_query(MysqlDb,InserirMysql,false);
  78.     format(Consulta,sizeof(Consulta),"%s level has been successfully set to (%d)",ContaNome,Nivel);
  79.     SendClientMessage(playerid,AzulClaro,Consulta);
  80.     P_TmOComando(playerid,"OSetTmO");
  81.     foreach(new Todos: Player){
  82.     if(IsPlayerConnected(Todos)){
  83.     if(!strcmp(Nome(Todos),ContaNome,true)){
  84.     PlayerClan[Todos][TmO] = Nivel;
  85.     break;}}}}
  86.     return 1;
  87. }
  88. //------------------------------------------------------------------------------
  89. CMD:tmomembers(playerid,params[])
  90. {
  91.     SendClientMessage(playerid, 0xFF0000AA, " ");
  92.     SendClientMessage(playerid, 0xFF0000AA, "{FF0000}__________ |- {FFFFFF}Online {FF0000}[TmO]Toxic Mafia Organization {FFFFFF}Members {FF0000}-| __________");
  93.     SendClientMessage(playerid, 0xFF0000AA, " ");
  94.     new Contar,online,MsgMandar[128],Nivel[70],TrocarCor,TmONivel;
  95.     for(new i,g=GetMaxPlayers(); i < g; i++) {
  96.     if(IsPlayerConnected(i)) {
  97.     if(1 <= PlayerClan[i][TmO] && PlayerInfo[i][Logado] == 1){
  98.     online = 1; {
  99.     if(PlayerClan[i][TmO] == 1) { Nivel = "{85E0E0}New Member"; TrocarCor = 0xFFFF00AA; }
  100.     if(PlayerClan[i][TmO] == 2) { Nivel = "{00FFFF}Junior Member"; TrocarCor = 0x000099AA; }
  101.     if(PlayerClan[i][TmO] == 3) { Nivel = "{FFFF00}Senior Member"; TrocarCor = 0xFFFF00AA; }
  102.     if(PlayerClan[i][TmO] == 4) { Nivel = "{FFFFFF}Honored Member"; TrocarCor = 0xFFFFFFAA; }
  103.     if(PlayerClan[i][TmO] == 5) { Nivel = "{FF0000}Hitman"; TrocarCor = 0xFF0000AA; }
  104.     if(PlayerClan[i][TmO] == 6) { Nivel = "{006600}General"; TrocarCor = 0x006600AA; }
  105.     if(PlayerClan[i][TmO] == 7) { Nivel = "{0066FF}Leader"; TrocarCor = 0x0066FFAA; }
  106.     if(PlayerClan[i][TmO] == 8) { Nivel = "{99FF99}Assistant"; TrocarCor = 0x99FF99AA; }
  107.     if(PlayerClan[i][TmO] == 9) { Nivel = "{FF9900}Manager"; TrocarCor = 0xFF9900AA; }
  108.     if(PlayerClan[i][TmO] == 10) { Nivel = "{404040}The Boss"; TrocarCor = 0x404040AA; }}
  109.     TmONivel = PlayerClan[i][TmO];
  110.     format(MsgMandar,sizeof(MsgMandar), "{FF0000}Rank:{FFFFFF} %d {FF0000}-{FFFFFF} %s {FF0000}(Id:{FFFFFF}%i{FF0000}) | %s {FF0000}| {FFFFFF}%s",TmONivel,Nome(i),i,Nivel);
  111.     Contar++;}
  112.     if(Contar){
  113.     format(MsgMandar,sizeof(MsgMandar),"%s",MsgMandar);
  114.     SendClientMessage(playerid,TrocarCor,MsgMandar);
  115.     MsgMandar = "";
  116.     Contar = 0;}}}
  117.     if(!online) SendClientMessage(playerid,0xFF0000AA,"{FFFFFF}No online {FF0000}[TmO]Toxic Mafia Organization {FFFFFF}Members");
  118.     SendClientMessage(playerid, 0xFF0000AA, "{FF0000}_________________________________________________");
  119.     return 1;
  120. }
  121. //------------------------------------------------------------------------------
  122. CMD:tmoboat(playerid,params[])
  123. {
  124.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  125.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  126.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  127.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  128.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  129.     P_TmOComando(playerid,"TmOBoat");
  130.     P_CriarCarro(playerid,484,-1,-1);
  131.     SendClientMessage(playerid,0x00FFFFAA,"You are spawned TmO Jetmax");
  132.     return 1;
  133. }
  134. //------------------------------------------------------------------------------
  135. CMD:tmotune(playerid,params[])
  136. {
  137.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  138.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  139.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  140.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  141.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  142.     P_TmOComando(playerid,"TmOTune");
  143.     ChangeVehicleColor(GetPlayerVehicleID(playerid),1,1);
  144.     AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
  145.     PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
  146.     return 1;
  147. }
  148. //------------------------------------------------------------------------------
  149. CMD:tmobike(playerid,params[])
  150. {
  151.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  152.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  153.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  154.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  155.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  156.     P_TmOComando(playerid,"TmOBike");
  157.     P_CriarCarro(playerid,521,-1,-1);
  158.     SendClientMessage(playerid,0x00FFFFAA,"You are spawned TmO Bike");
  159.     return 1;
  160. }
  161. //------------------------------------------------------------------------------
  162. CMD:tmocar1(playerid,params[])
  163. {
  164.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  165.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  166.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  167.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  168.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  169.     P_TmOComando(playerid,"TmOCar1");
  170.     P_CriarCarro(playerid,500,-1,-1);
  171.     AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
  172.     SendClientMessage(playerid,0x00FFFFAA,"You are spawned TmO Mesa");
  173.     return 1;
  174. }
  175. //------------------------------------------------------------------------------
  176. CMD:tmocar2(playerid,params[])
  177. {
  178.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  179.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  180.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  181.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  182.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  183.     P_TmOComando(playerid,"TmOCar2");
  184.     P_CriarCarro(playerid,445,-1,-1);
  185.     AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
  186.     SendClientMessage(playerid,0x00FFFFAA,"You are spawned TmO Admiral");
  187.     return 1;
  188. }
  189. //------------------------------------------------------------------------------
  190. CMD:tmocar3(playerid,params[])
  191. {
  192.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  193.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  194.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  195.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  196.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  197.     P_TmOComando(playerid,"TmOCar3");
  198.     P_CriarCarro(playerid,541,-1,-1);
  199.     AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
  200.     SendClientMessage(playerid,0x00FFFFAA,"You are spawned TmO Bullet");
  201.     return 1;
  202. }
  203. //------------------------------------------------------------------------------
  204. CMD:tmoheli(playerid,params[])
  205. {
  206.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  207.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  208.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  209.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  210.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  211.     P_TmOComando(playerid,"TmOHeli");
  212.     P_CriarCarro(playerid,487,-1,-1);
  213.     SendClientMessage(playerid,0x00FFFFAA,"You are spawned TmO Heli");
  214.     return 1;
  215. }
  216. //------------------------------------------------------------------------------
  217. CMD:tmoplane(playerid,params[])
  218. {
  219.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  220.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  221.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  222.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  223.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  224.     P_TmOComando(playerid,"TmOHeli");
  225.     P_CriarCarro(playerid,511,-1,-1);
  226.     SendClientMessage(playerid,0x00FFFFAA,"You are spawned TmO Plane");
  227.     return 1;
  228. }
  229. //------------------------------------------------------------------------------
  230. CMD:tmoskin1(playerid,params[])
  231. {
  232.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  233.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  234.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  235.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  236.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  237.     P_TmOComando(playerid,"TmOSkin1");
  238.     SetPlayerSkin(playerid,124);
  239.     return 1;
  240. }
  241. //------------------------------------------------------------------------------
  242. CMD:tmoskin2(playerid,params[])
  243. {
  244.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  245.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  246.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  247.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  248.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  249.     P_TmOComando(playerid,"TmOSkin2");
  250.     SetPlayerSkin(playerid,111);
  251.     return 1;
  252. }
  253. //------------------------------------------------------------------------------
  254. CMD:tmoskin3(playerid,params[])
  255. {
  256.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  257.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  258.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  259.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  260.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  261.     P_TmOComando(playerid,"TmOSkin3");
  262.     SetPlayerSkin(playerid,126);
  263.     return 1;
  264. }
  265. //------------------------------------------------------------------------------
  266. CMD:tmoskin4(playerid,params[])
  267. {
  268.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  269.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  270.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  271.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  272.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  273.     P_TmOComando(playerid,"TmOSkin4");
  274.     SetPlayerSkin(playerid,127);
  275.     return 1;
  276. }
  277. //------------------------------------------------------------------------------
  278. CMD:tmoskin5(playerid,params[])
  279. {
  280.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  281.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  282.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  283.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  284.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  285.     P_TmOComando(playerid,"TmOSkin5");
  286.     SetPlayerSkin(playerid,141);
  287.     return 1;
  288. }
  289. //------------------------------------------------------------------------------
  290. CMD:tmodesert(playerid,params[])
  291. {
  292.     new MsgArmaTmO[100];
  293.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  294.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  295.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  296.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  297.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  298.     P_TmOComando(playerid,"TmODesert");
  299.     format(MsgArmaTmO,sizeof(MsgArmaTmO),"{FF0000}[TmO-Bot]:{FFFFFF} %s has used command {0094FF}/TmODesert.",Nome(playerid));
  300.     SendClientMessageToAll(Vermelho,MsgArmaTmO);
  301.     SendClientMessage(playerid,0xFF0000AA,"Enjoy with TmO Desert");
  302.     ResetPlayerWeapons(playerid);
  303.     PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  304.     GivePlayerWeapon(playerid,24,1000);
  305.     return 1;
  306. }
  307. //------------------------------------------------------------------------------
  308. CMD:tmom4(playerid,params[])
  309. {
  310.     new MsgArmaTmO[100];
  311.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  312.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  313.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  314.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  315.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  316.     P_TmOComando(playerid,"TmOM4");
  317.     format(MsgArmaTmO,sizeof(MsgArmaTmO),"{FF0000}[TmO-Bot]:{FFFFFF} %s has used command {0094FF}/TmOM4.",Nome(playerid));
  318.     SendClientMessageToAll(Vermelho,MsgArmaTmO);
  319.     SendClientMessage(playerid,0xFF0000AA,"Enjoy with TmO M4");
  320.     ResetPlayerWeapons(playerid);
  321.     PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  322.     GivePlayerWeapon(playerid,31,1000);
  323.     return 1;
  324. }
  325. //------------------------------------------------------------------------------
  326. CMD:tmom5(playerid,params[])
  327. {
  328.     new MsgArmaTmO[100];
  329.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  330.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  331.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  332.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  333.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  334.     P_TmOComando(playerid,"TmOM5");
  335.     format(MsgArmaTmO,sizeof(MsgArmaTmO),"{FF0000}[TmO-Bot]:{FFFFFF} %s has used command {0094FF}/TmOM5.",Nome(playerid));
  336.     SendClientMessageToAll(Vermelho,MsgArmaTmO);
  337.     SendClientMessage(playerid,0xFF0000AA,"Enjoy with TmO M5");
  338.     ResetPlayerWeapons(playerid);
  339.     PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  340.     GivePlayerWeapon(playerid,29,1000);
  341.     return 1;
  342. }
  343. //------------------------------------------------------------------------------
  344. CMD:tmosniper(playerid,params[])
  345. {
  346.     new MsgArmaTmO[100];
  347.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  348.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  349.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  350.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  351.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  352.     P_TmOComando(playerid,"TmOSniper");
  353.     format(MsgArmaTmO,sizeof(MsgArmaTmO),"{FF0000}[TmO-Bot]:{FFFFFF} %s has used command {0094FF}/TmOSniper.",Nome(playerid));
  354.     SendClientMessageToAll(Vermelho,MsgArmaTmO);
  355.     SendClientMessage(playerid,0xFF0000AA,"Enjoy with TmO Sniper");
  356.     ResetPlayerWeapons(playerid);
  357.     PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  358.     GivePlayerWeapon(playerid,34,1000);
  359.     return 1;
  360. }
  361. //------------------------------------------------------------------------------
  362. CMD:tmoweaps(playerid,params[])
  363. {
  364.     new MsgArmaTmO[100];
  365.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  366.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  367.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  368.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  369.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  370.     format(MsgArmaTmO,sizeof(MsgArmaTmO),"{FF0000}[TmO-Bot]:{FFFFFF} %s has used command {0094FF}/TmOWeaps.",Nome(playerid));
  371.     SendClientMessageToAll(0x00FFFFAA,MsgArmaTmO);
  372.     SendClientMessage(playerid,0xFF0000AA,"Enjoy with TmO Weaps");
  373.     GivePlayerWeapon(playerid,1,1000); GivePlayerWeapon(playerid,24,1000); GivePlayerWeapon(playerid,31,1000);
  374.     GivePlayerWeapon(playerid,4,1000); GivePlayerWeapon(playerid,26,1000); GivePlayerWeapon(playerid,34,1000);
  375.     GivePlayerWeapon(playerid,16,1000); GivePlayerWeapon(playerid,29,1000); GivePlayerWeapon(playerid,46,1000);
  376.     P_TmOComando(playerid,"TmOWeaps");
  377.     return 1;
  378. }
  379. //------------------------------------------------------------------------------
  380. CMD:tmo(playerid,params[])
  381. {
  382.     new Texto[128],CorChatTmO,MsgChatTmO[250];
  383.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  384.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  385.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  386.     if(sscanf(params,"s[128]",Texto))return SendClientMessage(playerid,Vermelho,"USAGE: /TmO  [Text]");
  387.     if(S_MsgAnuncio(Texto)) {
  388.     new MsgMandarIRC[350];
  389.     SendClientMessage(playerid, 0xFF0000FF, "Your message is considered as an advert, please review it.");
  390.     format(MsgMandarIRC,sizeof(MsgMandarIRC),"Admins: %s(IP: %s) tried to advert Text: [ %s ]",Nome(playerid),IP(playerid),Texto);
  391.     foreach(new Todos: Player) if(IsPlayerAdmin(Todos) || PlayerInfo[Todos][Admin] >= 1) SendClientMessage(Todos,Vermelho,MsgMandarIRC);
  392.     format(MsgMandarIRC,sizeof(MsgMandarIRC),"57Admins: %s(IP: %s) tried to advert Text: [ %s ]",Nome(playerid),IP(playerid),Texto);
  393.     IRC_GroupSay(GrupoID, IRC_OPERCANAL,MsgMandarIRC);
  394.     IRC_GroupSay(GrupoID, IRC_GUSTAVOCANAL,MsgMandarIRC);
  395.     return 0;}
  396.     format(MsgChatTmO,sizeof(MsgChatTmO),"[TmO-Chat]{0094FF}New Member{FFFFFF} %s{FF0000} : {ACACAC}%s",Nome(playerid),Texto); CorChatTmO = 0xFF0000FF;
  397.     if(PlayerClan[playerid][TmO] == 2){ format(MsgChatTmO,sizeof(MsgChatTmO), "[TmO-Chat]{0094FF}Junior Member{FFFFFF} %s{FF0000}: {FFFFFF}%s",Nome(playerid),Texto); CorChatTmO = 0xFF0000FF;}else
  398.     if(PlayerClan[playerid][TmO] == 3){ format(MsgChatTmO,sizeof(MsgChatTmO), "[TmO-Chat]{0094FF}Senior Member{FFFFFF} %s{FF0000}: {FFFFFF}%s",Nome(playerid),Texto); CorChatTmO = 0xFF0000FF;}else
  399.     if(PlayerClan[playerid][TmO] == 4){ format(MsgChatTmO,sizeof(MsgChatTmO), "[TmO-Chat]{0094FF}Honored Member{FFFFFF} %s{FF0000}: {FFFFFF}%s",Nome(playerid),Texto); CorChatTmO = 0xFF0000FF;}else
  400.     if(PlayerClan[playerid][TmO] == 5){ format(MsgChatTmO,sizeof(MsgChatTmO), "[TmO-Chat]{0094FF}Hitman{FFFFFF} %s{FF0000}: {FFFFFF}%s",Nome(playerid),Texto); CorChatTmO = 0xFF0000FF;}else
  401.     if(PlayerClan[playerid][TmO] == 6){ format(MsgChatTmO,sizeof(MsgChatTmO), "[TmO-Chat]{0094FF}General{FFFFFF} %s{FF0000}: {FFFFFF}%s",Nome(playerid),Texto); CorChatTmO = 0xFF0000FF;}else
  402.     if(PlayerClan[playerid][TmO] == 7){ format(MsgChatTmO,sizeof(MsgChatTmO), "[TmO-Chat]{0094FF}Leader{FFFFFF} %s{FF0000}: {FFFFFF}%s",Nome(playerid),Texto); CorChatTmO = 0xFF0000FF;}else
  403.     if(PlayerClan[playerid][TmO] == 8){ format(MsgChatTmO,sizeof(MsgChatTmO), "[TmO-Chat]{0094FF}Assistant{FFFFFF} %s{FF0000}: {FFFFFF}%s",Nome(playerid),Texto); CorChatTmO = 0xFF0000FF;}else
  404.     if(PlayerClan[playerid][TmO] == 9){ format(MsgChatTmO,sizeof(MsgChatTmO), "[TmO-Chat]{0094FF}Manager{FFFFFF} %s{FF0000}: {FFFFFF}%s",Nome(playerid),Texto); CorChatTmO = 0xFF0000FF;}else
  405.     if(PlayerClan[playerid][TmO] == 10){ format(MsgChatTmO,sizeof(MsgChatTmO), "[TmO-Chat]{0094FF}The Boss{FFFFFF} %s{FF0000}: {FFFFFF}%s",Nome(playerid),Texto); CorChatTmO = 0xFF0000FF;}
  406.     foreach(new Todos: Player){
  407.     if(IsPlayerConnected(Todos)){
  408.     if(PlayerClan[Todos][TmO] >=1){
  409.     SendClientMessage(Todos,CorChatTmO,MsgChatTmO);}}}
  410.     return 1;
  411. }
  412. //------------------------------------------------------------------------------
  413. CMD:tmoh(playerid,params[])
  414. {
  415.     new MsgChatTmO[250];
  416.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  417.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  418.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  419.     format(MsgChatTmO,sizeof(MsgChatTmO),"[TmO-Bot]{0094FF}New Member{FFFFFF} %s{FF0000}:{FF0000} is requesting help!",Nome(playerid));
  420.     if(PlayerClan[playerid][TmO] == 2){ format(MsgChatTmO,sizeof(MsgChatTmO), "[TmO-Chat]{0094FF}Junior Member{FFFFFF} %s{FF0000}:{FF0000} is requesting help!",Nome(playerid));}else
  421.     if(PlayerClan[playerid][TmO] == 3){ format(MsgChatTmO,sizeof(MsgChatTmO), "[TmO-Bot]{0094FF}Senior Member{FFFFFF} %s{FF0000}:{FF0000} is requesting help!",Nome(playerid));}else
  422.     if(PlayerClan[playerid][TmO] == 4){ format(MsgChatTmO,sizeof(MsgChatTmO), "[TmO-Bot]{0094FF}Honored Member{FFFFFF} %s{FF0000}:{FF0000} is requesting help!",Nome(playerid));}else
  423.     if(PlayerClan[playerid][TmO] == 5){ format(MsgChatTmO,sizeof(MsgChatTmO), "[TmO-Bot]{0094FF}Hitman{FFFFFF} %s{FF0000}:{FF0000} is requesting help!",Nome(playerid));}else
  424.     if(PlayerClan[playerid][TmO] == 6){ format(MsgChatTmO,sizeof(MsgChatTmO), "[TmO-Bot]{0094FF}General{FFFFFF} %s{FF0000}:{FF0000} is requesting help!",Nome(playerid));}else
  425.     if(PlayerClan[playerid][TmO] == 7){ format(MsgChatTmO,sizeof(MsgChatTmO), "[TmO-Bot]{0094FF}Leader{FFFFFF} %s{FF0000}:{FF0000} is requesting help!",Nome(playerid));}else
  426.     if(PlayerClan[playerid][TmO] == 8){ format(MsgChatTmO,sizeof(MsgChatTmO), "[TmO-Bot]{0094FF}Assistant{FFFFFF} %s{FF0000}:{FF0000} is requesting help!",Nome(playerid));}else
  427.     if(PlayerClan[playerid][TmO] == 9){ format(MsgChatTmO,sizeof(MsgChatTmO), "[TmO-Bot]{0094FF}Manager{FFFFFF} %s{FF0000}:{FF0000} is requesting help!",Nome(playerid));}else
  428.     if(PlayerClan[playerid][TmO] == 10){ format(MsgChatTmO,sizeof(MsgChatTmO), "[TmO-Bot]{0094FF}The Boss{FFFFFF} %s {FF0000}:{FF0000} is requesting help!",Nome(playerid));}
  429.     foreach(new Todos: Player){
  430.     if(IsPlayerConnected(Todos)){
  431.     if(PlayerClan[Todos][TmO] >=1){
  432.     SendClientMessage(Todos,0xFF0000AA,MsgChatTmO);}}}
  433.     return 1;
  434. }
  435. //------------------------------------------------------------------------------
  436. CMD:tmosay(playerid,params[])
  437. {
  438.     new Texto[128],MsgChatTmO[250],NivelNome[50];
  439.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  440.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  441.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  442.     if(sscanf(params,"s[128]",Texto))return SendClientMessage(playerid,Vermelho,"USAGE: /TmOSay  [Text]");
  443.     if(S_MsgAnuncio(Texto)) {
  444.     new MsgMandarIRC[350];
  445.     SendClientMessage(playerid, 0xFF0000FF, "Your message is considered as an advert, please review it.");
  446.     format(MsgMandarIRC,sizeof(MsgMandarIRC),"Admins: %s(IP: %s) tried to advert Text: [ %s ]",Nome(playerid),IP(playerid),Texto);
  447.     foreach(new Todos: Player) if(IsPlayerAdmin(Todos) || PlayerInfo[Todos][Admin] >= 1) SendClientMessage(Todos,Vermelho,MsgMandarIRC);
  448.     format(MsgMandarIRC,sizeof(MsgMandarIRC),"57Admins: %s(IP: %s) tried to advert Text: [ %s ]",Nome(playerid),IP(playerid),Texto);
  449.     IRC_GroupSay(GrupoID, IRC_OPERCANAL,MsgMandarIRC);
  450.     IRC_GroupSay(GrupoID, IRC_GUSTAVOCANAL,MsgMandarIRC);
  451.     return 0;}
  452.     if(PlayerClan[playerid][TmO] == 1){ NivelNome="New Member";}else
  453.     if(PlayerClan[playerid][TmO] == 2){ NivelNome="Junior Member";}else
  454.     if(PlayerClan[playerid][TmO] == 3){ NivelNome="Senior Member";}else
  455.     if(PlayerClan[playerid][TmO] == 4){ NivelNome="Honored Member";}else
  456.     if(PlayerClan[playerid][TmO] == 5){ NivelNome="Hitman";}else
  457.     if(PlayerClan[playerid][TmO] == 6){ NivelNome="General";}else
  458.     if(PlayerClan[playerid][TmO] == 7){ NivelNome="Leader";}else
  459.     if(PlayerClan[playerid][TmO] == 8){ NivelNome="Assistant";}else
  460.     if(PlayerClan[playerid][TmO] == 9){ NivelNome="Manager";}else
  461.     if(PlayerClan[playerid][TmO] == 10){ NivelNome="The Boss";}
  462.     format(MsgChatTmO, sizeof(MsgChatTmO), "{FF0000}***[TmO-Bot]{0094FF}%s{FFFFFF} %s {FF0000}:{FFFFFF} %s",NivelNome,Nome(playerid),Texto);
  463.     SendClientMessageToAll(0xFF0000AA,MsgChatTmO);
  464.     return 1;
  465. }
  466. //------------------------------------------------------------------------------
  467. CMD:tmoafk(playerid,params[])
  468. {
  469.     new MsgAfkTmO[250],NivelNome[50];
  470.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  471.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  472.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  473.     if(PlayerClan[playerid][TmO] == 1){ NivelNome="New Member";}else
  474.     if(PlayerClan[playerid][TmO] == 2){ NivelNome="Junior Member";}else
  475.     if(PlayerClan[playerid][TmO] == 3){ NivelNome="Senior Member";}else
  476.     if(PlayerClan[playerid][TmO] == 4){ NivelNome="Honored Member";}else
  477.     if(PlayerClan[playerid][TmO] == 5){ NivelNome="Hitman";}else
  478.     if(PlayerClan[playerid][TmO] == 6){ NivelNome="General";}else
  479.     if(PlayerClan[playerid][TmO] == 7){ NivelNome="Leader";}else
  480.     if(PlayerClan[playerid][TmO] == 8){ NivelNome="Assistant";}else
  481.     if(PlayerClan[playerid][TmO] == 9){ NivelNome="Manager";}else
  482.     if(PlayerClan[playerid][TmO] == 10){ NivelNome="The Boss";}
  483.     format(MsgAfkTmO,sizeof(MsgAfkTmO),"{FF0000}[TmO-Bot]{0094FF} %s {0099FF}(Rank: {FFFFFF}%d{0099FF}){FFFFFF} %s {0099FF}:{FFFF00} is now away from keyboard",NivelNome,PlayerClan[playerid][TmO],Nome(playerid),playerid);
  484.     SendClientMessageToAll(0xFF0000AA,MsgAfkTmO);
  485.     P_TmOComando(playerid,"TmOAfk");
  486.     TogglePlayerControllable(playerid, 0);
  487.     PlayerInfo[playerid][Trabalhando] = 2;
  488.     return 1;
  489. }
  490. //------------------------------------------------------------------------------
  491. CMD:tmoback(playerid,params[])
  492. {
  493.     new MsgAfkTmO[250],NivelNome[50];
  494.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  495.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  496.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  497.     if(PlayerClan[playerid][TmO] == 1){ NivelNome="New Member";}else
  498.     if(PlayerClan[playerid][TmO] == 2){ NivelNome="Junior Member";}else
  499.     if(PlayerClan[playerid][TmO] == 3){ NivelNome="Senior Member";}else
  500.     if(PlayerClan[playerid][TmO] == 4){ NivelNome="Honored Member";}else
  501.     if(PlayerClan[playerid][TmO] == 5){ NivelNome="Hitman";}else
  502.     if(PlayerClan[playerid][TmO] == 6){ NivelNome="General";}else
  503.     if(PlayerClan[playerid][TmO] == 7){ NivelNome="Leader";}else
  504.     if(PlayerClan[playerid][TmO] == 8){ NivelNome="Assistant";}else
  505.     if(PlayerClan[playerid][TmO] == 9){ NivelNome="Manager";}else
  506.     if(PlayerClan[playerid][TmO] == 10){ NivelNome="The Boss";}
  507.     format(MsgAfkTmO,sizeof(MsgAfkTmO),"{FF0000}[TmO-Bot]{0094FF} %s {FFFFFF} %s {0099FF}:{00FF00} is now Back",NivelNome,Nome(playerid),playerid);
  508.     SendClientMessageToAll(0xFF0000AA,MsgAfkTmO);
  509.     P_TmOComando(playerid,"TmOBack");
  510.     TogglePlayerControllable(playerid,1);
  511.     PlayerInfo[playerid][Trabalhando] = 1;
  512.     return 1;
  513. }
  514. //------------------------------------------------------------------------------
  515. CMD:tmocolour1(playerid,params[])
  516. {
  517.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  518.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  519.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  520.     SetPlayerColor(playerid,0xFFFFFFAA);
  521.     SendClientMessage(playerid,0x33CCFFAA,"{FFFFFF}You setted TmO Colour");
  522.     P_TmOComando(playerid,"TmOColour1");
  523.     return 1;
  524. }
  525. //------------------------------------------------------------------------------
  526. CMD:tmocolour2(playerid,params[])
  527. {
  528.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  529.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  530.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  531.     SetPlayerColor(playerid,0x0094FFAA);
  532.     SendClientMessage(playerid,0x0094FFAA,"{0094FF}You setted TmO Colour2");
  533.     P_TmOComando(playerid,"TmOColour2");
  534.     return 1;
  535. }
  536. //------------------------------------------------------------------------------
  537. CMD:tmoann(playerid,params[])
  538. {
  539.     new Texto[128],MsgFalarAnun[128];
  540.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  541.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  542.     if(PlayerClan[playerid][TmO] < 7)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  543.     if(sscanf(params,"s[128]",Texto))return SendClientMessage(playerid,Vermelho,"USAGE: /TmOAnn  [Text]");
  544.     if(S_MsgAnuncio(Texto)) {
  545.     new MsgMandarIRC[350];
  546.     SendClientMessage(playerid, 0xFF0000FF, "Your message is considered as an advert, please review it.");
  547.     format(MsgMandarIRC,sizeof(MsgMandarIRC),"Admins: %s(IP: %s) tried to advert Text: [ %s ]",Nome(playerid),IP(playerid),Texto);
  548.     foreach(new Todos: Player) if(IsPlayerAdmin(Todos) || PlayerInfo[Todos][Admin] >= 1) SendClientMessage(Todos,Vermelho,MsgMandarIRC);
  549.     format(MsgMandarIRC,sizeof(MsgMandarIRC),"57Admins: %s(IP: %s) tried to advert Text: [ %s ]",Nome(playerid),IP(playerid),Texto);
  550.     IRC_GroupSay(GrupoID, IRC_OPERCANAL,MsgMandarIRC);
  551.     IRC_GroupSay(GrupoID, IRC_GUSTAVOCANAL,MsgMandarIRC);
  552.     return 0;}
  553.     foreach(new Todos: Player){
  554.     if(IsPlayerConnected(Todos)){
  555.     if(PlayerClan[Todos][TmO] >=1){
  556.     PlayerPlaySound(Todos,1057,0.0,0.0,0.0);
  557.     GameTextForPlayer(Todos,Texto, 4000, 3);}}}
  558.     format(MsgFalarAnun,sizeof(MsgFalarAnun),"{FF0000}[TmO-Bot] {FFFFFF}Member \"%s\" has Announced to {0094FF}[TmO] {FFFFFF}Members.",Nome(playerid));
  559.     foreach(new Todos: Player){
  560.     if(IsPlayerConnected(Todos)){
  561.     if(PlayerClan[Todos][TmO] >=1){
  562.     PlayerPlaySound(Todos,1057,0.0,0.0,0.0);
  563.     GameTextForPlayer(Todos,Texto, 4000, 3);
  564.     SendClientMessage(Todos,0xFF0000AA,MsgFalarAnun);}}}
  565.     P_TmOComando(playerid,"TmOAnn");
  566.     return 1;
  567. }
  568. //------------------------------------------------------------------------------
  569. CMD:tmohelp(playerid,params[])
  570. {
  571.     if(PlayerInfo[playerid][Logado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be logged in to use this commands");
  572.     if(PlayerInfo[playerid][Registrado] == 0)return SendClientMessage(playerid,Vermelho,"ERROR: You must be registred in to use this commands");
  573.     if(PlayerInfo[playerid][NoEvento] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an event and can not use this command");
  574.     if(PlayerInfo[playerid][NoDuelo] == 1)return SendClientMessage(playerid,Vermelho,"ERROR: You are in an duel and can not use this command");
  575.     if(PlayerClan[playerid][TmO] < 1)return ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"ERROR", "You need to be [TmO] Member to use this command","OK","");
  576.     LogInformacao[playerid][0]="";
  577.     strcat(LogInformacao[playerid][0], "\n\n{0094FF}    [TmO]-Toxic Mafia Organization");
  578.     strcat(LogInformacao[playerid][0], "\n{FF0000}Basic Commands: ");
  579.     strcat(LogInformacao[playerid][0], "\n\n{0094FF}/TmOMembers{FFFFFF}|-[Shows all the members online]-|");
  580.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmOSkin(1/2/3/4/5) {FFFFFF}|-[Will give TmO skins To you :)]-|");
  581.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmOafk{FFFFFF} |-[Will set your TmO stutus Afk]-|");
  582.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmOback{FFFFFF} |-[Will set your TmO status Back]-|");
  583.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmO{FFFFFF} |-[Talk in private chat with TmO member online]-|");
  584.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmOh{FFFFFF} |-[Ask help to TmO members online!]-|");
  585.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmOColour(1/2){FFFFFF} |-[Will set you TmO officials colours]-|");
  586.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmOSay{FFFFFF} |-[TmO say in public chat]-|");
  587.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmOM4{FFFFFF} |-[Will give You TmO M4]-|");
  588.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmOMP5{FFFFFF}|-[Will give your TmO MP5]-|");
  589.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmOSniper{FFFFFF}|-[Will give your TmO sniper]-|");
  590.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmODesert{FFFFFF} |-[Will give your TmO desert eagle]-|");
  591.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmOWeaps{FFFFFF} |-[Will give your TmO weapons]-|");
  592.     strcat(LogInformacao[playerid][0], "\n{FF0000}Vehicle Commands: ");
  593.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmOTune{FFFFFF} |-[Will Tune Your Vehicle]-|");
  594.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmOBike{FFFFFF} |-[Will give Your TmO bike]-|");
  595.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmOCar(1/2/3){FFFFFF} |-[Will give your TmO cars]-|");
  596.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmOHeli{FFFFFF} |-[Will give your TmO heli]-|");
  597.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmOplane{FFFFFF} |-[Will give your TmO plane]-|");
  598.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmOBoat{FFFFFF} |-[Will give your TmO boat]-|");
  599.     strcat(LogInformacao[playerid][0], "\n{FF0000}Especials Commands: ");
  600.     strcat(LogInformacao[playerid][0], "\n{0094FF}/SettempTmO{FFFFFF} |-[Set temp TmO Level]-|");
  601.     strcat(LogInformacao[playerid][0], "\n{0094FF}/TmOann{FFFFFF} |-[Will give an announce to TmO members online]-|");
  602.     strcat(LogInformacao[playerid][0], "\n{0094FF}/SetTmO{FFFFFF} |-[Set TmO permanent Level]-|");
  603.     strcat(LogInformacao[playerid][0], "\n{0094FF}/SsetTmO{FFFFFF} |-[Set offline TmO permanent Level]-|");
  604.     strcat(LogInformacao[playerid][0], "\n{FF0000}Scripted By Hancock");
  605.     ShowPlayerDialog(playerid,DIALOG_CREDITOS,DIALOG_STYLE_MSGBOX,"{FFFFFF}[TmO]-Toxic Mafia Organization",LogInformacao[playerid][0], "OK","");
  606.     return 1;
  607. }
  608. //------------------------------------------------------------------------------
  609. forward P_TmOComando(playerid,Cmd[]);
  610. public P_TmOComando(playerid,Cmd[])
  611. {
  612.     new MsgComandoTmO[150];
  613.     format(MsgComandoTmO,sizeof(MsgComandoTmO),"{FF0000}[TmO-Bot]{FFFFFF} '%s' {0094FF}(Level: %d) {FFFFFF}| Command:{0094FF} %s",Nome(playerid),PlayerClan[playerid][TmO],Cmd);
  614.     foreach(new Todos: Player){
  615.     if(IsPlayerConnected(Todos)){
  616.     if(PlayerClan[Todos][TmO] >=1){
  617.     SendClientMessage(Todos,0xFF0000AA,MsgComandoTmO);}}}
  618.     return 1;
  619. }
RAW Paste Data