Guest User

vvvvv

a guest
Sep 4th, 2012
1,790
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 28.55 KB | None | 0 0
  1.      //*********************************************************************************
  2.      //*  ///////////  ////////////  //        //          // \\       //||////////||  *
  3.      //*  //        \\ //       ///  //        //         //  \\      // ||        ||  *
  4.      //*  //        \\ //       ///  //        //        //   \\     //  ||        ||  *
  5.      //*  //        \\ //       ///  //        //       //    \\    //   ||        ||  *
  6.      //*  //        // //////////    //        //      //     \\   //    ||        ||  *
  7.      //*  //////////   //      //    //        //     //      \\  //     ||        ||  *
  8.      //*  //       //  //      //    //        //    //       \\  //     ||        ||  *
  9.      //*  //       //  //       //   //        //   //        \\  //     ||        ||  *
  10.      //*  //       //  //       //   //        //  //         \\ //      ||        ||  *
  11.      //*  //////////   //        //  //////////// //          \\//       ||////////||  *
  12.      //**********************************************************************************
  13.      // ||            Créditos: FilterScript totalmente feito por Bruno Alves           ||
  14.      // ||    Acesse a melhor familia(equipe) de samp:www.pawn-evolution.forumeiros.com ||
  15.      // ||______________________________________________________________________________||
  16. #include <a_samp>
  17. #include <DOF2>
  18. #include <zcmd>
  19. #include <sscanf2>
  20.  
  21. //------- Cores -------
  22. #define Verde                0x00FF00FF
  23. #define Vermelho             0xFF0000AA
  24. #define Azul                 0x0000FFAA
  25. #define Marron               0x804000AA
  26. #define Branco               0xFFFFFFAA
  27. #define Laranja              0xFF8000AA
  28. #define Azul_Marinho         0x80FFFFAA
  29. #define Cinza                0xC0C0C0AA
  30. #define Rosa                 0xFF80FFAA
  31. #define AZUL_CLARO           0x80BFFFAA
  32. #define Verde_Escuro         0x007138AA
  33. #define Amarelo              0xFFFF00AA
  34. #define Roxo                 0x9F009FAA
  35. #define VERDE_AGUA           0x03D687FF
  36. #define CINZA_ESCURO         0x626262FF
  37. #define VERDE                0x21DD00FF
  38. #define VERMELHO_CLARO       0xFB0000FF
  39. #define VERDE_CLARO          0x38FF06FF
  40. #define ROSA_CHOQUE          0xE100E1FF
  41. #define VERDE_ESCURO         0x008040FF
  42. #define CINZA_ESCURO         0x626262FF
  43.  
  44. #define Radios 100
  45. //--------------Forwards----------------------
  46. forward NovoSpawn(playerid);
  47. forward FecharPortao();
  48. forward SalarioVip(playerid);
  49. forward LiberarHP(playerid);
  50. //--------------------------------------------
  51. #define FILTERSCRIPT
  52. enum Informacoes
  53. {
  54.     Vip,
  55.     Skin
  56. }
  57.  
  58. new ID;
  59. new Player[MAX_PLAYERS][Informacoes];
  60. new NivelVip[50];
  61. new String[150];
  62. new PortaoHQ;
  63. new CarrosVip[14];
  64. new Text3D:DonoCarro[MAX_PLAYERS];
  65. new Veiculo, Cor01, Cor02, CarroCriado[MAX_PLAYERS];
  66. new TimerLiberarHP;
  67. new ComprouVida[MAX_PLAYERS];
  68. new Float:x, Float:y, Float:z;
  69. //------
  70. #if defined FILTERSCRIPT
  71. public OnFilterScriptInit()
  72. {
  73.     CarrosVip[0] = CreateVehicle(432,2179.80004883,1857.69995117,10.89999962,0.00000000,-1,-1,15);
  74.     CarrosVip[1] = CreateVehicle(601,2185.30004883,1857.50000000,10.80000019,0.00000000,-1,-1,15);
  75.     CarrosVip[2] = CreateVehicle(402,2188.80004883,1856.59997559,10.80000019,0.00000000,-1,-1,15);
  76.     CarrosVip[3] = CreateVehicle(411,2192.39990234,1856.80004883,10.60000038,0.00000000,-1,-1,15);
  77.     CarrosVip[4] = CreateVehicle(415,2196.19995117,1856.69995117,10.69999981,0.00000000,-1,-1,15);
  78.     CarrosVip[5] = CreateVehicle(429,2199.89990234,1856.80004883,10.60000038,0.00000000,-1,-1,15);
  79.     CarrosVip[6] = CreateVehicle(451,2179.69995117,1878.59997559,10.60000038,180.00000000,-1,-1,15);
  80.     CarrosVip[7] = CreateVehicle(477,2183.30004883,1878.50000000,10.69999981,180.00000000,-1,-1,15);
  81.     CarrosVip[8] = CreateVehicle(506,2187.50000000,1878.30004883,10.60000038,180.00000000,-1,-1,15);
  82.     CarrosVip[9] = CreateVehicle(541,2191.50000000,1878.59997559,10.50000000,180.00000000,-1,-1,15);
  83.     CarrosVip[10] = CreateVehicle(562,2195.30004883,1878.69995117,10.60000038,180.00000000,-1,-1,15);
  84.     CarrosVip[11] = CreateVehicle(565,2199.30004883,1878.59997559,10.50000000,180.00000000,-1,-1,15);
  85.     CarrosVip[12] = CreateVehicle(534,2202.80004883,1878.50000000,10.60000038,180.00000000,-1,-1,15);
  86.     CarrosVip[13] = CreateVehicle(535,2206.50000000,1878.90002441,10.69999981,180.00000000,-1,-1,15);
  87.     CreateObject(980,2231.50000000,1882.80004883,13.10000038,0.00000000,0.00000000,0.00000000);
  88.     CreateObject(980,2220.10009766,1882.80004883,13.10000038,0.00000000,0.00000000,0.00000000);
  89.     CreateObject(980,2208.80004883,1882.80004883,13.10000038,0.00000000,0.00000000,0.00000000);
  90.     CreateObject(980,2197.50000000,1882.80004883,13.10000038,0.00000000,0.00000000,0.00000000);
  91.     CreateObject(980,2186.30004883,1882.80004883,13.10000038,0.00000000,0.00000000,0.00000000);
  92.     CreateObject(980,2174.89990234,1882.80004883,13.10000038,0.00000000,0.00000000,0.00000000);
  93.     CreateObject(980,2169.10009766,1877.19995117,13.10000038,0.00000000,0.00000000,90.00000000);
  94.     CreateObject(980,2169.10009766,1866.30004883,13.10000038,0.00000000,0.00000000,90.00000000);
  95.     CreateObject(980,2169.10009766,1862.50000000,13.10000038,0.00000000,0.00000000,90.00000000);
  96.     CreateObject(980,2169.10009766,1841.09997559,12.80000019,0.00000000,0.00000000,0.00000000);
  97.     CreateObject(980,2179.00000000,1841.09997559,12.80000019,0.00000000,0.00000000,0.00000000);
  98.     CreateObject(980,2189.89990234,1841.09997559,12.80000019,0.00000000,0.00000000,0.00000000);
  99.     CreateObject(980,2199.00000000,1841.09997559,12.80000019,0.00000000,0.00000000,0.00000000);
  100.     CreateObject(980,2169.10009766,1861.19995117,13.19999981,0.00000000,0.00000000,96.00000000);
  101.     CreateObject(980,2169.89990234,1859.69995117,12.60000038,0.00000000,0.00000000,99.99853516);
  102.     CreateObject(980,2171.30004883,1856.80004883,12.80000019,0.00000000,0.00000000,115.99755859);
  103.     CreateObject(980,2172.50000000,1855.40002441,12.80000019,0.00000000,0.00000000,133.99362183);
  104.     CreateObject(980,2181.30004883,1851.09997559,13.10000038,0.00000000,0.00000000,180.00000000);
  105.     CreateObject(980,2191.39990234,1851.09997559,13.10000038,0.00000000,0.00000000,179.99450684);
  106.     CreateObject(980,2198.69995117,1851.09997559,13.10000038,0.00000000,0.00000000,179.99450684);
  107.     CreateObject(980,2205.10009766,1835.80004883,12.60000038,0.00000000,0.00000000,272.00000000);
  108.     CreateObject(980,2205.39990234,1826.00000000,12.60000038,0.00000000,0.00000000,271.99951172);
  109.     CreateObject(980,2222.00000000,1820.59997559,12.60000038,0.00000000,0.00000000,177.99951172);
  110.     CreateObject(980,2211.19995117,1821.00000000,12.60000038,0.00000000,0.00000000,177.99499512);
  111.     CreateObject(980,2242.89990234,1882.59997559,16.39999962,0.00000000,0.00000000,0.00000000);
  112.     CreateObject(980,2254.10009766,1882.59997559,16.39999962,0.00000000,0.00000000,0.00000000);
  113.     CreateObject(980,2265.39990234,1882.59997559,16.39999962,0.00000000,0.00000000,0.00000000);
  114.     CreateObject(980,2276.60009766,1882.59997559,16.39999962,0.00000000,0.00000000,0.00000000);
  115.     CreateObject(980,2287.69995117,1882.59997559,16.39999962,0.00000000,0.00000000,0.00000000);
  116.     CreateObject(980,2297.69995117,1882.59997559,16.39999962,0.00000000,0.00000000,0.00000000);
  117.     CreateObject(980,2308.19995117,1882.59997559,16.39999962,0.00000000,0.00000000,0.00000000);
  118.     PortaoHQ = CreateObject(980,2204.39990234,1846.00000000,12.60000038,0.00000000,0.00000000,91.99951172);
  119.     Create3DTextLabel("{25E01B}Vips usem {04C4C4}/Portaovip",-1, 2207.8176,1853.0674,10.8203, 15, 0, 0);
  120.     SetTimer("SalarioVip",600000,true);
  121.     return 1;
  122. }
  123.  
  124. public OnFilterScriptExit()
  125. {
  126.     print("\n--------------------------------------");
  127.     print(" Sistema de vip desligado.");
  128.     print("--------------------------------------\n");
  129.     DOF2_Exit();
  130.     return 1;
  131. }
  132.  
  133. #else
  134.  
  135. main()
  136. {
  137.     print("Sistema de vip:Bruno Alves");
  138. }
  139.  
  140. #endif
  141.  
  142. public OnPlayerConnect(playerid)
  143. {
  144.     new arquivo[40], name[MAX_PLAYER_NAME];
  145.     GetPlayerName(playerid, name, 32);
  146.     format(arquivo, 40, "VIPS/%s.ini", name);
  147.     if(DOF2_FileExists(arquivo))
  148.     {
  149.         Player[playerid][Vip] = DOF2_GetInt(arquivo, "Vip");
  150.     }
  151.     else  
  152.     {
  153.         DOF2_CreateFile(arquivo);
  154.     }
  155.     return 1;
  156. }
  157.  
  158. public OnPlayerDisconnect(playerid)
  159. {
  160.     SalvarContas(playerid);
  161.     return 1;
  162. }
  163.  
  164. public OnPlayerSpawn(playerid)
  165. {
  166.     if(Player[playerid][Vip] > 0)
  167.     {
  168.        SetTimerEx("NovoSpawn", 500, false, "i", playerid);
  169.     }
  170.     return 0;
  171. }
  172.  
  173. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  174. {
  175.     if((vehicleid >= CarrosVip[0]) && (vehicleid <= CarrosVip[13]))
  176.     {
  177.         if(Player[playerid][Vip] < 1)
  178.         {
  179.             GetPlayerPos(playerid, x, y, z);
  180.             SetPlayerPos(playerid, x, y, z+5);
  181.             RemovePlayerFromVehicle(playerid);
  182.             SendClientMessage(playerid, Cinza, "Você precisa ser Vip para usar este carro.");
  183.         }
  184.     }
  185.     return 0;
  186. }
  187.  
  188. //------------COMANDOS VIPS LEVEL 1---------------
  189. CMD:cmdsvip(playerid, params[])
  190. {
  191.     new Ajuda[1500];
  192.     if(Player[playerid][Vip] == 0) return SendClientMessage(playerid, Branco, "Você precisa ser VIP para usar este comando!\n\n");
  193.     strcat(Ajuda, "{FFFFFF}Comandos Vip Ouro\n{FFFF00}/cc /AnVip /Saveskin /Cskin - /GodCar - /Asay - /SavePos - /IrPos\n\n");
  194.     strcat(Ajuda, "{FFFFFF}Comandos Vip Prata\n{CDC9C9}/JetPack - /GodVip - /HqVip - /DarSpawn - /SkinVip - /Radio - /IrVip\n\n");
  195.     strcat(Ajuda, "{FFFFFF}Comandos Vip Bronze\n{DAA520}/V - /PortaoVip - /HqVip - /Reparar - /Kitvip - /MeuTempo - /MudarCor - /SouVip");
  196.     ShowPlayerDialog(playerid, 555, DIALOG_STYLE_MSGBOX, "VIPS - Ajuda", Ajuda, "Fechar", "");
  197.     return 1;
  198. }
  199.  
  200. CMD:v(playerid, params[])
  201. {
  202.     new Texto[128];
  203.     if(Player[playerid][Vip] < 1)  return SendClientMessage(playerid, -1, "Você precisa ser Vip para usar este comando!");
  204.     if(sscanf(params, "s", Texto)) return SendClientMessage(playerid, Cinza, "Use /v [texto]"), SendClientMessage(playerid, -1, "Use o comando para mandar mensagens para os Vips online");
  205.     if(Player[playerid][Vip] == 1) NivelVip = "{DAA520}Vip-Bronze";
  206.     if(Player[playerid][Vip] == 2) NivelVip = "{CDC9C9}Vip-Prata";
  207.     if(Player[playerid][Vip] == 3) NivelVip = "{FFFF00}Vip-Ouro";
  208.     format(String, sizeof(String), "(*XAT-VIP*)%s %s: %s", NivelVip, Nome(playerid), Texto);
  209.     for(new i = 0; i < MAX_PLAYERS; i++)
  210.     {
  211.         if(Player[i][Vip] > 0)
  212.         {
  213.             SendClientMessage(i, -1, String);
  214.         }
  215.     }
  216.     return 1;
  217. }
  218.    
  219. CMD:portaovip(playerid, params[])
  220. {
  221.     if(Player[playerid][Vip] < 1) return SendClientMessage(playerid, Branco, "Você precisa ser Vip para usar este comando!");
  222.     MoveObject(PortaoHQ, 2205.10009766,1835.50000000,12.60000038, 4, 0.00000000, 0.00000000, 91.99951172);
  223.     GameTextForPlayer(playerid, "Portao ~g~Aberto", 1000, 6);
  224.     SetTimer("FecharPortao", 5000, false);
  225.     return 1;
  226. }
  227.  
  228. CMD:hqvip(playerid)
  229. {  
  230.     if(Player[playerid][Vip] < 1) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!!");
  231.     SetPlayerPos(playerid, 2225.9814,1837.7249,10.8203);
  232.     SetPlayerFacingAngle(playerid, 98.0608);
  233.     return 1;
  234. }
  235.  
  236. CMD:kitvip(playerid)
  237. {
  238.     if(Player[playerid][Vip] < 1) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
  239.     GivePlayerWeapon(playerid, 24, 500), GivePlayerWeapon(playerid, 26, 500);
  240.     GivePlayerWeapon(playerid, 30, 500),GivePlayerWeapon(playerid, 32, 500);
  241.     GivePlayerWeapon(playerid, 34, 500),GivePlayerWeapon(playerid, 18, 50);
  242.     return 1;
  243. }
  244.  
  245. CMD:reparar(playerid)
  246. {
  247.     if(Player[playerid][Vip] < 1) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
  248.     if(IsPlayerInAnyVehicle(playerid)) {
  249.         new veiculo;
  250.         PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
  251.         veiculo = GetPlayerVehicleID(playerid);
  252.         SetVehicleHealth(veiculo,1000);
  253.         RepairVehicle(veiculo);
  254.         SendClientMessage(playerid,Verde,"Carro consertado.");
  255.     }
  256.     else {
  257.         SendClientMessage(playerid, Vermelho, "Você tem que estar em um veiculo!!");
  258.     }
  259.     return 1;
  260. }
  261. CMD:meutempo(playerid, params[])
  262. {
  263.     new Tempo;
  264.     if(Player[playerid][Vip] < 1) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
  265.     if(sscanf(params, "d", Tempo)) return SendClientMessage(playerid, Branco, "[BTK] Use /MeuTempo [ID]");
  266.     if(Tempo > 45) return SendClientMessage(playerid, Branco, "Ids de 0 a 45!!");
  267.     SetPlayerWeather(playerid, Tempo);
  268.     return 1;
  269. }
  270.  
  271. CMD:mudarcor(playerid)
  272. {
  273.     if(Player[playerid][Vip] < 1) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
  274.     ShowPlayerDialog(playerid, 800, DIALOG_STYLE_LIST, "Escolha uma cor:", "Vermelho\nVerde\nAmarelo\nAzul\nLaranja\nRoxo\nAzu l Marinho\nRosa\nCinza\nMarrom\nBranco\nAzul Claro\nVerde Escuro", "Ok", "Cancelar");
  275.     return 1;
  276. }
  277.  
  278. //-----COMANDOS VIP LEVEL 2 -----
  279.  
  280. CMD:jetpack(playerid)
  281. {
  282.     if(Player[playerid][Vip] < 2) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
  283.     SetPlayerSpecialAction(playerid, 2);
  284.     SendClientMessage(playerid, Rosa, "Parabéns seu Jetpack foi criado com sucesso.");
  285.     return 1;
  286. }
  287.  
  288. CMD:godvip(playerid)
  289. {
  290.     if(Player[playerid][Vip] < 2) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
  291.     if(ComprouVida[playerid] == 1) return SendClientMessage(playerid, -1, "Aguarde 30 Segundos usar o comando novamente");
  292.     SetPlayerHealth(playerid, 100.0);
  293.     SetPlayerArmour(playerid, 100.0);
  294.     PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  295.     ComprouVida[playerid] = 1;
  296.     TimerLiberarHP = SetTimerEx("LiberarHP", 30000, true, "i", playerid);
  297.     return 1;
  298. }
  299.  
  300. CMD:skinvip(playerid, params[])
  301. {
  302.     new skin;
  303.     if(Player[playerid][Vip] < 2) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
  304.     if(sscanf(params, "d", skin)) return SendClientMessage(playerid, Branco, "[BTK] Use /Trocar [id]");
  305.     if(skin < 0 || skin > 299) return SendClientMessage(playerid, -1, "ERRO: Skins são de 0 a 299");
  306.     SendClientMessage(playerid, AZUL_CLARO,"Skin trocado com sucesso!");
  307.     SetPlayerSkin(playerid, skin);
  308.     return 1;
  309. }
  310.  
  311. CMD:darspawn(playerid)
  312. {
  313.     if(Player[playerid][Vip] < 2) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
  314.     SendClientMessage(playerid, AZUL_CLARO, "Vc foi spawnado.");
  315.     SpawnPlayer(playerid);
  316.     return 1;
  317. }
  318.  
  319. CMD:radio(playerid)
  320. {
  321.     if(Player[playerid][Vip] < 2) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
  322.     ShowPlayerDialog(playerid, 801, DIALOG_STYLE_LIST,
  323.         "Brasil Top Killers",
  324.         "{ADFF2F} Funk Brasil \n{CAE1FF}Jovem Pan\n{7B68EE}Radio Atlantida\nRadio Cidade FM\n{6A5ACD}Radio Mantiquera\n{32CD32}Click Mix\nWeb Radio Virtual Dj\n{F900E0}Radio Vto Mix\nRadio Team Expert\nWeb Radio Relax\nRadio Novo Milenio\n{FFFFFF}Desligar Radio",
  325.         "Sintonizar", "Sair");
  326.     return 1;
  327. }
  328.  
  329. CMD:irvip(playerid, params[])
  330. {
  331.     if(Player[playerid][Vip] < 2) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
  332.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, Cinza, "[BTK] Use /IrVip [ID]"), SendClientMessage(playerid, Cinza, "Use o comando para ir até um jogador");
  333.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, Branco, "[ERRO] ID invalido");
  334.     new Float:Pos[3];
  335.     GetPlayerPos(ID, Pos[0], Pos[1], Pos[2]);
  336.     if(IsPlayerInAnyVehicle(playerid))
  337.     {
  338.         new carroid = GetPlayerVehicleID(playerid);
  339.         SetVehiclePos(carroid, Pos[0], Pos[1], Pos[2]);
  340.         format(String, sizeof(String), "O Vip %s veio até você!", Nome(playerid));
  341.         SendClientMessage(ID, AZUL_CLARO, String);
  342.         format(String, sizeof(String), "Você foi até o Jogador %s [ID: %d]", Nome(ID), ID);
  343.         SendClientMessage(playerid, AZUL_CLARO, String);
  344.         return 1;
  345.     }
  346.     SetPlayerPos(playerid, Pos[0]+2, Pos[1]+2, Pos[2]+2);
  347.     format(String, sizeof(String), "O Vip %s veio até você!", Nome(playerid));
  348.     SendClientMessage(ID, AZUL_CLARO, String);
  349.     format(String, sizeof(String), "Você foi até o Jogador %s [ID: %d]", Nome(ID), ID);
  350.     SendClientMessage(playerid, AZUL_CLARO, String);
  351.     return 1;
  352. }
  353. //----------COMANODS VIP LEVEL 3 ------
  354.  
  355. CMD:cc(playerid, params[])
  356. {
  357.     if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
  358.     if(sscanf(params, "ddd", Veiculo, Cor01, Cor02)) return SendClientMessage(playerid, -1, "USO: /v [ID] [Cor1] [Cor2]");
  359.     if(Veiculo < 400 || Veiculo > 611) return SendClientMessage(playerid, -1, "ERRO: ID's de 400 a 611");
  360.     if(Veiculo == 432|| Veiculo == 520|| Veiculo == 447) return SendClientMessage(playerid, -1, "|ERRO| Id proibido tente outro");
  361.     if(Cor01 < 1 || Cor01 > 255) return SendClientMessage(playerid, -1, "ERRO: Cores de 1 a 255");
  362.     new Float:X, Float:Y, Float:Z;
  363.     GetPlayerPos(playerid, X, Y, Z);
  364.     DestroyVehicle(CarroCriado[playerid]);
  365.     CarroCriado[playerid] = CreateVehicle(Veiculo, X, Y, Z, 0.0, Cor01, Cor02, -1);
  366.     format(String, sizeof(String), "Carro VIP de {FFFF00}%s", Nome(playerid));
  367.     DonoCarro[playerid] = Create3DTextLabel(String, VERDE_CLARO, X, Y, Z+1, 30, 0, 1);
  368.     Attach3DTextLabelToVehicle(DonoCarro[playerid], CarroCriado[playerid], 0, 0, 0);
  369.     PutPlayerInVehicle(playerid, CarroCriado[playerid], 0);
  370.     return 1;
  371. }
  372.  
  373. CMD:anvip(playerid, params[])
  374. {
  375.     new Texto[200];
  376.     if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
  377.     if(sscanf(params, "s[200]", Texto)) return SendClientMessage(playerid, Vermelho, "Erro: /Anvip [Texto]");
  378.     format(String, sizeof(String), "{4682B4}<<ANUNCIO VIP DE %s >>{B0C4DE}** %s **",Nome(playerid), Texto);
  379.     SendClientMessageToAll(Azul, String);
  380.     return 1;
  381. }
  382.  
  383. CMD:saveskin(playerid)
  384. {  
  385.     if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
  386.     SendClientMessage(playerid, VERDE_AGUA, "Skin salvo para carregalo use /cskin!");
  387.     DOF2_SetInt(Contas(playerid), "Skin", GetPlayerSkin(playerid));
  388.     return 1;
  389. }
  390.  
  391. CMD:cskin(playerid)
  392. {  
  393.     new arquivo[40], name[MAX_PLAYER_NAME];
  394.     GetPlayerName(playerid, name, 32);
  395.     format(arquivo, 40, "VIPS/%s.ini", name);
  396.     if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
  397.     SendClientMessage(playerid, VERDE_AGUA, "Skin carregado com sucesso!");
  398.     SetPlayerSkin(playerid, DOF2_GetInt(arquivo, "Skin"));
  399.     return 1;
  400. }
  401.  
  402. CMD:savepos(playerid)
  403. {
  404.     if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
  405.     SendClientMessage(playerid, VERDE_AGUA, "Posição salva com sucesso!");
  406.     new Float: Pos[3];
  407.     GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  408.     DOF2_SetFloat(Contas(playerid),"CoordenadaX",Pos[0]);
  409.     DOF2_SetFloat(Contas(playerid),"CoordenadaY",Pos[1]);
  410.     DOF2_SetFloat(Contas(playerid),"CoordenadaZ",Pos[2]);
  411.     DOF2_SetInt(Contas(playerid),"Interior", GetPlayerInterior(playerid));
  412.     DOF2_SaveFile();
  413.     return 1;
  414. }
  415.  
  416. CMD:irpos(playerid)
  417. {
  418.     if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
  419.     SendClientMessage(playerid, VERDE_AGUA, "Você foi até a posição salva!");
  420.     SetPlayerPos(playerid,DOF2_GetFloat(Contas(playerid),"CoordenadaX"),DOF2_GetFloat(Contas(playerid),"CoordenadaY"),DOF2_GetFloat(Contas(playerid),"CoordenadaZ"));
  421.     SetPlayerInterior(playerid, DOF2_GetInt(Contas(playerid),"Interior"));
  422.     return 1;
  423. }
  424.  
  425.  
  426. CMD:godcar(playerid)
  427. {
  428.     if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
  429.     if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Branco, "Você deve estar em um veiculo!!!");
  430.     SetVehicleHealth(GetPlayerVehicleID(playerid), 999999);
  431.     return 1;
  432. }
  433.  
  434. CMD:asay(playerid, params[])
  435. {
  436.     new Texto[128];
  437.     if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
  438.     if(sscanf(params, "s", Texto)) return SendClientMessage(playerid, Cinza, "Use /texto [texto]"), SendClientMessage(playerid, Cinza, "Use o comando para mandar uma mensagem em forma de GameText aos jogadores");
  439.     format(String, sizeof(String), "~b~VIP:~y~%s: ~w~%s", Nome(playerid), Texto);
  440.     GameTextForAll(String, 2000, 4);
  441.     return 1;
  442. }
  443. //------OUTROS COMANDOS DO SISTEMA----
  444. CMD:darvip(playerid, params[])
  445. {
  446.     new Level;
  447.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Cinza, "Logue-se na Rcon para usar este comando.");
  448.     if(sscanf(params, "ui", ID, Level)) return SendClientMessage(playerid, -1, "Use /darvip [ID] [level]"), SendClientMessage(playerid, -1, "Use o comando para dar vip a algun jogador");
  449.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, Branco, "[ERRO] ID invalido");
  450.     format(String, sizeof(String), "O Admin %s deu vip level %d a %s",Nome(playerid), Level, Nome(ID));
  451.     SendClientMessageToAll(Verde, String);
  452.     if(Level > 3) return SendClientMessage(playerid, -1, "ERRO: Leveis de 3 para baixo");
  453.     Player[ID][Vip] = Level;
  454.     return 1;
  455. }
  456.  
  457. CMD:tirarvip(playerid, params[])
  458. {
  459.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, Branco, "Use /TirarVip [ID]");
  460.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, Branco, "[ERRO] ID invalido");
  461.     if(Player[ID][Vip] == 0) return SendClientMessage(playerid, Branco, "Este player não é VIP.");
  462.     format(String, sizeof(String), "O Admin %s tirou o vip de %s",Nome(playerid), Nome(ID));
  463.     SendClientMessageToAll(Vermelho, String);
  464.     Player[ID][Vip] = 0;
  465.     return 1;
  466. }
  467.  
  468.  
  469. CMD:vips(playerid)
  470.     {
  471.         new IsVip;
  472.         SendClientMessage(playerid, VERDE_CLARO, "Vips Online:");
  473.         for(new i = 0; i < MAX_PLAYERS; ++i)
  474.         {
  475.             if(Player[i][Vip])
  476.             {
  477.                 format(String, sizeof(String), "%s", Nome(i));
  478.                 SendClientMessage(playerid, Branco, String);
  479.                 IsVip++;
  480.             }
  481.         }
  482.         if(IsVip == 0)
  483.         {
  484.             SendClientMessage(playerid, Cinza, "Nenhum VIP online.");
  485.         }
  486.         IsVip = 0;
  487.         return 1;
  488.     }
  489.  
  490. CMD:souvip(playerid)
  491. {
  492.     if(Player[playerid][Vip] < 1)  return SendClientMessage(playerid, -1, "Você precisa ser Vip para usar este comando!");
  493.     if(Player[playerid][Vip] == 0) NivelVip = "{FFFFFF}0";
  494.     if(Player[playerid][Vip] == 1) NivelVip = "{DAA520}Vip-Bronze";
  495.     if(Player[playerid][Vip] == 2) NivelVip = "{CDC9C9}Vip-Prata";
  496.     if(Player[playerid][Vip] == 3) NivelVip = "{FFFF00}Vip-Ouro";
  497.     format(String, sizeof(String), "Você é level vip:%s", NivelVip, Player[playerid][Vip]);
  498.     SendClientMessage(playerid, -1, String);
  499.     return 1;
  500. }
  501. //----------------------------------------
  502. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  503. {
  504.      if(dialogid == 800) {
  505.         if(response) {
  506.             new Cor;
  507.             switch(listitem) {
  508.                 case 0: Cor =  Vermelho;
  509.                 case 1: Cor = Verde;
  510.                 case 2: Cor = Amarelo;
  511.                 case 3: Cor = Azul;
  512.                 case 4: Cor = Laranja;
  513.                 case 5: Cor = Roxo;
  514.                 case 6: Cor = Azul_Marinho;
  515.                 case 7: Cor = Rosa;
  516.                 case 8: Cor = Cinza;
  517.                 case 9: Cor = Marron;
  518.                 case 10: Cor = Branco;
  519.                 case 11: Cor = AZUL_CLARO;
  520.                 case 12: Cor = Verde_Escuro;
  521.             }
  522.             SetPlayerColor(playerid, Cor);
  523.             SendClientMessage(playerid, Verde, "Cor trocada com sucesso");
  524.         }
  525.     }
  526.    
  527.      if(dialogid == 801) {
  528.         if(response) {
  529.             if(listitem == 0) {
  530.                 SendClientMessage(playerid, Amarelo, "Radio Funk Brasil Sintonizada");
  531.                 GameTextForPlayer(playerid,"~w~Radio Funk Brasil Sintonizada",5000,3);
  532.                 PlayAudioStreamForPlayer(playerid, "http://70.36.100.78:10452/");
  533.                 return 1;
  534.             }
  535.  
  536.             if(listitem == 1) {
  537.                 SendClientMessage(playerid, Amarelo, "Radio Jovem Pan Sintonizada");
  538.                 GameTextForPlayer(playerid,"~y~Radio Jovem Pan Sintonizada",5000,3);
  539.                 PlayAudioStreamForPlayer(playerid, "http://64.15.147.220:8042/");
  540.                 return 1;
  541.             }
  542.  
  543.             if(listitem == 2) {
  544.                 SendClientMessage(playerid, Amarelo, "Radio Atlantida Sintonizada");
  545.                 GameTextForPlayer(playerid,"~Y~Radio Atlantida Sintonizada",5000,3);
  546.                 PlayAudioStreamForPlayer(playerid, "http://189.76.158.143:50002/");
  547.                 return 1;
  548.             }
  549.  
  550.             if(listitem == 3) {
  551.                 SendClientMessage(playerid, Amarelo, "Radio  Cidade FM Sintonizada");
  552.                 GameTextForPlayer(playerid,"~w~Radio Cidade Sintonizada",5000,3);
  553.                 PlayAudioStreamForPlayer(playerid, "http://75.126.5.125:8226/");
  554.                 return 1;
  555.             }
  556.  
  557.             if(listitem == 4) {
  558.                 SendClientMessage(playerid, Amarelo, "Radio Mantiquera Sintonizada");
  559.                 GameTextForPlayer(playerid,"~w~Radio Mantiquera Sintonizada",5000,3);
  560.                 PlayAudioStreamForPlayer(playerid, "http://184.154.37.136:8081/");
  561.                 return 1;
  562.             }
  563.  
  564.             if(listitem == 5) {
  565.                 SendClientMessage(playerid, Amarelo, "Radio Click mix Sintonizada");
  566.                 GameTextForPlayer(playerid,"~w~Radio Click Mix Sintonizada",5000,3);
  567.                 PlayAudioStreamForPlayer(playerid, "http://50.30.33.114:9998");
  568.                 return 1;
  569.             }
  570.  
  571.             if(listitem == 6) {
  572.                 SendClientMessage(playerid, Amarelo, "Radio Virtual Dj Sintonizada");
  573.                 GameTextForPlayer(playerid,"~w~Radio Virtual Dj Sintonizada",5000,3);
  574.                 PlayAudioStreamForPlayer(playerid, "http://173.212.197.233:7800");
  575.                 return 1;
  576.             }
  577.  
  578.             if(listitem == 7) {
  579.                 SendClientMessage(playerid, Amarelo, "Radio Vto Mix Sintonizada");
  580.                 GameTextForPlayer(playerid,"~w~Radio Vto Mix Sintonizada",5000,3);
  581.                 PlayAudioStreamForPlayer(playerid, "http://s3.voscast.com:7554/");
  582.                 return 1;
  583.             }
  584.  
  585.             if(listitem == 8) {
  586.                 SendClientMessage(playerid, Amarelo, "Radio Team Expert Sintonizada");
  587.                 GameTextForPlayer(playerid,"~w~Radio Team Expert Sintonizada",5000,3);
  588.                 PlayAudioStreamForPlayer(playerid, "http://64.31.30.91:9980");
  589.                 return 1;
  590.             }
  591.  
  592.             if(listitem == 9) {
  593.                 SendClientMessage(playerid, Amarelo, "Radio Relax Sintonizada");
  594.                 GameTextForPlayer(playerid,"~w~Radio Relax Sintonizada",5000,3);
  595.                 PlayAudioStreamForPlayer(playerid, "http://streaming18.brlogic.com:8204/live");
  596.                 return 1;
  597.             }
  598.  
  599.             if(listitem == 10) {
  600.                 SendClientMessage(playerid, Amarelo, "Radio Novo Milenio Sintonizada");
  601.                 GameTextForPlayer(playerid,"~w~Radio Novo Milenio Sintonizada",5000,3);
  602.                 PlayAudioStreamForPlayer(playerid, "http://174.142.79.66:8110");
  603.                 return 1;
  604.             }
  605.             if(listitem == 11) {
  606.                 GameTextForPlayer(playerid,"~w~Radio Desligada Com Sucesso!",5000,3);
  607.                 StopAudioStreamForPlayer(playerid);
  608.             }
  609.         }
  610.     }
  611.      return 1;
  612. }
  613. public FecharPortao()
  614. {
  615.     MoveObject(PortaoHQ, 2204.39990234,1846.00000000,12.60000038, 2, 0, 0, 90);
  616.     return 1;
  617. }
  618.  
  619. public NovoSpawn(playerid)
  620. {
  621.     SetPlayerPos(playerid, 2225.9814,1837.7249,10.8203);
  622.     SetPlayerFacingAngle(playerid, 98.0608);
  623.     return 1;
  624. }
  625.  
  626. public SalarioVip(playerid)
  627. {
  628.     if(Player[playerid][Vip] >= 1)
  629.     {
  630.     SendClientMessage(playerid, Amarelo, "Salario Vip Recebido(R$100 mil) e + 5 de level");
  631.     SetPlayerScore(playerid,GetPlayerScore(playerid) +5);
  632.     GivePlayerMoney(playerid, 100000);
  633.     }
  634.     return 1;
  635. }
  636.  
  637. public LiberarHP(playerid)
  638. {
  639.     ComprouVida[playerid] = 0;
  640.     SendClientMessage(playerid, -1, "{00FF00}Compra de HP Liberada");
  641.     KillTimer(TimerLiberarHP);
  642.     return 1;
  643. }
  644.  
  645. stock Contas(playerid)
  646. {
  647.     new arquivo[40], name[MAX_PLAYER_NAME];
  648.     GetPlayerName(playerid, name, 32);
  649.     format(arquivo, 40, "VIPS/%s.ini", name);
  650.     return arquivo;
  651. }
  652.  
  653. stock SalvarContas(playerid)
  654. {
  655.     if(!DOF2_FileExists(Contas(playerid))) DOF2_CreateFile(Contas(playerid));
  656.     else
  657.     {
  658.         DOF2_SetInt(Contas(playerid), "Vip", Player[playerid][Vip]);
  659.         DOF2_SaveFile();
  660.     }
  661.     return 1;
  662. }
  663.  
  664. stock Nome(playerid)
  665. {
  666.     new pNome[MAX_PLAYER_NAME];
  667.     GetPlayerName(playerid, pNome, 24);
  668.     return pNome;
  669. }
Advertisement
Add Comment
Please, Sign In to add comment