//==============================[ Includes ]========================================// #include #include #include #include #include #include //==============================[ Defines ]=========================================// #define DIALOG_REGISTRO 1 #define DIALOG_LOGAR 2 #define DIALOG_AJUDA 3 #define DIALOG_DMS 4 #define DIALOG_DROPS 5 #define DIALOG_CORES 6 #define DIALOG_CREDITOS 7 #define DIALOG_NEON 8 #define DIALOG_EFEITOS 9 #define DIALOG_RADIO 10 #define SALVARCONTAS "Registrados/%s.ini" //==============================[ Forward']=========================================// forward RestarChat(playerid, lines); forward NascerLocalRandamonico(playerid); forward VerificarVida(); forward ServidorNomeRandamonico(); forward MapaRandamonico(); forward AnuncioRandamonio(); //==============================[ New's ]===========================================// new pname[MAX_PLAYER_NAME]; new Matou[MAX_PLAYERS]; new Morreu[MAX_PLAYERS]; new Logou[MAX_PLAYERS]; new SetarNascimento[MAX_PLAYERS]; new Float:Bruno1[MAX_PLAYERS]; new Float:Bruno2[MAX_PLAYERS]; new Float:Bruno3[MAX_PLAYERS]; new Float:bt[MAX_PLAYERS]; new Float:bt2[MAX_PLAYERS]; new Float:Bruno4[MAX_PLAYERS]; new Text:topopreto; new Text:baixopreto; new Text:BrunoSite; new Text:FundoEntrada; new Armas[26] = {0,1,2,3,4,5,6,7,8,16,17,22,23,24,25,26,27,28,29,30,31,32,33,34,39,40}; new NomesServidor[4][256] = { "~x~ Bruno Tadeu [DM/DROP v1.0a] ~x~", "-=[ Equipe Pawn Define Visitinos ]=-", "~x~ www.pawndefine.forumeiros.com ~x~", "-=[ Venha Ser Um De Nossos Membros ]=-"}; new NomesMapa[3][256] = { "San Andreas", "Bruno Tadeu", "Pawn Define"}; new Anuncios[4][256] = { "GameMode Criando Por Bruno Tadeu Da Equipe Pawn Define.", "Equipe Pawn Define Venha Nos Visitar www.pawndefine.forumeiros.com.", "Pawn Define Venha Ser Um De Nosss Membros.", "Tom Sem Ideia Para Anuncios kkkkkkkkkkkkkkkkkkkkkkk." }; new CoresAnuncios[] = { 0xFFFF00AA, 0xF5DEB3AA, 0xFFFFFFAA, 0x006699FF, 0xAA3333AA, 0x33CCFFAA, 0xCCFF99FF, 0xFFCCFFAA, 0xFF830000, 0x3e9931AA, 0x807FFEAA, 0xBFC0C200 }; new Float:gNascimentoRandamonico[23][3] = { {1958.3783,1343.1572,15.3746}, {2199.6531,1393.3678,10.8203}, {2483.5977,1222.0825,10.8203}, {2637.2712,1129.2743,11.1797}, {2000.0106,1521.1111,17.0625}, {2024.8190,1917.9425,12.3386}, {2261.9048,2035.9547,10.8203}, {2262.0986,2398.6572,10.8203}, {2244.2566,2523.7280,10.8203}, {2335.3228,2786.4478,10.8203}, {2150.0186,2734.2297,11.1763}, {2158.0811,2797.5488,10.8203}, {1969.8301,2722.8564,10.8203}, {1652.0555,2709.4072,10.8265}, {1564.0052,2756.9463,10.8203}, {1271.5452,2554.0227,10.8203}, {1441.5894,2567.9099,10.8203}, {1480.6473,2213.5718,11.0234}, {1400.5906,2225.6960,11.0234}, {1598.8419,2221.5676,11.0625}, {1318.7759,1251.3580,10.8203}, {1558.0731,1007.8292,10.8125}, {1705.2347,1025.6808,10.8203} }; new Float:gNascerRandamonicoDm1[5][3] = { {1412.1843,-0.8585,1000.9241}, {1360.9110,5.7433,1008.1563}, {1360.1896,-46.6226,1007.8851}, {1399.2660,-44.1827,1000.9073}, {1417.3538,-45.6100,1007.8928} }; new Float:gNascerRandamonicoDm2[5][3] = { {-975.6325,1061.3008,1345.6719}, {-1016.6338,1098.4918,1342.3164}, {-1043.8226,1023.3668,1343.1207}, {-1109.4652,1026.6627,1343.3850}, {-1130.2986,1057.5750,1346.4141} }; new Float:gNascerRandamonicoDm3[5][3] = { {1028.3359,-1194.0508,54.9063}, {995.0978,-1181.8658,54.9063}, {969.8840,-1181.7144,70.9843}, {974.5735,-1204.6133,54.9063}, {1011.5116,-1205.0947,54.9063} }; new Float:gNascerRandamonicoDm4[5][3] = { {-1315.6316,2476.1335,87.5062}, {-1335.9976,2489.7690,109.4598}, {-1299.3657,2562.1267,110.2587}, {-1314.4907,2524.6619,94.3125}, {-1293.3740,2521.7744,87.3654} }; new Float:gNascerRandamonicoDrop1[5][3] = { {3591.4905,-2488.2483,877.7764}, {3584.1353,-2510.0620,877.7764}, {3535.5098,-2506.2866,877.7764}, {3527.7561,-2483.0696,877.7764}, {3514.5132,-2492.3838,875.1057} }; new Float:gNascerRandamonicoDrop2[5][3] = { {-133.3519,-2250.0867,956.2194}, {-138.2474,-2224.7173,956.2118}, {-120.6697,-2233.7280,956.2118}, {-87.4887,-2225.9949,956.2118}, {-74.4556,-2251.2742,956.2118} }; new Float:gNascerRandamonicoDrop3[5][3] = { {-3653.5298,381.4154,1191.0989}, {-3659.8486,354.0861,1191.0989}, {-3619.6589,340.2599,1191.0989}, {-3606.2810,363.4998,1191.0989}, {-3587.7439,346.8241,1191.1064} }; new Float:gNascerRandamonicoDrop4[5][3] = { {-174.6309,-1858.4326,697.4510}, {-150.9712,-1860.5564,697.2791}, {-171.1819,-1880.8214,697.2791}, {-205.0179,-1847.5886,697.2791}, {-203.2232,-1808.9735,697.2791} }; main() { print("\n===================================="); print(" "); print(" Ligando GameMode "); print(" "); print(" GameMode Feito Por Bruno Tadeu "); print(" "); print("\n===================================="); } public OnPlayerConnect(playerid) { TextDrawShowForPlayer(playerid, topopreto); TextDrawShowForPlayer(playerid, baixopreto); TextDrawShowForPlayer(playerid, FundoEntrada); TextDrawShowForPlayer(playerid, BrunoSite); RestarChat(playerid, 10); PlayerPlaySound(playerid,1097, 0.0, 0.0, 0.0); GetPlayerName(playerid, pname, sizeof(pname)); new String[256]; format(String, sizeof(String), SALVARCONTAS, pname); if(!dini_Exists(String)) { format(String,sizeof(String)," {00FF00}Bruno{FFFF00}Tadeu {0000FF}DM{FF0000}/DROP{98F5FF}\n***********************************************\n\n{98F5FF}>> {F5DEB3}Conta: {FFFFFF}%s\n{98F5FF}>> {F5DEB3}Status: {FF0000}Não Registrada{FFFFFF}\n\nColoque sua senha abaixo:",pname); ShowPlayerDialog(playerid,DIALOG_REGISTRO,DIALOG_STYLE_PASSWORD,"Fazenu Seu - Registro:",String,"Registrar-se","Sair"); } else { format(String,sizeof(String)," {00FF00}Bruno{FFFF00}Tadeu {0000FF}DM{FF0000}/DROP{98F5FF}\n***********************************************\n\n{98F5FF}>> {F5DEB3}Conta: {FFFFFF}%s\n{98F5FF}>> {F5DEB3}Status: {00FF00}Registrada{FFFFFF}\n\nColoque sua senha abaixo:",pname); ShowPlayerDialog(playerid,DIALOG_LOGAR,DIALOG_STYLE_PASSWORD,"Fazenu Seu - Login:",String,"Logar-se","Sair"); } new string[52]; GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), "%s Entrou no Servidor!", pname); SendClientMessageToAll(0xA2B5CD99, string); RestarChat(playerid, 10); SendClientMessage(playerid, 0xF5DEB3AA," ...Carregando Servidor..."); SendClientMessage(playerid, 0xF5DEB3AA,".•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•"); SendClientMessage(playerid, 0x00F6F6AA,"Gamemode de DM/Drop Feito Por {00FFFF}Bruno Tadeu"); SendClientMessage(playerid, 0xF5DEB3AA,".•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•"); return 1; } public OnPlayerDisconnect(playerid) { TextDrawHideForPlayer(playerid, BrunoSite); new string[52]; GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), "%s Saiu do Servidor! ", pname); SendClientMessageToAll(0xA2B5CD99, string); SalvarPlayer(playerid); return 1; } CMD:ajuda(playerid, params[]) { new string[100]; GetPlayerName(playerid, pname, sizeof (pname)); ShowPlayerDialog(playerid, DIALOG_AJUDA, DIALOG_STYLE_MSGBOX,"{FF00FF}Comandos do Servidor", "{FF0000}USE: {33CCFF}/Arenas {33FF00}(Para ir as arenas de DM.)\n{FF0000}USE: {33CCFF}/Drops {33FF00}(Para ir nos Drops)\n{FF0000}USE: {33CCFF}/Suicidar {33FF00}(Para se suicidar.)\n{FF0000}USE: {33CCFF}/Creditos {33FF00}(Para saber os creditos do GM)\n\n\n\n", "Ok", "Sair"); format(string, sizeof(string), "|| %s » Esta verificando os comandos do servidor. {00BFFF}/ajuda", pname); SendClientMessageToAll(0xF0F8FFAA, string); return 1; } CMD:creditos(playerid, params[]) { new string[100]; GetPlayerName(playerid, pname, sizeof (pname)); ShowPlayerDialog(playerid, DIALOG_CREDITOS, DIALOG_STYLE_MSGBOX,"{FF00FF}Creditos Do GameMode", "{FFFFE0}GameMode Criado Por:\n{00FFFF}Bruno_Tadeu\n{FFFFE0}Feito Para Ser Usado De Base\n{FFFFE0}Gamemode Colocado Na Net Com A Condiçao De Nao Retirar Os Creditos\n{FFFFE0}Sistema de Registro:\n{00FFFF}ThiagoPS\n{FFFFE0}Obrigado Tambem A Todos Que Ajudaram.\n\n\n\n", "Ok", "Sair"); format(string, sizeof(string), "|| %s » Esta verificando os creditos do servidor. {00BFFF}/Creditos", pname); SendClientMessageToAll(0xF0F8FFAA, string); return 1; } CMD:arenas(playerid, params[]) { new string[100]; GetPlayerName(playerid, pname, sizeof (pname)); ShowPlayerDialog(playerid, DIALOG_DMS, DIALOG_STYLE_MSGBOX, "{FF34B3}ARENAS DE DM", "{00FF00}/dm1 (Para ir ao DM 1)\n{FFFF00}/dm2 (Para ir ao DM 2)\n{0000FF}/dm3 (Para ir ao DM 3)\n{FFFFFF}/dm4 (Para ir ao DM 4)\n", "OK", "Cancelar"); format(string, sizeof(string), "|| %s » Esta verificando os comandos das Arenas de DM. {00BFFF}/Arenas", pname); SendClientMessageToAll(0xF0F8FFAA, string); return 1; } CMD:drops(playerid, params[]) { new string[100]; GetPlayerName(playerid, pname, sizeof (pname)); ShowPlayerDialog(playerid, DIALOG_DROPS, DIALOG_STYLE_MSGBOX, "{FF34B3}DROPS", "{00FF00}/drop1 (Para ir ao Drop1)\n{FFFF00}/drop2 (Para ir ao Drop 2)\n{0000FF}/drop3 (Para ir ao Drop 3)\n{FFFFFF}/drop4 (Para ir ao Drop 4)", "OK", "Cancelar"); format(string, sizeof(string), "|| %s » Esta verificando os comandos dos DROP'S. {00BFFF}/Drops", pname); SendClientMessageToAll(0xF0F8FFAA, string); return 1; } CMD:minhacor(playerid, params[]) { new string[100]; GetPlayerName(playerid, pname, sizeof (pname)); ShowPlayerDialog(playerid, DIALOG_CORES, DIALOG_STYLE_LIST, "{FF00FF}Escolha Uma Cor:", "{FF4500}Vermelho\n{00FF00}Verde\n{FFFF00}Amarelo\n{4876FF}Azul\n{FFB90F}Laranja\n{9B30FF}Roxo\n{3A5FCD}Azu l Marinho\n{FF00FF}Rosa\n{D3D3D3}Cinza\n{8B7D7B}Marrom\n{FFFFFF}Branco\n{98F5FF}Azul Claro\n{008B45}Verde Escuro", "Selecionar", "Cancelar"); format(string, sizeof(string), "|| %s » Esta mudando a cor do seu nick. {00BFFF}/Minhacor", pname); SendClientMessageToAll(0xF0F8FFAA, string); return 1; } CMD:neon(playerid, params[]) { new string[100]; GetPlayerName(playerid, pname, sizeof (pname)); ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "{FF00FF}Menu De Neons", "{4876FF}Azul\n{FF4500}Vermelho\n{00FF00}Verde\n{FFFFFF}Branco\n{FF00FF}Rosa\n{FFFF00}Amarelo\n{8B7D7B}Remover Neon", "Selecionar", "Cancelar"); format(string, sizeof(string), "|| %s » Esta mudando o neon do seu carro. {00BFFF}/Neon", pname); SendClientMessageToAll(0xF0F8FFAA, string); return 1; } CMD:efeitos(playerid, params[]) { new string[100]; GetPlayerName(playerid, pname, sizeof (pname)); ShowPlayerDialog(playerid, DIALOG_EFEITOS, DIALOG_STYLE_LIST, "Efeitos BY: Bruno_Tadeu", "Fogo\nExplosao Aquatica\nNeve\nPedras\nCaveira\nColete\nFumaca\nToca de Natal\nCaveira e Fogo\nColete e Fumaca\nPedras e Explosao Aquatica\nToca de Natal e Neve\nNenhum Efeito", "Selecionar", "Cancelar"); format(string, sizeof(string), "|| %s » Esta colocando um efeito na sua skin. {00BFFF}/Efeitos", pname); SendClientMessageToAll(0xF0F8FFAA, string); return 1; } CMD:suicidar(playerid, params[]) { new string[100]; GetPlayerName(playerid, pname, sizeof (pname)); SetPlayerHealth(playerid,0); format(string, sizeof(string), "|| %s » Cometeu um suicidio. {00BFFF}/suicidar", pname); SendClientMessageToAll(0xF0F8FFAA, string); return 1; } CMD:status(playerid, params[]) { new string[50]; GetPlayerName(playerid, pname, sizeof (pname)); Status(playerid); format(string, sizeof(string), "|| %s » Esta olhando seu status. {00BFFF}/status", pname); SendClientMessageToAll(0xF0F8FFAA, string); return 1; } CMD:ligarradio(playerid, params[]) { new string[100]; GetPlayerName(playerid, pname, sizeof (pname)); ShowPlayerDialog(playerid, DIALOG_RADIO, DIALOG_STYLE_LIST, "Escolha Uma Radio","Radio Hunter\nRadio FreeZe\nRadio BomberMix\nDesligar Radio","Selecionar","Sair"); format(string, sizeof(string), "|| %s » Esta ligando a radio. {00BFFF}/Ligarradio", pname); SendClientMessageToAll(0xF0F8FFAA, string); return 1; } CMD:dm1(playerid, params[]) { new string[128]; SetPlayerInterior(playerid,1); ResetPlayerWeapons(playerid); for(new i = 0; i <= 26; i++) { GivePlayerWeapon(i,Armas[random(sizeof(Armas))],100); } SetPlayerArmour(playerid, 100); SetPlayerHealth(playerid, 100); GetPlayerName(playerid, pname, sizeof (pname)); format(string, sizeof(string), "|| %s » Foi para a Arena de DM1. {00BFFF}/dm1", pname); SendClientMessageToAll(0xF0F8FFAA, string); GameTextForPlayer(playerid,"~y~Voce esta na Arena DM1", 5000, 1); new rand = random(sizeof(gNascerRandamonicoDm1)); SetPlayerPos(playerid, gNascerRandamonicoDm1[rand][0], gNascerRandamonicoDm1[rand][1], gNascerRandamonicoDm1[rand][2]); return 1; } CMD:dm2(playerid, params[]) { new string[128]; SetPlayerInterior(playerid,10); ResetPlayerWeapons(playerid); for(new i = 0; i <= 26; i++) { GivePlayerWeapon(i,Armas[random(sizeof(Armas))],100); } SetPlayerArmour(playerid, 100); SetPlayerHealth(playerid, 100); GetPlayerName(playerid, pname, sizeof (pname)); format(string, sizeof(string), "|| %s » Foi para a Arena de DM2. {00BFFF}/dm2", pname); SendClientMessageToAll(0xF0F8FFAA, string); GameTextForPlayer(playerid,"~y~Voce esta na Arena DM2", 5000, 1); new rand = random(sizeof(gNascerRandamonicoDm2)); SetPlayerPos(playerid, gNascerRandamonicoDm2[rand][0], gNascerRandamonicoDm2[rand][1], gNascerRandamonicoDm2[rand][2]); return 1; } CMD:dm3(playerid, params[]) { new string[128]; SetPlayerInterior(playerid,0); ResetPlayerWeapons(playerid); for(new i = 0; i <= 26; i++) { GivePlayerWeapon(i,Armas[random(sizeof(Armas))],100); } SetPlayerArmour(playerid, 100); SetPlayerHealth(playerid, 100); GetPlayerName(playerid, pname, sizeof (pname)); format(string, sizeof(string), "|| %s » Foi para a Arena de DM3. {00BFFF}/dm3", pname); SendClientMessageToAll(0xF0F8FFAA, string); GameTextForPlayer(playerid,"~y~Voce esta na Arena DM3", 5000, 1); new rand = random(sizeof(gNascerRandamonicoDm3)); SetPlayerPos(playerid, gNascerRandamonicoDm3[rand][0], gNascerRandamonicoDm3[rand][1], gNascerRandamonicoDm3[rand][2]); return 1; } CMD:dm4(playerid, params[]) { new string[128]; SetPlayerInterior(playerid,0); ResetPlayerWeapons(playerid); for(new i = 0; i <= 26; i++) { GivePlayerWeapon(i,Armas[random(sizeof(Armas))],100); } SetPlayerArmour(playerid, 100); SetPlayerHealth(playerid, 100); GetPlayerName(playerid, pname, sizeof (pname)); format(string, sizeof(string), "|| %s » Foi para a Arena de DM4. {00BFFF}/dm4", pname); SendClientMessageToAll(0xF0F8FFAA, string); GameTextForPlayer(playerid,"~y~Voce esta na Arena DM4", 5000, 1); new rand = random(sizeof(gNascerRandamonicoDm4)); SetPlayerPos(playerid, gNascerRandamonicoDm4[rand][0], gNascerRandamonicoDm4[rand][1], gNascerRandamonicoDm4[rand][2]); return 1; } CMD:drop1(playerid, params[]) { new string[128]; SetPlayerInterior(playerid,0); ResetPlayerWeapons(playerid); for(new i = 0; i <= 26; i++) { GivePlayerWeapon(i,Armas[random(sizeof(Armas))],100); } SetPlayerArmour(playerid, 100); SetPlayerHealth(playerid, 100); GetPlayerName(playerid, pname, sizeof (pname)); format(string, sizeof(string), "|| %s » Foi para o Drop1. {00BFFF}/drop1", pname); SendClientMessageToAll(0xF0F8FFAA, string); GameTextForPlayer(playerid,"~y~Voce esta no Drop1", 5000, 1); new rand = random(sizeof(gNascerRandamonicoDrop1)); SetPlayerPos(playerid, gNascerRandamonicoDrop1[rand][0], gNascerRandamonicoDrop1[rand][1], gNascerRandamonicoDrop1[rand][2]); return 1; } CMD:drop2(playerid, params[]) { new string[128]; SetPlayerInterior(playerid,0); ResetPlayerWeapons(playerid); for(new i = 0; i <= 26; i++) { GivePlayerWeapon(i,Armas[random(sizeof(Armas))],100); } SetPlayerArmour(playerid, 100); SetPlayerHealth(playerid, 100); GetPlayerName(playerid, pname, sizeof (pname)); format(string, sizeof(string), "|| %s » Foi para o Drop2. {00BFFF}/drop2", pname); SendClientMessageToAll(0xF0F8FFAA, string); GameTextForPlayer(playerid,"~y~Voce esta no Drop2", 5000, 1); new rand = random(sizeof(gNascerRandamonicoDrop2)); SetPlayerPos(playerid, gNascerRandamonicoDrop2[rand][0], gNascerRandamonicoDrop2[rand][1], gNascerRandamonicoDrop2[rand][2]); return 1; } CMD:drop3(playerid, params[]) { new string[128]; SetPlayerInterior(playerid,0); ResetPlayerWeapons(playerid); for(new i = 0; i <= 26; i++) { GivePlayerWeapon(i,Armas[random(sizeof(Armas))],100); } SetPlayerArmour(playerid, 100); SetPlayerHealth(playerid, 100); GetPlayerName(playerid, pname, sizeof (pname)); format(string, sizeof(string), "|| %s » Foi para o Drop3. {00BFFF}/drop3", pname); SendClientMessageToAll(0xF0F8FFAA, string); GameTextForPlayer(playerid,"~y~Voce esta no Drop3", 5000, 1); new rand = random(sizeof(gNascerRandamonicoDrop3)); SetPlayerPos(playerid, gNascerRandamonicoDrop3[rand][0], gNascerRandamonicoDrop3[rand][1], gNascerRandamonicoDrop3[rand][2]); return 1; } CMD:drop4(playerid, params[]) { new string[128]; SetPlayerInterior(playerid,0); ResetPlayerWeapons(playerid); for(new i = 0; i <= 26; i++) { GivePlayerWeapon(i,Armas[random(sizeof(Armas))],100); } SetPlayerArmour(playerid, 100); SetPlayerHealth(playerid, 100); GetPlayerName(playerid, pname, sizeof (pname)); format(string, sizeof(string), "|| %s » Foi para o Drop4. {00BFFF}/drop4", pname); SendClientMessageToAll(0xF0F8FFAA, string); GameTextForPlayer(playerid,"~y~Voce esta no Drop4", 5000, 1); new rand = random(sizeof(gNascerRandamonicoDrop4)); SetPlayerPos(playerid, gNascerRandamonicoDrop4[rand][0], gNascerRandamonicoDrop4[rand][1], gNascerRandamonicoDrop4[rand][2]); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_CORES) { if(response) { if(listitem == 0) { SetPlayerColor(playerid, 0xFF4500AA); } if(listitem == 1) { SetPlayerColor(playerid, 0x00FF00AA); } if(listitem == 2) { SetPlayerColor(playerid, 0xFFFF00AA); } if(listitem == 3) { SetPlayerColor(playerid, 0x4876FFAA); } if(listitem == 4) { SetPlayerColor(playerid, 0xFFB90FAA); } if(listitem == 5) { SetPlayerColor(playerid, 0x9B30FFAA); } if(listitem == 6) { SetPlayerColor(playerid, 0x3A5FCDAA); } if(listitem == 7) { SetPlayerColor(playerid, 0xFF00FFAA); } if(listitem == 8) { SetPlayerColor(playerid, 0xD3D3D3AA); } if(listitem == 9) { SetPlayerColor(playerid, 0x8B7D7BAA); } if(listitem == 10) { SetPlayerColor(playerid, 0xFFFFFFAA); } if(listitem == 11) { SetPlayerColor(playerid, 0x98F5FFAA); } if(listitem == 12) { SetPlayerColor(playerid, 0x008B45AA); } } return 1; } if(dialogid == DIALOG_NEON) { if(response) { if(listitem == 0) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0)); SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); } if(listitem == 1) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon2", CreateObject(18647,0,0,0,0,0,0)); SetPVarInt(playerid, "neon3", CreateObject(18647,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); } if(listitem == 2) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon4", CreateObject(18649,0,0,0,0,0,0)); SetPVarInt(playerid, "neon5", CreateObject(18649,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); } if(listitem == 3) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0)); SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); } if(listitem == 4) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon8", CreateObject(18651,0,0,0,0,0,0)); SetPVarInt(playerid, "neon9", CreateObject(18651,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); } if(listitem == 5) { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon10", CreateObject(18650,0,0,0,0,0,0)); SetPVarInt(playerid, "neon11", CreateObject(18650,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); } if(listitem == 6) { DestroyObject(GetPVarInt(playerid, "neon")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon1")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon2")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon3")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon4")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon5")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon6")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon7")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon8")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon9")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon10")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon11")); DeletePVar(playerid, "Status"); } } return 1; } if(dialogid == DIALOG_EFEITOS) { if(response) { if(listitem == 0) { SetPlayerAttachedObject(playerid,1,18688,1,-0.895839,0.631365,-1.828601,21.642332,7.385670,13.958697,1.232679,1.000000,1.090367); // fire - Bruno SendClientMessage(playerid,0xFFFFFF99,"Efeito Ativado Com Sucesso By: Bruno_Tadeu!"); } if(listitem == 1) { SetPlayerAttachedObject(playerid,1,18742,1,0.036487,-1.759890,1.772809,225.616638,1.132580,0.677276,1.000000,1.000000,1.000000); // water_speed - explosaoaquatica SendClientMessage(playerid,0xFFFFFF99,"Efeito Ativado Com Sucesso By: Bruno_Tadeu!"); } if(listitem == 2) { SetPlayerAttachedObject(playerid,1,18864,1,2.178843,0.000000,0.000000,0.000000,0.000000,0.000000,1.000000,1.000000,1.000000); // FakeSnow1 - neve SendClientMessage(playerid,0xFFFFFF99,"Efeito Ativado Com Sucesso By: Bruno_Tadeu!"); } if(listitem == 3) { SetPlayerAttachedObject(playerid,1,867,1,-0.213616,-0.444311,0.070721,0.000000,0.000000,0.000000,1.000000,1.000000,1.000000); // p_rubble04col - pedras SendClientMessage(playerid,0xFFFFFF99,"Efeito Ativado Com Sucesso By: Bruno_Tadeu!"); } if(listitem == 4) { SetPlayerAttachedObject(playerid,1,1254,1,0.448984,0.065604,0.006619,4.313228,89.284942,0.000000,1.000000,1.000000,1.000000); // killfrenzy - caveira SendClientMessage(playerid,0xFFFFFF99,"Efeito Ativado Com Sucesso By: Bruno_Tadeu!"); } if(listitem == 5) { SetPlayerAttachedObject(playerid,1,1242,1,0.090351,0.088730,-0.000036,0.000000,89.157951,0.000000,1.619548,1.000000,1.348966); // bodyarmour - colete SendClientMessage(playerid,0xFFFFFF99,"Efeito Ativado Com Sucesso By: Bruno_Tadeu!"); } if(listitem == 6) { SetPlayerAttachedObject(playerid,1,18735,1,0.000000,-0.479024,-1.590823,0.000000,0.000000,0.000000,13.498819,1.000000,0.678294); // vent2 - fumaçao SendClientMessage(playerid,0xFFFFFF99,"Efeito Ativado Com Sucesso By: Bruno_Tadeu!"); } if(listitem == 7) { SetPlayerAttachedObject(playerid,1,19065,15,-0.025,-0.04,0.23,0,0,270,2,2,2); // Toca de Natal SendClientMessage(playerid,0xFFFFFF99,"Efeito Ativado Com Sucesso By: Bruno_Tadeu!"); } if(listitem == 8) { SetPlayerAttachedObject(playerid,1,18688,1,-0.895839,0.631365,-1.828601,21.642332,7.385670,13.958697,1.232679,1.000000,1.090367); // fire - Bruno SetPlayerAttachedObject(playerid,2,1254,1,0.448984,0.065604,0.006619,4.313228,89.284942,0.000000,1.000000,1.000000,1.000000); // killfrenzy - caveira SendClientMessage(playerid,0xFFFFFF99,"Efeitos Ativados Com Sucesso By: Bruno_Tadeu!"); } if(listitem == 9) { SetPlayerAttachedObject(playerid,1,1242,1,0.090351,0.088730,-0.000036,0.000000,89.157951,0.000000,1.619548,1.000000,1.348966); // bodyarmour - colete SetPlayerAttachedObject(playerid,2,18735,1,0.000000,-0.479024,-1.590823,0.000000,0.000000,0.000000,13.498819,1.000000,0.678294); // vent2 - fumaçao SendClientMessage(playerid,0xFFFFFF99,"Efeitos Ativados Com Sucesso By: Bruno_Tadeu!"); } if(listitem == 10) { SetPlayerAttachedObject(playerid,1,867,1,-0.213616,-0.444311,0.070721,0.000000,0.000000,0.000000,1.000000,1.000000,1.000000); // p_rubble04col - pedras SetPlayerAttachedObject(playerid,2,18742,1,0.036487,-1.759890,1.772809,225.616638,1.132580,0.677276,1.000000,1.000000,1.000000); // water_speed - explosaoaquatica SendClientMessage(playerid,0xFFFFFF99,"Efeitos Ativados Com Sucesso By: Bruno_Tadeu!"); } if(listitem == 11) { SetPlayerAttachedObject(playerid,1,19065,15,-0.025,-0.04,0.23,0,0,270,2,2,2); // Toca de Natal SetPlayerAttachedObject(playerid,2,18864,1,2.178843,0.000000,0.000000,0.000000,0.000000,0.000000,1.000000,1.000000,1.000000); // FakeSnow1 - neve SendClientMessage(playerid,0xFFFFFF99,"Efeitos Ativados Com Sucesso By: Bruno_Tadeu!"); } if(listitem == 12) { RemovePlayerAttachedObject(playerid,1); // Remoçao dos Efeitos RemovePlayerAttachedObject(playerid,2); // Remoçao dos Efeitos2 SendClientMessage(playerid,0xFFFFFF99,"Efeito(s) Removido(s) Com Sucesso By: Bruno_Tadeu!"); } } return 1; } if(dialogid == DIALOG_RADIO) { if(response) { if(listitem == 0) { PlayAudioStreamForPlayer(playerid, "http://radiohunter.com.br/beta/engines/players/small"); SendClientMessage(playerid,0xFFFFFF99,"Radio Ligada » Voce Esta Ouvindo a Radio Hunter."); } if(listitem == 1) { PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/28681468/index.html"); SendClientMessage(playerid,0xFFFFFF99,"Radio Ligada » Voce Esta Ouvindo Radio FreeZe."); } if(listitem == 2) { PlayAudioStreamForPlayer(playerid, "http://bombermix.hd1.com.br/player_principal/play.html"); SendClientMessage(playerid,0xFFFFFF99,"Radio Ligada » Voce Esta Ouvindo Radio BomberMix"); } if(listitem == 3) { StopAudioStreamForPlayer(playerid); SendClientMessage(playerid, 0xFFFFFF99,"Radio Ligada » Você Parou De Escutar a Radio"); } } return 1; } if(dialogid == DIALOG_REGISTRO) { if(response) { if(!strlen(inputtext)) { GetPlayerName(playerid, pname, sizeof(pname)); new String[256]; format(String,sizeof(String)," {00FF00}Bruno{FFFF00}Tadeu {0000FF}DM{FF0000}/DROP{98F5FF}\n***********************************************\n\n{98F5FF}>> {F5DEB3}Conta: {FFFFFF}%s\n{98F5FF}>> {F5DEB3}Status: {FF0000}Não Registrada{FFFFFF}\n\nColoque sua senha abaixo:",pname); ShowPlayerDialog(playerid,DIALOG_REGISTRO,DIALOG_STYLE_PASSWORD,"Fazenu Seu - Registro:",String,"Registrar-se","Sair"); SendClientMessage(playerid,0x1E90FFAA,"Senha invalida, digite uma senha válida"); return 1; } GetPlayerName(playerid, pname, sizeof(pname)); new String[256]; format(String, sizeof(String), SALVARCONTAS, pname); dini_Create(String); dini_Set(String,"Senha",inputtext); dini_IntSet(String,"Dinheiro",0); dini_IntSet(String,"Vida", 100); dini_IntSet(String,"Colete", 100); dini_IntSet(String,"Matou",0); dini_IntSet(String,"Morreu",0); dini_IntSet(String,"Logou",0); format(String,sizeof(String)," {00FF00}Bruno{FFFF00}Tadeu {0000FF}DM{FF0000}/DROP{98F5FF}\n***********************************************\n\n{98F5FF}>> {F5DEB3}Conta: {FFFFFF}%s\n{98F5FF}>> {F5DEB3}Status: {00FF00}Registrada{FFFFFF}\n\nColoque sua senha abaixo:",pname); ShowPlayerDialog(playerid,DIALOG_LOGAR,DIALOG_STYLE_PASSWORD,"Fazenu Seu - Login:",String,"Logar-se","Sair"); return 1; } else { SendClientMessage(playerid, 0xFF0000AA, "Você Foi Kickado Porque Não Quis Se Registrar!!"); Kick(playerid); return 1; } } if(dialogid == DIALOG_LOGAR) { if(response) { if(!strlen(inputtext)) { GetPlayerName(playerid, pname, sizeof(pname)); new String[256]; format(String,sizeof(String)," {00FF00}Bruno{FFFF00}Tadeu {0000FF}DM{FF0000}/DROP{00FF00}\n***********************************************\n\n{98F5FF}>> {F5DEB3}Conta: {FFFFFF}%s\n{98F5FF}>> {F5DEB3}Status: {00FF00}Registrada{FFFFFF}\n\nColoque sua senha abaixo:",pname); ShowPlayerDialog(playerid,DIALOG_LOGAR,DIALOG_STYLE_PASSWORD,"Fazenu Seu - Login:",String,"Logar-se","Sair"); SendClientMessage(playerid,0x1E90FFAA,"Senha Incorreta !"); return 1; } GetPlayerName(playerid, pname, sizeof(pname)); new String[256]; format(String, sizeof(String), SALVARCONTAS, pname); if(!strcmp(inputtext,dini_Get(String,"Senha"),false)) { SetarPlayer(playerid); Logou[playerid]++; RestarChat(playerid, 10); SendClientMessage(playerid,0xFFFFFFAA,"Logado Com Sucesso,Agora Escolha Uma Skin."); return 1; } else { SendClientMessage(playerid,0x00FF00AA,"Senha incorreta digite-a novamente"); format(String,sizeof(String)," {00FF00}Bruno{FFFF00}Tadeu {0000FF}DM{FF0000}/DROP{98F5FF}\n***********************************************\n\n{98F5FF}>> {F5DEB3}Conta: {FFFFFF}%s\n{98F5FF}>> {F5DEB3}Status: {00FF00}Registrada{FFFFFF}\n\nColoque sua senha abaixo:",pname); ShowPlayerDialog(playerid,DIALOG_LOGAR,DIALOG_STYLE_PASSWORD,"Fazenu Seu - Login:",String,"Logar-se","Sair"); } return 1; } else { SendClientMessage(playerid, 0xFF0000AA, "Você não quis se logar, por este motivo será Kickado"); Kick(playerid); return 1; } } return 1; } public OnPlayerSpawn(playerid) { SetPlayerInterior(playerid,0); TogglePlayerClock(playerid,0); NascerLocalRandamonico(playerid); TextDrawHideForPlayer(playerid, topopreto); TextDrawHideForPlayer(playerid, baixopreto); return 1; } public NascerLocalRandamonico(playerid) { if (SetarNascimento[playerid] == 0) { new rand = random(sizeof(gNascimentoRandamonico)); SetPlayerPos(playerid, gNascimentoRandamonico[rand][0], gNascimentoRandamonico[rand][1], gNascimentoRandamonico[rand][2]); // Warp the player } return 1; } SalvarPlayer(playerid) { new Float:Vida; new Float:Colete; GetPlayerHealth(playerid, Vida); GetPlayerArmour(playerid, Colete); new Nome[MAX_PLAYER_NAME]; GetPlayerName(playerid, Nome, sizeof(Nome)); new String[50]; format(String, sizeof(String), SALVARCONTAS, Nome); dini_IntSet(String,"Dinheiro", GetPlayerMoney(playerid)); dini_FloatSet(String,"Vida", Vida); dini_FloatSet(String,"Colete", Colete); dini_IntSet(String,"Matou", Matou[playerid]); dini_IntSet(String,"Morreu", Morreu[playerid]); dini_IntSet(String,"Logou", Logou[playerid]); return 1; } SetarPlayer(playerid) { new Nome[MAX_PLAYER_NAME]; GetPlayerName(playerid, Nome, sizeof(Nome)); new String[50]; format(String, sizeof(String), SALVARCONTAS, Nome); GivePlayerMoney(playerid, dini_Int(String,"Dinheiro")); SetPlayerHealth(playerid, dini_Int(String,"Vida")); SetPlayerArmour(playerid, dini_Int(String,"Colete")); Matou[playerid] = dini_Int(String, "Matou"); Morreu[playerid] = dini_Int(String, "Morreu"); Logou[playerid] = dini_Int(String, "Logou"); return 1; } Status(playerid) { new Nome[MAX_PLAYER_NAME]; GetPlayerName(playerid, Nome, sizeof(Nome)); new String[128]; SendClientMessage(playerid, 0xFF0000AA, "================================================"); format(String, sizeof(String),"Status De %s",Nome); SendClientMessage(playerid, 0xFFFF00AA,String); format(String, sizeof(String),"Dinheiro: %d", GetPlayerMoney(playerid)); SendClientMessage(playerid, 0x1E90FFAA,String); format(String, sizeof(String),"Matou: %d",Matou[playerid]); SendClientMessage(playerid, 0x1E90FFAA,String); format(String, sizeof(String),"Morreu: %d",Morreu[playerid]); SendClientMessage(playerid, 0x1E90FFAA,String); format(String, sizeof(String),"Você Já Logou %d Vezes Neste Servidor",Logou[playerid]); SendClientMessage(playerid, 0x1E90FFAA,String); SendClientMessage(playerid, 0xFF0000AA, "================================================"); return 1; } public OnPlayerDeath(playerid, killerid, reason) { if(IsPlayerConnected(killerid)) { Matou[killerid]++; } Morreu[playerid]++; new playercash; if(killerid == INVALID_PLAYER_ID) { SendDeathMessage(INVALID_PLAYER_ID,playerid,reason); ResetPlayerMoney(playerid); } else { SendDeathMessage(killerid,playerid,reason); SetPlayerScore(killerid,GetPlayerScore(killerid)+1); playercash = GetPlayerMoney(playerid); if (playercash > 0) { GivePlayerMoney(killerid, playercash); ResetPlayerMoney(playerid); } } return 1; } SetupPlayerForClassSelection(playerid) { SetPlayerPos(playerid,1025.5751,-2140.7637,39.2032); SetPlayerCameraPos(playerid,1019.7552,-2141.0266,37.7274); SetPlayerCameraLookAt(playerid,1021.9974,-2140.9907,38.3012); SetPlayerFacingAngle(playerid, 82.6125); ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1); } public VerificarVida() { for(new i = 0; i < MAX_PLAYERS; i++) { GetPlayerHealth(i,bt[i]); GetPlayerArmour(i,bt2[i]); Bruno2[i] = bt[i]+bt2[i]; Bruno3[i] = Bruno1[i] - Bruno2[i]; if(Bruno3[i] >= 41 && Bruno3[i] <= 42) { if(bt2[i] > 0 && bt[i] == 100) { SetPlayerArmour(i,0); SetPlayerHealth(i,Bruno4[i]); } if(bt2[i] > 0 && bt[i] != 100) { SetPlayerArmour(i,0); SetPlayerHealth(i,(bt[i]-(100-Bruno4[i]))); } if(bt2[i] == 0) SetPlayerHealth(i,0); } Bruno1[i] = Bruno2[i]; GetPlayerArmour(i,Bruno4[i]); } } public OnPlayerRequestClass(playerid, classid) { SetupPlayerForClassSelection(playerid); TextDrawHideForPlayer(playerid, FundoEntrada); return 1; } public RestarChat(playerid, lines) { if (IsPlayerConnected(playerid)) { for(new i=0; i