Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //*********************************************************************************
- //* /////////// //////////// // // // \\ //||////////|| *
- //* // \\ // /// // // // \\ // || || *
- //* // \\ // /// // // // \\ // || || *
- //* // \\ // /// // // // \\ // || || *
- //* // // ////////// // // // \\ // || || *
- //* ////////// // // // // // \\ // || || *
- //* // // // // // // // \\ // || || *
- //* // // // // // // // \\ // || || *
- //* // // // // // // // \\ // || || *
- //* ////////// // // //////////// // \\// ||////////|| *
- //**********************************************************************************
- // || Créditos: FilterScript totalmente feito por Bruno Alves ||
- // || Acesse a melhor familia(equipe) de samp:www.pawn-evolution.forumeiros.com ||
- // ||______________________________________________________________________________||
- #include <a_samp>
- #include <DOF2>
- #include <zcmd>
- #include <sscanf2>
- //------- Cores -------
- #define Verde 0x00FF00FF
- #define Vermelho 0xFF0000AA
- #define Azul 0x0000FFAA
- #define Marron 0x804000AA
- #define Branco 0xFFFFFFAA
- #define Laranja 0xFF8000AA
- #define Azul_Marinho 0x80FFFFAA
- #define Cinza 0xC0C0C0AA
- #define Rosa 0xFF80FFAA
- #define AZUL_CLARO 0x80BFFFAA
- #define Verde_Escuro 0x007138AA
- #define Amarelo 0xFFFF00AA
- #define Roxo 0x9F009FAA
- #define VERDE_AGUA 0x03D687FF
- #define CINZA_ESCURO 0x626262FF
- #define VERDE 0x21DD00FF
- #define VERMELHO_CLARO 0xFB0000FF
- #define VERDE_CLARO 0x38FF06FF
- #define ROSA_CHOQUE 0xE100E1FF
- #define VERDE_ESCURO 0x008040FF
- #define CINZA_ESCURO 0x626262FF
- #define Radios 100
- //--------------Forwards----------------------
- forward NovoSpawn(playerid);
- forward FecharPortao();
- forward SalarioVip(playerid);
- forward LiberarHP(playerid);
- //--------------------------------------------
- #define FILTERSCRIPT
- enum Informacoes
- {
- Vip,
- Skin
- }
- new ID;
- new Player[MAX_PLAYERS][Informacoes];
- new NivelVip[50];
- new String[150];
- new PortaoHQ;
- new CarrosVip[14];
- new Text3D:DonoCarro[MAX_PLAYERS];
- new Veiculo, Cor01, Cor02, CarroCriado[MAX_PLAYERS];
- new TimerLiberarHP;
- new ComprouVida[MAX_PLAYERS];
- new Float:x, Float:y, Float:z;
- //------
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- CarrosVip[0] = CreateVehicle(432,2179.80004883,1857.69995117,10.89999962,0.00000000,-1,-1,15);
- CarrosVip[1] = CreateVehicle(601,2185.30004883,1857.50000000,10.80000019,0.00000000,-1,-1,15);
- CarrosVip[2] = CreateVehicle(402,2188.80004883,1856.59997559,10.80000019,0.00000000,-1,-1,15);
- CarrosVip[3] = CreateVehicle(411,2192.39990234,1856.80004883,10.60000038,0.00000000,-1,-1,15);
- CarrosVip[4] = CreateVehicle(415,2196.19995117,1856.69995117,10.69999981,0.00000000,-1,-1,15);
- CarrosVip[5] = CreateVehicle(429,2199.89990234,1856.80004883,10.60000038,0.00000000,-1,-1,15);
- CarrosVip[6] = CreateVehicle(451,2179.69995117,1878.59997559,10.60000038,180.00000000,-1,-1,15);
- CarrosVip[7] = CreateVehicle(477,2183.30004883,1878.50000000,10.69999981,180.00000000,-1,-1,15);
- CarrosVip[8] = CreateVehicle(506,2187.50000000,1878.30004883,10.60000038,180.00000000,-1,-1,15);
- CarrosVip[9] = CreateVehicle(541,2191.50000000,1878.59997559,10.50000000,180.00000000,-1,-1,15);
- CarrosVip[10] = CreateVehicle(562,2195.30004883,1878.69995117,10.60000038,180.00000000,-1,-1,15);
- CarrosVip[11] = CreateVehicle(565,2199.30004883,1878.59997559,10.50000000,180.00000000,-1,-1,15);
- CarrosVip[12] = CreateVehicle(534,2202.80004883,1878.50000000,10.60000038,180.00000000,-1,-1,15);
- CarrosVip[13] = CreateVehicle(535,2206.50000000,1878.90002441,10.69999981,180.00000000,-1,-1,15);
- CreateObject(980,2231.50000000,1882.80004883,13.10000038,0.00000000,0.00000000,0.00000000);
- CreateObject(980,2220.10009766,1882.80004883,13.10000038,0.00000000,0.00000000,0.00000000);
- CreateObject(980,2208.80004883,1882.80004883,13.10000038,0.00000000,0.00000000,0.00000000);
- CreateObject(980,2197.50000000,1882.80004883,13.10000038,0.00000000,0.00000000,0.00000000);
- CreateObject(980,2186.30004883,1882.80004883,13.10000038,0.00000000,0.00000000,0.00000000);
- CreateObject(980,2174.89990234,1882.80004883,13.10000038,0.00000000,0.00000000,0.00000000);
- CreateObject(980,2169.10009766,1877.19995117,13.10000038,0.00000000,0.00000000,90.00000000);
- CreateObject(980,2169.10009766,1866.30004883,13.10000038,0.00000000,0.00000000,90.00000000);
- CreateObject(980,2169.10009766,1862.50000000,13.10000038,0.00000000,0.00000000,90.00000000);
- CreateObject(980,2169.10009766,1841.09997559,12.80000019,0.00000000,0.00000000,0.00000000);
- CreateObject(980,2179.00000000,1841.09997559,12.80000019,0.00000000,0.00000000,0.00000000);
- CreateObject(980,2189.89990234,1841.09997559,12.80000019,0.00000000,0.00000000,0.00000000);
- CreateObject(980,2199.00000000,1841.09997559,12.80000019,0.00000000,0.00000000,0.00000000);
- CreateObject(980,2169.10009766,1861.19995117,13.19999981,0.00000000,0.00000000,96.00000000);
- CreateObject(980,2169.89990234,1859.69995117,12.60000038,0.00000000,0.00000000,99.99853516);
- CreateObject(980,2171.30004883,1856.80004883,12.80000019,0.00000000,0.00000000,115.99755859);
- CreateObject(980,2172.50000000,1855.40002441,12.80000019,0.00000000,0.00000000,133.99362183);
- CreateObject(980,2181.30004883,1851.09997559,13.10000038,0.00000000,0.00000000,180.00000000);
- CreateObject(980,2191.39990234,1851.09997559,13.10000038,0.00000000,0.00000000,179.99450684);
- CreateObject(980,2198.69995117,1851.09997559,13.10000038,0.00000000,0.00000000,179.99450684);
- CreateObject(980,2205.10009766,1835.80004883,12.60000038,0.00000000,0.00000000,272.00000000);
- CreateObject(980,2205.39990234,1826.00000000,12.60000038,0.00000000,0.00000000,271.99951172);
- CreateObject(980,2222.00000000,1820.59997559,12.60000038,0.00000000,0.00000000,177.99951172);
- CreateObject(980,2211.19995117,1821.00000000,12.60000038,0.00000000,0.00000000,177.99499512);
- CreateObject(980,2242.89990234,1882.59997559,16.39999962,0.00000000,0.00000000,0.00000000);
- CreateObject(980,2254.10009766,1882.59997559,16.39999962,0.00000000,0.00000000,0.00000000);
- CreateObject(980,2265.39990234,1882.59997559,16.39999962,0.00000000,0.00000000,0.00000000);
- CreateObject(980,2276.60009766,1882.59997559,16.39999962,0.00000000,0.00000000,0.00000000);
- CreateObject(980,2287.69995117,1882.59997559,16.39999962,0.00000000,0.00000000,0.00000000);
- CreateObject(980,2297.69995117,1882.59997559,16.39999962,0.00000000,0.00000000,0.00000000);
- CreateObject(980,2308.19995117,1882.59997559,16.39999962,0.00000000,0.00000000,0.00000000);
- PortaoHQ = CreateObject(980,2204.39990234,1846.00000000,12.60000038,0.00000000,0.00000000,91.99951172);
- Create3DTextLabel("{25E01B}Vips usem {04C4C4}/Portaovip",-1, 2207.8176,1853.0674,10.8203, 15, 0, 0);
- SetTimer("SalarioVip",600000,true);
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print(" Sistema de vip desligado.");
- print("--------------------------------------\n");
- DOF2_Exit();
- return 1;
- }
- #else
- main()
- {
- print("Sistema de vip:Bruno Alves");
- }
- #endif
- public OnPlayerConnect(playerid)
- {
- new arquivo[40], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, 32);
- format(arquivo, 40, "VIPS/%s.ini", name);
- if(DOF2_FileExists(arquivo))
- {
- Player[playerid][Vip] = DOF2_GetInt(arquivo, "Vip");
- }
- else
- {
- DOF2_CreateFile(arquivo);
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid)
- {
- SalvarContas(playerid);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(Player[playerid][Vip] > 0)
- {
- SetTimerEx("NovoSpawn", 500, false, "i", playerid);
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- if((vehicleid >= CarrosVip[0]) && (vehicleid <= CarrosVip[13]))
- {
- if(Player[playerid][Vip] < 1)
- {
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(playerid, x, y, z+5);
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, Cinza, "Você precisa ser Vip para usar este carro.");
- }
- }
- return 0;
- }
- //------------COMANDOS VIPS LEVEL 1---------------
- CMD:cmdsvip(playerid, params[])
- {
- new Ajuda[1500];
- if(Player[playerid][Vip] == 0) return SendClientMessage(playerid, Branco, "Você precisa ser VIP para usar este comando!\n\n");
- strcat(Ajuda, "{FFFFFF}Comandos Vip Ouro\n{FFFF00}/cc /AnVip /Saveskin /Cskin - /GodCar - /Asay - /SavePos - /IrPos\n\n");
- strcat(Ajuda, "{FFFFFF}Comandos Vip Prata\n{CDC9C9}/JetPack - /GodVip - /HqVip - /DarSpawn - /SkinVip - /Radio - /IrVip\n\n");
- strcat(Ajuda, "{FFFFFF}Comandos Vip Bronze\n{DAA520}/V - /PortaoVip - /HqVip - /Reparar - /Kitvip - /MeuTempo - /MudarCor - /SouVip");
- ShowPlayerDialog(playerid, 555, DIALOG_STYLE_MSGBOX, "VIPS - Ajuda", Ajuda, "Fechar", "");
- return 1;
- }
- CMD:v(playerid, params[])
- {
- new Texto[128];
- if(Player[playerid][Vip] < 1) return SendClientMessage(playerid, -1, "Você precisa ser Vip para usar este comando!");
- 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");
- if(Player[playerid][Vip] == 1) NivelVip = "{DAA520}Vip-Bronze";
- if(Player[playerid][Vip] == 2) NivelVip = "{CDC9C9}Vip-Prata";
- if(Player[playerid][Vip] == 3) NivelVip = "{FFFF00}Vip-Ouro";
- format(String, sizeof(String), "(*XAT-VIP*)%s %s: %s", NivelVip, Nome(playerid), Texto);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(Player[i][Vip] > 0)
- {
- SendClientMessage(i, -1, String);
- }
- }
- return 1;
- }
- CMD:portaovip(playerid, params[])
- {
- if(Player[playerid][Vip] < 1) return SendClientMessage(playerid, Branco, "Você precisa ser Vip para usar este comando!");
- MoveObject(PortaoHQ, 2205.10009766,1835.50000000,12.60000038, 4, 0.00000000, 0.00000000, 91.99951172);
- GameTextForPlayer(playerid, "Portao ~g~Aberto", 1000, 6);
- SetTimer("FecharPortao", 5000, false);
- return 1;
- }
- CMD:hqvip(playerid)
- {
- if(Player[playerid][Vip] < 1) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!!");
- SetPlayerPos(playerid, 2225.9814,1837.7249,10.8203);
- SetPlayerFacingAngle(playerid, 98.0608);
- return 1;
- }
- CMD:kitvip(playerid)
- {
- if(Player[playerid][Vip] < 1) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
- GivePlayerWeapon(playerid, 24, 500), GivePlayerWeapon(playerid, 26, 500);
- GivePlayerWeapon(playerid, 30, 500),GivePlayerWeapon(playerid, 32, 500);
- GivePlayerWeapon(playerid, 34, 500),GivePlayerWeapon(playerid, 18, 50);
- return 1;
- }
- CMD:reparar(playerid)
- {
- if(Player[playerid][Vip] < 1) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
- if(IsPlayerInAnyVehicle(playerid)) {
- new veiculo;
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- veiculo = GetPlayerVehicleID(playerid);
- SetVehicleHealth(veiculo,1000);
- RepairVehicle(veiculo);
- SendClientMessage(playerid,Verde,"Carro consertado.");
- }
- else {
- SendClientMessage(playerid, Vermelho, "Você tem que estar em um veiculo!!");
- }
- return 1;
- }
- CMD:meutempo(playerid, params[])
- {
- new Tempo;
- if(Player[playerid][Vip] < 1) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
- if(sscanf(params, "d", Tempo)) return SendClientMessage(playerid, Branco, "[BTK] Use /MeuTempo [ID]");
- if(Tempo > 45) return SendClientMessage(playerid, Branco, "Ids de 0 a 45!!");
- SetPlayerWeather(playerid, Tempo);
- return 1;
- }
- CMD:mudarcor(playerid)
- {
- if(Player[playerid][Vip] < 1) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
- 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");
- return 1;
- }
- //-----COMANDOS VIP LEVEL 2 -----
- CMD:jetpack(playerid)
- {
- if(Player[playerid][Vip] < 2) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
- SetPlayerSpecialAction(playerid, 2);
- SendClientMessage(playerid, Rosa, "Parabéns seu Jetpack foi criado com sucesso.");
- return 1;
- }
- CMD:godvip(playerid)
- {
- if(Player[playerid][Vip] < 2) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
- if(ComprouVida[playerid] == 1) return SendClientMessage(playerid, -1, "Aguarde 30 Segundos usar o comando novamente");
- SetPlayerHealth(playerid, 100.0);
- SetPlayerArmour(playerid, 100.0);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- ComprouVida[playerid] = 1;
- TimerLiberarHP = SetTimerEx("LiberarHP", 30000, true, "i", playerid);
- return 1;
- }
- CMD:skinvip(playerid, params[])
- {
- new skin;
- if(Player[playerid][Vip] < 2) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
- if(sscanf(params, "d", skin)) return SendClientMessage(playerid, Branco, "[BTK] Use /Trocar [id]");
- if(skin < 0 || skin > 299) return SendClientMessage(playerid, -1, "ERRO: Skins são de 0 a 299");
- SendClientMessage(playerid, AZUL_CLARO,"Skin trocado com sucesso!");
- SetPlayerSkin(playerid, skin);
- return 1;
- }
- CMD:darspawn(playerid)
- {
- if(Player[playerid][Vip] < 2) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
- SendClientMessage(playerid, AZUL_CLARO, "Vc foi spawnado.");
- SpawnPlayer(playerid);
- return 1;
- }
- CMD:radio(playerid)
- {
- if(Player[playerid][Vip] < 2) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
- ShowPlayerDialog(playerid, 801, DIALOG_STYLE_LIST,
- "Brasil Top Killers",
- "{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",
- "Sintonizar", "Sair");
- return 1;
- }
- CMD:irvip(playerid, params[])
- {
- if(Player[playerid][Vip] < 2) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
- if(sscanf(params, "u", ID)) return SendClientMessage(playerid, Cinza, "[BTK] Use /IrVip [ID]"), SendClientMessage(playerid, Cinza, "Use o comando para ir até um jogador");
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, Branco, "[ERRO] ID invalido");
- new Float:Pos[3];
- GetPlayerPos(ID, Pos[0], Pos[1], Pos[2]);
- if(IsPlayerInAnyVehicle(playerid))
- {
- new carroid = GetPlayerVehicleID(playerid);
- SetVehiclePos(carroid, Pos[0], Pos[1], Pos[2]);
- format(String, sizeof(String), "O Vip %s veio até você!", Nome(playerid));
- SendClientMessage(ID, AZUL_CLARO, String);
- format(String, sizeof(String), "Você foi até o Jogador %s [ID: %d]", Nome(ID), ID);
- SendClientMessage(playerid, AZUL_CLARO, String);
- return 1;
- }
- SetPlayerPos(playerid, Pos[0]+2, Pos[1]+2, Pos[2]+2);
- format(String, sizeof(String), "O Vip %s veio até você!", Nome(playerid));
- SendClientMessage(ID, AZUL_CLARO, String);
- format(String, sizeof(String), "Você foi até o Jogador %s [ID: %d]", Nome(ID), ID);
- SendClientMessage(playerid, AZUL_CLARO, String);
- return 1;
- }
- //----------COMANODS VIP LEVEL 3 ------
- CMD:cc(playerid, params[])
- {
- if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
- if(sscanf(params, "ddd", Veiculo, Cor01, Cor02)) return SendClientMessage(playerid, -1, "USO: /v [ID] [Cor1] [Cor2]");
- if(Veiculo < 400 || Veiculo > 611) return SendClientMessage(playerid, -1, "ERRO: ID's de 400 a 611");
- if(Veiculo == 432|| Veiculo == 520|| Veiculo == 447) return SendClientMessage(playerid, -1, "|ERRO| Id proibido tente outro");
- if(Cor01 < 1 || Cor01 > 255) return SendClientMessage(playerid, -1, "ERRO: Cores de 1 a 255");
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- DestroyVehicle(CarroCriado[playerid]);
- CarroCriado[playerid] = CreateVehicle(Veiculo, X, Y, Z, 0.0, Cor01, Cor02, -1);
- format(String, sizeof(String), "Carro VIP de {FFFF00}%s", Nome(playerid));
- DonoCarro[playerid] = Create3DTextLabel(String, VERDE_CLARO, X, Y, Z+1, 30, 0, 1);
- Attach3DTextLabelToVehicle(DonoCarro[playerid], CarroCriado[playerid], 0, 0, 0);
- PutPlayerInVehicle(playerid, CarroCriado[playerid], 0);
- return 1;
- }
- CMD:anvip(playerid, params[])
- {
- new Texto[200];
- if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
- if(sscanf(params, "s[200]", Texto)) return SendClientMessage(playerid, Vermelho, "Erro: /Anvip [Texto]");
- format(String, sizeof(String), "{4682B4}<<ANUNCIO VIP DE %s >>{B0C4DE}** %s **",Nome(playerid), Texto);
- SendClientMessageToAll(Azul, String);
- return 1;
- }
- CMD:saveskin(playerid)
- {
- if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
- SendClientMessage(playerid, VERDE_AGUA, "Skin salvo para carregalo use /cskin!");
- DOF2_SetInt(Contas(playerid), "Skin", GetPlayerSkin(playerid));
- return 1;
- }
- CMD:cskin(playerid)
- {
- new arquivo[40], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, 32);
- format(arquivo, 40, "VIPS/%s.ini", name);
- if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
- SendClientMessage(playerid, VERDE_AGUA, "Skin carregado com sucesso!");
- SetPlayerSkin(playerid, DOF2_GetInt(arquivo, "Skin"));
- return 1;
- }
- CMD:savepos(playerid)
- {
- if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
- SendClientMessage(playerid, VERDE_AGUA, "Posição salva com sucesso!");
- new Float: Pos[3];
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- DOF2_SetFloat(Contas(playerid),"CoordenadaX",Pos[0]);
- DOF2_SetFloat(Contas(playerid),"CoordenadaY",Pos[1]);
- DOF2_SetFloat(Contas(playerid),"CoordenadaZ",Pos[2]);
- DOF2_SetInt(Contas(playerid),"Interior", GetPlayerInterior(playerid));
- DOF2_SaveFile();
- return 1;
- }
- CMD:irpos(playerid)
- {
- if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
- SendClientMessage(playerid, VERDE_AGUA, "Você foi até a posição salva!");
- SetPlayerPos(playerid,DOF2_GetFloat(Contas(playerid),"CoordenadaX"),DOF2_GetFloat(Contas(playerid),"CoordenadaY"),DOF2_GetFloat(Contas(playerid),"CoordenadaZ"));
- SetPlayerInterior(playerid, DOF2_GetInt(Contas(playerid),"Interior"));
- return 1;
- }
- CMD:godcar(playerid)
- {
- if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Branco, "Você deve estar em um veiculo!!!");
- SetVehicleHealth(GetPlayerVehicleID(playerid), 999999);
- return 1;
- }
- CMD:asay(playerid, params[])
- {
- new Texto[128];
- if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Você não é Vip ou não tem level suficiente!");
- 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");
- format(String, sizeof(String), "~b~VIP:~y~%s: ~w~%s", Nome(playerid), Texto);
- GameTextForAll(String, 2000, 4);
- return 1;
- }
- //------OUTROS COMANDOS DO SISTEMA----
- CMD:darvip(playerid, params[])
- {
- new Level;
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Cinza, "Logue-se na Rcon para usar este comando.");
- 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");
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, Branco, "[ERRO] ID invalido");
- format(String, sizeof(String), "O Admin %s deu vip level %d a %s",Nome(playerid), Level, Nome(ID));
- SendClientMessageToAll(Verde, String);
- if(Level > 3) return SendClientMessage(playerid, -1, "ERRO: Leveis de 3 para baixo");
- Player[ID][Vip] = Level;
- return 1;
- }
- CMD:tirarvip(playerid, params[])
- {
- if(sscanf(params, "u", ID)) return SendClientMessage(playerid, Branco, "Use /TirarVip [ID]");
- if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, Branco, "[ERRO] ID invalido");
- if(Player[ID][Vip] == 0) return SendClientMessage(playerid, Branco, "Este player não é VIP.");
- format(String, sizeof(String), "O Admin %s tirou o vip de %s",Nome(playerid), Nome(ID));
- SendClientMessageToAll(Vermelho, String);
- Player[ID][Vip] = 0;
- return 1;
- }
- CMD:vips(playerid)
- {
- new IsVip;
- SendClientMessage(playerid, VERDE_CLARO, "Vips Online:");
- for(new i = 0; i < MAX_PLAYERS; ++i)
- {
- if(Player[i][Vip])
- {
- format(String, sizeof(String), "%s", Nome(i));
- SendClientMessage(playerid, Branco, String);
- IsVip++;
- }
- }
- if(IsVip == 0)
- {
- SendClientMessage(playerid, Cinza, "Nenhum VIP online.");
- }
- IsVip = 0;
- return 1;
- }
- CMD:souvip(playerid)
- {
- if(Player[playerid][Vip] < 1) return SendClientMessage(playerid, -1, "Você precisa ser Vip para usar este comando!");
- if(Player[playerid][Vip] == 0) NivelVip = "{FFFFFF}0";
- if(Player[playerid][Vip] == 1) NivelVip = "{DAA520}Vip-Bronze";
- if(Player[playerid][Vip] == 2) NivelVip = "{CDC9C9}Vip-Prata";
- if(Player[playerid][Vip] == 3) NivelVip = "{FFFF00}Vip-Ouro";
- format(String, sizeof(String), "Você é level vip:%s", NivelVip, Player[playerid][Vip]);
- SendClientMessage(playerid, -1, String);
- return 1;
- }
- //----------------------------------------
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 800) {
- if(response) {
- new Cor;
- switch(listitem) {
- case 0: Cor = Vermelho;
- case 1: Cor = Verde;
- case 2: Cor = Amarelo;
- case 3: Cor = Azul;
- case 4: Cor = Laranja;
- case 5: Cor = Roxo;
- case 6: Cor = Azul_Marinho;
- case 7: Cor = Rosa;
- case 8: Cor = Cinza;
- case 9: Cor = Marron;
- case 10: Cor = Branco;
- case 11: Cor = AZUL_CLARO;
- case 12: Cor = Verde_Escuro;
- }
- SetPlayerColor(playerid, Cor);
- SendClientMessage(playerid, Verde, "Cor trocada com sucesso");
- }
- }
- if(dialogid == 801) {
- if(response) {
- if(listitem == 0) {
- SendClientMessage(playerid, Amarelo, "Radio Funk Brasil Sintonizada");
- GameTextForPlayer(playerid,"~w~Radio Funk Brasil Sintonizada",5000,3);
- PlayAudioStreamForPlayer(playerid, "http://70.36.100.78:10452/");
- return 1;
- }
- if(listitem == 1) {
- SendClientMessage(playerid, Amarelo, "Radio Jovem Pan Sintonizada");
- GameTextForPlayer(playerid,"~y~Radio Jovem Pan Sintonizada",5000,3);
- PlayAudioStreamForPlayer(playerid, "http://64.15.147.220:8042/");
- return 1;
- }
- if(listitem == 2) {
- SendClientMessage(playerid, Amarelo, "Radio Atlantida Sintonizada");
- GameTextForPlayer(playerid,"~Y~Radio Atlantida Sintonizada",5000,3);
- PlayAudioStreamForPlayer(playerid, "http://189.76.158.143:50002/");
- return 1;
- }
- if(listitem == 3) {
- SendClientMessage(playerid, Amarelo, "Radio Cidade FM Sintonizada");
- GameTextForPlayer(playerid,"~w~Radio Cidade Sintonizada",5000,3);
- PlayAudioStreamForPlayer(playerid, "http://75.126.5.125:8226/");
- return 1;
- }
- if(listitem == 4) {
- SendClientMessage(playerid, Amarelo, "Radio Mantiquera Sintonizada");
- GameTextForPlayer(playerid,"~w~Radio Mantiquera Sintonizada",5000,3);
- PlayAudioStreamForPlayer(playerid, "http://184.154.37.136:8081/");
- return 1;
- }
- if(listitem == 5) {
- SendClientMessage(playerid, Amarelo, "Radio Click mix Sintonizada");
- GameTextForPlayer(playerid,"~w~Radio Click Mix Sintonizada",5000,3);
- PlayAudioStreamForPlayer(playerid, "http://50.30.33.114:9998");
- return 1;
- }
- if(listitem == 6) {
- SendClientMessage(playerid, Amarelo, "Radio Virtual Dj Sintonizada");
- GameTextForPlayer(playerid,"~w~Radio Virtual Dj Sintonizada",5000,3);
- PlayAudioStreamForPlayer(playerid, "http://173.212.197.233:7800");
- return 1;
- }
- if(listitem == 7) {
- SendClientMessage(playerid, Amarelo, "Radio Vto Mix Sintonizada");
- GameTextForPlayer(playerid,"~w~Radio Vto Mix Sintonizada",5000,3);
- PlayAudioStreamForPlayer(playerid, "http://s3.voscast.com:7554/");
- return 1;
- }
- if(listitem == 8) {
- SendClientMessage(playerid, Amarelo, "Radio Team Expert Sintonizada");
- GameTextForPlayer(playerid,"~w~Radio Team Expert Sintonizada",5000,3);
- PlayAudioStreamForPlayer(playerid, "http://64.31.30.91:9980");
- return 1;
- }
- if(listitem == 9) {
- SendClientMessage(playerid, Amarelo, "Radio Relax Sintonizada");
- GameTextForPlayer(playerid,"~w~Radio Relax Sintonizada",5000,3);
- PlayAudioStreamForPlayer(playerid, "http://streaming18.brlogic.com:8204/live");
- return 1;
- }
- if(listitem == 10) {
- SendClientMessage(playerid, Amarelo, "Radio Novo Milenio Sintonizada");
- GameTextForPlayer(playerid,"~w~Radio Novo Milenio Sintonizada",5000,3);
- PlayAudioStreamForPlayer(playerid, "http://174.142.79.66:8110");
- return 1;
- }
- if(listitem == 11) {
- GameTextForPlayer(playerid,"~w~Radio Desligada Com Sucesso!",5000,3);
- StopAudioStreamForPlayer(playerid);
- }
- }
- }
- return 1;
- }
- public FecharPortao()
- {
- MoveObject(PortaoHQ, 2204.39990234,1846.00000000,12.60000038, 2, 0, 0, 90);
- return 1;
- }
- public NovoSpawn(playerid)
- {
- SetPlayerPos(playerid, 2225.9814,1837.7249,10.8203);
- SetPlayerFacingAngle(playerid, 98.0608);
- return 1;
- }
- public SalarioVip(playerid)
- {
- if(Player[playerid][Vip] >= 1)
- {
- SendClientMessage(playerid, Amarelo, "Salario Vip Recebido(R$100 mil) e + 5 de level");
- SetPlayerScore(playerid,GetPlayerScore(playerid) +5);
- GivePlayerMoney(playerid, 100000);
- }
- return 1;
- }
- public LiberarHP(playerid)
- {
- ComprouVida[playerid] = 0;
- SendClientMessage(playerid, -1, "{00FF00}Compra de HP Liberada");
- KillTimer(TimerLiberarHP);
- return 1;
- }
- stock Contas(playerid)
- {
- new arquivo[40], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, 32);
- format(arquivo, 40, "VIPS/%s.ini", name);
- return arquivo;
- }
- stock SalvarContas(playerid)
- {
- if(!DOF2_FileExists(Contas(playerid))) DOF2_CreateFile(Contas(playerid));
- else
- {
- DOF2_SetInt(Contas(playerid), "Vip", Player[playerid][Vip]);
- DOF2_SaveFile();
- }
- return 1;
- }
- stock Nome(playerid)
- {
- new pNome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pNome, 24);
- return pNome;
- }
Advertisement
Add Comment
Please, Sign In to add comment