15.07.2018, 14:00
Bom eu estou usando um FS, mas quando "ele entra em aзгo", ou seja, dou /participar e ele seta a posiзгo do jogador ele pede para o jogador marcar denovo a senha da conta.
Gostaria de resolver isso, agradeзo por toda a ajuda.
Gostaria de resolver isso, agradeзo por toda a ajuda.
Код:
#include <JunkBuster> #include <a_samp> #include <progress> #include <zcmd> #include <a_mysql> #include <sscanf2> #include <streamer> #include <foreach> #include <mSelection> #include <mSelection2> #include <a_zones> #include <yom_buttons> #include <vfunc> #include <crashdetect> #include <geolocation> #include <fix_mapas> enum{ DIALOG_WAIT, DIALOG_WARNING }; enum jInfo { pPuntosCarrera, pObj, Float:pfOffsetX, Float:pfOffsetY, Float:pfOffsetZ, Float:pfRotX, Float:pfRotY, Float:pfRotZ, Float:pfScaleX, Float:pfScaleY, Float:pfScaleZ, pSlot, pObj2, Float:pfOffsetX2, Float:pfOffsetY2, Float:pfOffsetZ2, Float:pfRotX2, Float:pfRotY2, Float:pfRotZ2, Float:pfScaleX2, Float:pfScaleY2, Float:pfScaleZ2, pSlot2, pObj3, Float:pfOffsetX3, Float:pfOffsetY3, Float:pfOffsetZ3, Float:pfRotX3, Float:pfRotY3, Float:pfRotZ3, Float:pfScaleX3, Float:pfScaleY3, Float:pfScaleZ3, pSlot3, pObj4, Float:pfOffsetX4, Float:pfOffsetY4, Float:pfOffsetZ4, Float:pfRotX4, Float:pfRotY4, Float:pfRotZ4, Float:pfScaleX4, Float:pfScaleY4, Float:pfScaleZ4, pSlot4, pFechaNivel[45], pFechaRuedas[45], pFechaRemedio[45], pFechaCrack[45], pFechaSalvado[45], pFechaTortuga[45], pFechaTecho[45], pFechaNegocio[45], pFechaTrabajo[45], pFechaForzado[45], pFechaGanadas[45], pFechaCosecha[45], pFechaPorros[45], pSobreRuedas, pAutomedicado, pRemedios, pAdicto, pCracks, pMedico, pReanimados, pTortuga, pCasa, pRestaurante, pOficina, pCerrajero, pForzadas, pPilotoExperto, pGanadas, pNegocioRedondo, pCosecha, pMarihuanero, pPorros, pWP0, pWP1, pWP2, pWP3, pWP4, pWP5, pWP6, pWP7, pWP8, pWP9, pWP10, pWP11, pWP12, pNivelPiloto, pExpPiloto, pNivelLadron, pExpLadron, pNivelBasurero, pExpBasurero, pNivelCamionero, pExpCamionero, pNivelTransportista, pExpTransportista, pNivelArmero, pExpArmero, pNivelPescador, pExpPescador, pExpMinero, pNivelMinero, Float:hx, Float:hy, Float:hz, Float:jVida, Float:jArmadura, Float:jPos_x, Float:jPos_y, Float:jPos_z, pPassword[128], tempPassword[129], pExpulsando[32], pStats, pLNumero, pPasajeros, pDineroRobado, pEMS, pCama, pVwCama, pAtendido, pMedicina, pTutorial, pEnfermedad, pBanco, pRango, pMedicamentos, pCrack, pMateriales, pSemillas, pAgenda, pNumero, pID, pOnline, pPatines, pGPS, pRadio, pDuty, pSwat, pModelo, pSocioHP, pTipoCarcel, pTiempoCarcelM, pTiempoCarcelS, pTiempoJail, pTiempoJailS, pCargos, pBan, pRazon[32], pInterior, pMundoVirtual, QuienC[150], IP[16], EnCasa, EnRopero, EnGarage, PrecioNivel, NivelExp, hprecio, hmoneda, h2precio, h2moneda, Repuestos, Mobile, MobileSub, CasaID, CasaID2, Moneda, Totem[32], Totems, arrestado, horasjugadas, Ent_Totem, vip, vipjob, finmes, findia, finano, piezas, Agonizando, jAdminNvl, jSexo, jJob, jEdad, jRopa, jMiembro, jNivel, jDinero, jTiempoON, jExperiencia, jRegistrado, jConexion[90], pSed, pLicencia, pHambre, jMartillo, jDestornillador, jBarreta, jBalde, Float:pOX, Float:pOY, Float:pOZ, Float:pOA, VE1, VE2, VE3, VE4, vMonedaa, vModelo, vGas, vinterior, vvw, vColor1, vColor2, Float:pVidaV, vBaul, vBaul2, vBaul3, vBaul4, vBaul5, vBaul6, vBaul7, vBaul8, vPJ, vpatente[10], vComponentes0, vComponentes1, vComponentes2, vComponentes3, vComponentes4, vComponentes5, vComponentes6, vComponentes7, vComponentes8, vComponentes9, vComponentes10, vComponentes11, vComponentes12, vComponentes13, vPrecio, vTraba, Float:vX, Float:vY, Float:vZ, Float:vA, vOvw, vSeguro, vOinterior, Float:pOX2, Float:pOY2, Float:pOZ2, Float:pOA2, V2E1, V2E2, V2E3, V2E4, v2Monedaa, vModelo2, v2Gas, v2interior, v2vw, v2Color1, v2Color2, Float:pVidaV2, v2Baul, v2Baul2, v2Baul3, v2Baul4, v2Baul5, v2Baul6, v2Baul7, v2Baul8, vPJ2, v2patente[10], v2Componentes0, v2Componentes1, v2Componentes2, v2Componentes3, v2Componentes4, v2Componentes5, v2Componentes6, v2Componentes7, v2Componentes8, v2Componentes9, v2Componentes10, v2Componentes11, v2Componentes12, v2Componentes13, v2Precio, v2Traba, Float:v2X, Float:v2Y, Float:v2Z, Float:v2A, v2Ovw, vSeguro2, v2Ointerior, Float:pOX3, Float:pOY3, Float:pOZ3, Float:pOA3, V3E1, V3E2, V3E3, V3E4, v3Monedaa, vModelo3, v3Gas, v3interior, v3vw, v3Color1, v3Color2, Float:pVidaV3, v3Baul, v3Baul2, v3Baul3, v3Baul4, v3Baul5, v3Baul6, v3Baul7, v3Baul8, vPJ3, v3patente[10], v3Componentes0, v3Componentes1, v3Componentes2, v3Componentes3, v3Componentes4, v3Componentes5, v3Componentes6, v3Componentes7, v3Componentes8, v3Componentes9, v3Componentes10, v3Componentes11, v3Componentes12, v3Componentes13, v3Precio, v3Traba, Float:v3X, Float:v3Y, Float:v3Z, Float:v3A, v3Ovw, vSeguro3, v3Ointerior, Float:pOX4, Float:pOY4, Float:pOZ4, Float:pOA4, V4E1, V4E2, V4E3, V4E4, v4Monedaa, vModelo4, v4Gas, v4interior, v4vw, v4Color1, v4Color2, Float:pVidaV4, v4Baul, v4Baul2, v4Baul3, v4Baul4, v4Baul5, v4Baul6, v4Baul7, v4Baul8, vPJ4, v4patente[10], v4Componentes0, v4Componentes1, v4Componentes2, v4Componentes3, v4Componentes4, v4Componentes5, v4Componentes6, v4Componentes7, v4Componentes8, v4Componentes9, v4Componentes10, v4Componentes11, v4Componentes12, v4Componentes13, v4Precio, v4Traba, Float:v4X, Float:v4Y, Float:v4Z, Float:v4A, v4Ovw, vSeguro4, v4Ointerior, jRegalo, pEmail }; #if defined _ALS_Kick #undef Kick #else #define _ALS_Kick #endif #define Kick E_Kick #if !defined isnull #define isnull(%1) ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1])))) #endif #undef MAX_PLAYERS #define MAX_PLAYERS (150) #define INFINITY_HEALTH Float:0x7F800000 #define SPEED_CONTROLS 000.1 #define INVALID_REPORT_ID -1 #define MAX_IPS_USER 3 #define BUSCARCOCHE 3 #define GPS 4 #define INVENTARIO 5 #define SEXO 6 #define GPS2 7 #define PRODUCTOS 8 #define TRABAJOS 9 #define INFOMEDICO 10 #define INFOARMERO 11 #define INFOARMERO2 12 #define CAMIOND 13 #define GPS3 14 #define BANCO 15 #define BANCO1 16 #define BANCO2 17 #define BANCO3 18 #define BANCO4 19 #define VENDERAUTO 20 #define BUSCARCOCHE2 21 #define GPS4 22 #define BUSCARCOCHE3 23 #define BUSCARCOCHE4 24 #define VENDERCASA 25 #define VENDERCASA1 26 #define ESTANTE 28 #define VENDERAUTO2 29 #define EDAD 30 #define GPS5 31 #define REGLAS 32 #define REGLAS2 33 #define REGLAS3 34 #define REGLAS4 35 #define GPS6 37 #define GPS7 38 #define TALLER 39 #define TALLER2 40 #define GRUA 41 #define GRUA2 42 #define AYUDAVEHICULOS 45 #define INFOTRANSPORTISTA 46 #define GPS8 47 #define GRUA5 48 #define GRUA3 49 #define MAX_BARRICADES 50 #define habilidad 51 #define INFOPOLICIA 52 #define INFOCOSE 53 #define mapa 54 #define CREPUESTOS 55 #define INMIGRACION 56 #define INFOLADRON 57 #define GPS9 58 #define GPS10 59 #define GPS11 60 #define GPS12 61 #define GPS13 62 #define GPS14 63 #define GPS15 64 #define GPS16 65 #define DHOSPITAL 66 #define BOTIQUIN 67 #define DEMAIL 68 #define DAYUDA 69 #define DANUNCIO 77 #define DRECARGA 81 #define DADMINS 82 #define GRUA6 86 #define OBJETIVOPESCA 87 #define OBJETIVOROCA 88 #define COMPRARCAMELLO 91 #define VENDERCAMELLO 92 #define HERRAMIENTAS 93 #define INFOBASU 94 #define COMPRARMEDICAMENTOS 95 #define JUGUETES 96 #define PRODUCTOS2 97 #define OBJETIVOPRENDA 99 #define OBJETIVOPRENDA2 100 #define OBJETIVOPRENDA3 101 #define AUTOS 189 // 190 en la DB #define COMPRARCAMELLO2 193 #define COMPRARCRACK 194 #define VENDERMEDICAMENTOS 196 #define VENDERCRACK 197 #define DIALOG_SALON 252 #define SERVICIOGRUA1 253 #define SERVICIOGRUA2 254 #define SERVICIOGRUA3 255 #define DIALOG_PIZZA 256 #define COMPRARLICENCIA 257 #define LOCALIZARAMIGO 267 #define COMPRARRADIO 269 #define AlquilarSalon1 270 #define AlquilarSalon2 271 #define AlquilarSalon3 272 #define AlquilarSalon4 273 #define AlquilarSalon5 274 #define AlquilarSalon6 275 #define AlquilarSalon7 276 #define REPORTSMENU 277 #define TUNING_MENU_RUEDAS 278 #define CONTROLES 279 #define TRABAV 280 #define ENTREGARSE1 301 #define ENTREGARSE2 302 #define ENTREGARSE3 303 #define ENTREGARSE4 304 #define ENTREGARSE5 305 #define ENTREGARSE6 306 #define MAX_REPORTS 500 #define MAX_PROPIEDADES 2000 #define MAX_CASAS 2000 #define SAPDBZ 2001 #define SAPDBZ2 2002 #define SAPDBZ3 2003 #define SAPDBZ4 2004 #define BANDATIPO 2005 #define CREARMAFIA 2006 #define CREARPANDILLA 2007 #define DPRENDAS 2008 #define DPRENDAS2 2009 #define SCM SendClientMessage #define ParamsINC(%1,%2) SCM(%1,-1, ""#CAZULRARO"» "#CBLANCO"El comando, es: "#CAZULRARO"" %2) #define COLOR_DORADO 0xFFCC00FF #define COLOR_COMBATE 0x8F6B3CC2 #define COLOR_AMARILLO2 0xF4FA58FF #define COLOR_ORANGE 0xFF7F00FF #define COLOR_WHITE 0xFFFFFF00 #define COLOR_BLANCO 0xFFFFFFAA #define COLOR_YELLOW 0xDBED15FF #define COLOR_RED 0xEE0000FF #define COLOR_ROJO 0xEB0000FF #define COLOR_GRAD1 0xB4B5B7FF #define CHAT 0xE6E6E6E6 #define COLOR_GRAD2 0xBFC0C2FF #define CHAT2 0xC8C8C8C8 #define COLOR_GRAD3 0xCBCCCEFF #define CHAT3 0xAAAAAAAA #define COLOR_GRAD4 0xD8D8D8FF #define CHAT4 0x8C8C8C8C #define COLOR_GRAD5 0xE3E3E3FF #define CHAT5 0x6E6E6E6E #define COLOR_GRAD6 0xF0F0F0FF #define CHAT6 0xF0F0F0FF #define COLOR_GREEN2 0x9EC73DFF #define COLOR_GREEN3 0x9EC73D00 #define COLOR_VERDE 0x9EC73DAA #define COLOR_GREY 0xAFAFAFAA #define COLOR_GRIS 0xAFAFAFAA #define COLOR_BLUE 0x33CCFFAA #define DEFAULT_COLOR 0xFFFFFF00 #define DEFAULT_ALEATORIO 0xFFFFFF00 #define Hablar 0xE6E6E6E6 #define Hablar2 0xC8C8C8C8 #define Hablar3 0xAAAAAAAA #define Hablar4 0x8C8C8C8C #define Hablar5 0x6E6E6E6E #define COLOR_VIOLETA 0xCC6ACBFF #define COLOR_VERDECLARO 0x08E8BBAA #define COLOR_ADMIN 0xAA323200 #define COLOR_MODERADOR 0x24D80000 #define COLOR_POLICIA 0x3399FF00 #define COLOR_MUTE 0xAA3333AA #define COLOR_MEGAPHONE 0x3399FF00 #define c0_color 0xFFFFFF00 #define c1_color 0xFFFDBAFF #define c2_color 0xFFC600FF #define c3_color 0xFFA200FF #define c4_color 0xFF8400FF #define c5_color 0xFF5A00FF #define c6_color 0xFF1E00FF #define c7_color 0x00FF00FF #define COLOR_AMARILLO 0xFFFF00FF #define COLOR_VERDE2 0x00FF00FF #define COLOR_AZUL 0x00FAFFFF #define TEAM_BLUE_COLOR 0x3399FF00 #define COLOR_FADE1 0xE6E6E6E6 #define COLOR_FADE2 0xC8C8C8C8 #define COLOR_FADE3 0xAAAAAAAA #define COLOR_FADE4 0x8C8C8C8C #define COLOR_FADE5 0x6E6E6E6E #define TCOLOR_BEIGE 0xA5937000 #define COLOR_SACBLUE 0x0086B300 #define COLOR_AMARILLOBAJO 0xF5E7AD96 #define C_Blanco 0xFFFFFFFF #define segundos(%0) (1000 * %0) #define minutos(%0) (1000 * %0 * 60) #define horas(%0) (1000 * %0 * 60 * 60) #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 #define PlayerToPoint(%1,%2,%3,%4,%5) IsPlayerInRangeOfPoint(%2,%1,%3,%4,%5) #define HOLDING(%0) ((newkeys & (%0)) == (%0))d #define RELEASED(%0) (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0))) #define function%0(%1) forward %0(%1); public %0(%1) #define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) #define MAX_CONECTADOS GetPlayerPoolSize() #define Ciclo(%0,%1) \ for(new %0 = 0; %0 <= %1; %0++) new E_BR_PLAYERS, E_BR_START, E_BR_CLOSE ; new Quitando[MAX_PLAYERS]; new PlayerInfo[MAX_PLAYERS][jInfo]; new Timer_BT; new E_BR_WAIT[MAX_PLAYERS]; new bool:BR_Atrasado[MAX_PLAYERS]; new Total_BR = 0; new InWater_BR[MAX_PLAYERS]; main(){} new var123; forward Area_Verific(playerid); public Area_Verific(playerid){ if(IsPlayerArea(playerid)) { return 1; } else { SendClientMessage(playerid, -1, "{BEBEBE}Vocк estб fora da zona de seguranзa! Volte para a mesma, caso contrбrio perderб vida e morrerб!"); new Float:e_Float; GetPlayerHealth(playerid, e_Float); SetPlayerHealth(playerid, e_Float-5); } return 1; } forward DarDinero(playerid,cantidad); public DarDinero(playerid,cantidad) { if(cantidad < 0) return 1; PlayerInfo[playerid][jDinero] += cantidad; ResetPlayerMoney(playerid); GivePlayerMoney(playerid,PlayerInfo[playerid][jDinero]); return 1; } forward QuitarDinero(playerid,cantidad); public QuitarDinero(playerid,cantidad) { if(cantidad < 0) return 1; PlayerInfo[playerid][jDinero] -= cantidad; GivePlayerMoney(playerid,-cantidad); return 1; } CMD:pegararmas(playerid) { if(PlayerToPoint(2.0, playerid, 4213.88037, -1834.63501, 19.42100)) { GivePlayerWeapon(playerid, 23, 64), GivePlayerWeapon(playerid, 25, 64); GivePlayerWeapon(playerid, 4, 64), SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 4209.04150, -1662.58203, 19.42320)) { GivePlayerWeapon(playerid, 25, 64), GivePlayerWeapon(playerid, 30, 64); GivePlayerWeapon(playerid, 23, 64), SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 4086.49365, -1646.47668, 19.42280)) { GivePlayerWeapon(playerid, 30, 64), GivePlayerWeapon(playerid, 25, 64); SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 4044.12646, -1720.16919, 20.46370)) { GivePlayerWeapon(playerid, 25, 64), GivePlayerWeapon(playerid, 30, 64), GivePlayerWeapon(playerid, 4, 64), SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 4109.77539, -1524.86584, 19.60030)) { GivePlayerWeapon(playerid, 25, 64), SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 4125.34912, -1798.24768, 19.42030)) { GivePlayerWeapon(playerid, 30, 64), GivePlayerWeapon(playerid, 4, 64); SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 4002.79297, -1736.39136, 20.77060)) { GivePlayerWeapon(playerid, 25, 64), GivePlayerWeapon(playerid, 23, 64); SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 4038.42358, -2013.88599, 19.56410)) { GivePlayerWeapon(playerid, 23, 64), GivePlayerWeapon(playerid, 25, 64); GivePlayerWeapon(playerid, 30, 64), GivePlayerWeapon(playerid, 4, 64); SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 4318.34521, -2062.75854, 16.59060)) { GivePlayerWeapon(playerid, 25, 64), GivePlayerWeapon(playerid, 23, 64); GivePlayerWeapon(playerid, 4, 64), SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 4366.22461, -2094.69092, 16.58630)) { GivePlayerWeapon(playerid, 23, 64), SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 3817.74292, -2099.81934, 19.11140)) { GivePlayerWeapon(playerid, 25, 64), SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 3769.29077, -2647.64087, 18.79070)) { GivePlayerWeapon(playerid, 25, 64), GivePlayerWeapon(playerid, 23, 64); SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 3769.90381, -2599.63574, 22.67870)) { GivePlayerWeapon(playerid, 30, 64), GivePlayerWeapon(playerid, 4, 64); SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 3867.65845, -2552.31445, 26.67770)) { GivePlayerWeapon(playerid, 23, 64), GivePlayerWeapon(playerid, 30, 64); SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 3762.01196, -2116.38867, 19.32570)) { GivePlayerWeapon(playerid, 25, 64), SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 3847.70239, -1930.08521, 18.85830)) { GivePlayerWeapon(playerid, 30, 64), GivePlayerWeapon(playerid, 4, 64); SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 3605.73755, -1827.08496, 22.66630)) { GivePlayerWeapon(playerid, 25, 64), GivePlayerWeapon(playerid, 23, 64); GivePlayerWeapon(playerid, 30, 64), GivePlayerWeapon(playerid, 4, 64); SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 3544.78003, -1917.52148, 18.93130)) { GivePlayerWeapon(playerid, 25, 64), GivePlayerWeapon(playerid, 4, 64); SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 3568.32813, -2044.01379, 18.87790)) { GivePlayerWeapon(playerid, 23, 64), GivePlayerWeapon(playerid, 25, 64); SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 3580.88330, -1961.56299, 30.17440)) { GivePlayerWeapon(playerid, 23, 64), SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 3683.19751, -1923.62585, 19.33480)) { GivePlayerWeapon(playerid, 30, 64), SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 3777.43384, -2004.21033, 18.87660)) { GivePlayerWeapon(playerid, 1, 64), SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 3851.18555, -1958.19324, 18.35070)) { GivePlayerWeapon(playerid, 25, 64), GivePlayerWeapon(playerid, 1, 64); SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 3980.94312, -1789.14587, 19.65170)) { GivePlayerWeapon(playerid, 30, 64), GivePlayerWeapon(playerid, 1, 64); SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 4034.01733, -1627.00098, 25.33990)) { GivePlayerWeapon(playerid, 25, 64), GivePlayerWeapon(playerid, 30, 64); SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 4256.90283, -2091.10889, 16.58100)) { GivePlayerWeapon(playerid, 23, 64), GivePlayerWeapon(playerid, 1, 64); SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 3711.48096, -1984.92175, 19.09050)) { GivePlayerWeapon(playerid, 23, 64), GivePlayerWeapon(playerid, 30, 64); GivePlayerWeapon(playerid, 4, 64), SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } else if(PlayerToPoint(2.0, playerid, 3670.35107, -1894.00159, 19.93010)) { GivePlayerWeapon(playerid, 25, 64), GivePlayerWeapon(playerid, 23, 64); SendClientMessage(playerid, COLOR_WHITE, "Vocк pegou um Kit de Armas."); } return 1; } CMD:participar(playerid){ if(E_BR_CLOSE == 0){ if(E_BR_WAIT[playerid] == 1) return 1; if(BR_Atrasado[playerid] == true){ E_BR_PLAYERS++; SetPlayerPos(playerid, 3068.6685,-1994.3535,11.3307); ShowPlayerDialog(playerid, DIALOG_WARNING, DIALOG_STYLE_MSGBOX, "Battle Royale", "{FA8072}Battle Royale {BEBEBE}- Instruзхes\n\nUsufrua do seu paraquedas corretamente para nгo morrer ao cair.\nEncontre armas o mais rбpido possнvel e elimine os seus inimigos\nAcesse o fуrum do seu servidor para saber mais sobre o Battle Royale!\n\n{FFD700}Boa Sorte!", "Aguardar", ""); E_BR_WAIT[playerid] = 1; return 1; } E_BR_PLAYERS++; ShowPlayerDialog(playerid, DIALOG_WAIT, DIALOG_STYLE_MSGBOX, "Battle Royale", "{BEBEBE}O {FA8072}Battle Royale {BEBEBE}comeзarб quanto atingir um nъmero significantes de jogadores!\n\n{FA8072}Mнnimo de Jogadores: {BEBEBE}30\n{FA8072}Jogadores Aguardando: {BEBEBE}1\n\nVocк serб notificado quando o {FA8072}Battle Royale {BEBEBE}comeзar!", "Aguardar", ""); E_BR_WAIT[playerid] = 1; // Aguardando comeзar br InWater_BR[playerid] = SetTimerEx("InWater", 5000, true, "i", playerid); } else return 1; // br fechado! return 1; } new Partida_BR; forward IniciarBR(); forward Load_BR(); forward BR_TimerPass(); forward InWater(playerid); public InWater(playerid){ new Float:x_Float, Float:y_Float, Float:z_Float ; GetPlayerPos(playerid, x_Float, y_Float, z_Float); if(z_Float <= -1){ SendClientMessage(playerid, -1, "| INFO | Vocк foi retirado do Battle Royale por tentativa de trapaзa."); SetPlayerPos(playerid, 1249.9207,368.2750,19.5547); QuitarDinero(playerid, 3000); KillTimer(InWater_BR[playerid]); return 1; } return 0; } public Load_BR(){ E_BR_PLAYERS = Total_BR; E_BR_CLOSE = 1; SendClientMessageToAll( -1, "| INFO | O Battle Royale comeзou! "); SendClientMessageToAll( -1, " * Comando /battlehoyale bloqueado"); SendClientMessageToAll( -1, " * Armas dos participantes resetadas"); Partida_BR = SetTimer("MinutoAMais", 1000 * 60, true); for(new i; i < MAX_PLAYERS; i++){ if(E_BR_WAIT[i] == 1){ GivePlayerWeapon(i, 46, 1); // Paraquedas SetPlayerHealth(i, 100.0); SendClientMessage(i, -1, "| Battle Royale | Sair do mapa serб interpretado como abandono da partida."); SendClientMessage(i, -1, "| Battle Royale | A puniзao para esse comportamento й de $3000 + Desclassificado."); SendClientMessage(i, -1, ""); new E_POS = random(3); if(E_POS == 0){ SetPlayerPos(i, 3807.0945,-2038.9879,500.8287); } else if(E_POS == 1){ SetPlayerPos(i, 3807.0945,-2038.9879,400.8287); } else if(E_POS == 2){ SetPlayerPos(i, 3807.0945,-2038.9879,600.8287); } else if(E_POS == 3){ SetPlayerPos(i, 3807.0945,-2038.9879,630.8287); } } } return 1; } new Min = 0, Hour = 0; public BR_TimerPass(){ Min++; if(Min == 60) Min = 0, Hour = 1; return 1; } public IniciarBR(){ if(E_BR_START == 1) return 1; if(E_BR_PLAYERS >= 1){ E_BR_START = 1; SendClientMessageToAll(-1, "O Battle Royale iniciarб em minutos!"); KillTimer(Timer_BT); SetTimer("Load_BR", 1*60000, false); for(new i; i < MAX_PLAYERS; i++){ BR_Atrasado[i] = true; if(E_BR_WAIT[i] == 1){ SetPlayerHealth(i, 100.0); BR_Atrasado[i] = false; SetPlayerPos(i, 3068.6685,-1994.3535,11.3307); ShowPlayerDialog(i, DIALOG_WARNING, DIALOG_STYLE_MSGBOX, "Battle Royale", "Battle Royale - Instruзхes\n\nUsufrua do seu paraquedas corretamente para nгo morrer ao cair.\nEncontre armas o mais rбpido possнvel e elimine os seus inimigos\nAcesse o fуrum do seu servidor para saber mais sobre o Battle Royale!\n\nBoa Sorte!", "Aguardar", ""); } } } return 1; } public OnPlayerDeath(playerid, killerid, reason){ for(new i; i < MAX_PLAYERS; i++){ if(E_BR_WAIT[i] == 1){ if(killerid != INVALID_PLAYER_ID) { new e_var[60]; E_BR_PLAYERS--; format(e_var, sizeof e_var, "| {FA8072}Battle Royale {FFFFFF}| {BEBEBE}restam somente {FFD700}%d{BEBEBE} jogadores!", E_BR_PLAYERS); SendClientMessage(i, -1, e_var); SetPlayerPos(playerid, 1249.9207,368.2750,19.5547); // Retirar o player morto do BR QuitarArmas(playerid); SendClientMessage(i, -1, "| {FA8072}Battle Royale {FFFFFF}| {BEBEBE}Vocк foi morto por um jogador e foi retirado do Battle Royale!"); return 1; } if(E_BR_PLAYERS == 1){ new v_var[60], infos_br[128]; format(v_var, sizeof v_var, "| {FA8072}Battle Royale {FFFFFF}| {BEBEBE}O Jogador %s ganhou o Battle Royale!", killerid); DarDinero(playerid, 5000); QuitarArmas(playerid); format(infos_br, sizeof infos_br, "| {FA8072}Battle Royale {FFFFFF}| {BEBEBE}Duraзao: {FFD700}%d:%d:%d {BEBEBE}- {FFD700}Participantes: %d", Hour, Min, 20-3, Total_BR); SendClientMessageToAll(-1, v_var); KillTimer(InWater_BR[playerid]); KillTimer(Partida_BR); Timer_BT = SetTimer("IniciarBR", 30000, true); Hour = 0; Min = 0; E_BR_PLAYERS = 0; E_BR_CLOSE = 0; BR_Atrasado[playerid] = false; Total_BR = 0; } } } return 1; } public OnPlayerDisconnect(playerid, reason){ for(new i; i < MAX_PLAYERS; i++){ if(E_BR_WAIT[i] == 1){ new e_var[200]; E_BR_PLAYERS--; format(e_var, sizeof e_var, "| {FA8072}Battle Royale {FFFFFF}| {BEBEBE}restam somente {FFD700}%d {BEBEBE}jogadores!", E_BR_PLAYERS); SendClientMessage(i, -1, e_var); KillTimer(InWater_BR[playerid]); return 1; } } return 1; } stock QuitarArmas(playerid) { if(Quitando[playerid] == 0) { Quitando[playerid] = 1; SetTimerEx("QuitandoA",600,false,"d",playerid); } PlayerInfo[playerid][pWP0] = 0; PlayerInfo[playerid][pWP1] = 0; PlayerInfo[playerid][pWP2] = 0; PlayerInfo[playerid][pWP3] = 0; PlayerInfo[playerid][pWP4] = 0; PlayerInfo[playerid][pWP5] = 0; PlayerInfo[playerid][pWP6] = 0; PlayerInfo[playerid][pWP7] = 0; PlayerInfo[playerid][pWP8] = 0; //PlayerInfo[playerid][pWP9] = 0; PlayerInfo[playerid][pWP10] = 0; PlayerInfo[playerid][pWP11] = 0; PlayerInfo[playerid][pWP12] = 0; ResetPlayerWeapons(playerid); } stock QuitarArmas2(playerid) { if(Quitando[playerid] == 0) { Quitando[playerid] = 1; SetTimerEx("QuitandoA",600,false,"d",playerid); } PlayerInfo[playerid][pWP0] = 0; PlayerInfo[playerid][pWP1] = 0; PlayerInfo[playerid][pWP2] = 0; PlayerInfo[playerid][pWP3] = 0; PlayerInfo[playerid][pWP4] = 0; PlayerInfo[playerid][pWP5] = 0; PlayerInfo[playerid][pWP6] = 0; PlayerInfo[playerid][pWP7] = 0; PlayerInfo[playerid][pWP8] = 0; PlayerInfo[playerid][pWP9] = 0; PlayerInfo[playerid][pWP10] = 0; PlayerInfo[playerid][pWP11] = 0; PlayerInfo[playerid][pWP12] = 0; ResetPlayerWeapons(playerid); } stock DarArma(playerid, weaponid) { if(weaponid == 1) { PlayerInfo[playerid][pWP0] = weaponid; GivePlayerWeapon(playerid, weaponid, 999999); return 1; } if(weaponid > 1 && weaponid <= 9) { PlayerInfo[playerid][pWP1] = weaponid; GivePlayerWeapon(playerid, weaponid, 999999); return 1; } if( weaponid >= 22 && weaponid <= 24 ) { PlayerInfo[playerid][pWP2] = weaponid; GivePlayerWeapon(playerid, weaponid, 999999); return 1; } if( weaponid >= 25 && weaponid <= 27 ) { PlayerInfo[playerid][pWP3] = weaponid; GivePlayerWeapon(playerid, weaponid, 999999); return 1; } if( weaponid == 28 || weaponid == 29 || weaponid == 32 ) { PlayerInfo[playerid][pWP4] = weaponid; GivePlayerWeapon(playerid, weaponid, 999999); return 1; } if( weaponid == 30 || weaponid == 31 ) { PlayerInfo[playerid][pWP5] = weaponid; GivePlayerWeapon(playerid, weaponid, 999999); return 1; } if( weaponid == 33 || weaponid == 34 ) { PlayerInfo[playerid][pWP6] = weaponid; GivePlayerWeapon(playerid, weaponid, 999999); return 1; } if( weaponid >= 35 && weaponid <= 38 ) { PlayerInfo[playerid][pWP7] = weaponid; GivePlayerWeapon(playerid, weaponid, 999999); return 1; } if( weaponid >= 16 && weaponid <= 18 || weaponid == 39) { PlayerInfo[playerid][pWP8] = weaponid; new weapons8[MAX_PLAYERS], municion; GetPlayerWeaponData(playerid, 8, weapons8[playerid], municion); if(municion >= 1) { } else { GivePlayerWeapon(playerid, weaponid, 1); } return 1; } if( weaponid >= 41 && weaponid <= 43 ) { PlayerInfo[playerid][pWP9] = weaponid; GivePlayerWeapon(playerid, weaponid, 999999); return 1; } if( weaponid >= 10 && weaponid <= 15) { PlayerInfo[playerid][pWP10] = weaponid; GivePlayerWeapon(playerid, weaponid, 999999); return 1; } if( weaponid >= 44 && weaponid <= 46 ) { PlayerInfo[playerid][pWP11] = weaponid; GivePlayerWeapon(playerid, weaponid, 999999); return 1; } return 1; } stock DarArmas(playerid) { GivePlayerWeapon(playerid, PlayerInfo[playerid][pWP0],9999999); GivePlayerWeapon(playerid, PlayerInfo[playerid][pWP1],9999999); GivePlayerWeapon(playerid, PlayerInfo[playerid][pWP2],9999999); GivePlayerWeapon(playerid, PlayerInfo[playerid][pWP3],9999999); GivePlayerWeapon(playerid, PlayerInfo[playerid][pWP4],9999999); GivePlayerWeapon(playerid, PlayerInfo[playerid][pWP5],9999999); GivePlayerWeapon(playerid, PlayerInfo[playerid][pWP6],9999999); GivePlayerWeapon(playerid, PlayerInfo[playerid][pWP7],9999999); GivePlayerWeapon(playerid, PlayerInfo[playerid][pWP8],1); GivePlayerWeapon(playerid, PlayerInfo[playerid][pWP9],9999999); GivePlayerWeapon(playerid, PlayerInfo[playerid][pWP10],9999999); GivePlayerWeapon(playerid, PlayerInfo[playerid][pWP11],9999999); GivePlayerWeapon(playerid, PlayerInfo[playerid][pWP12],9999999); return 1; } stock QuitarArma(playerid, weaponid) { if(Quitando[playerid] == 0) { Quitando[playerid] = 1; SetTimerEx("QuitandoA",600,false,"d",playerid); } if(weaponid == 1) { PlayerInfo[playerid][pWP0] = 0; ResetPlayerWeapons(playerid); DarArmas(playerid); } if(weaponid > 1 && weaponid <= 9) { PlayerInfo[playerid][pWP1] = 0; ResetPlayerWeapons(playerid); DarArmas(playerid); } if( weaponid >= 10 && weaponid <= 15) { PlayerInfo[playerid][pWP10] = 0; ResetPlayerWeapons(playerid); DarArmas(playerid); } if( weaponid == 16) { PlayerInfo[playerid][pWP8] = 0; ResetPlayerWeapons(playerid); DarArmas(playerid); } if( weaponid >= 22 && weaponid <= 24 ) { PlayerInfo[playerid][pWP2] = 0; ResetPlayerWeapons(playerid); DarArmas(playerid); } if( weaponid >= 25 && weaponid <= 27 ) { PlayerInfo[playerid][pWP3] = 0; ResetPlayerWeapons(playerid); DarArmas(playerid); } if( weaponid == 28 || weaponid == 29 || weaponid == 32 ) { PlayerInfo[playerid][pWP4] = 0; ResetPlayerWeapons(playerid); DarArmas(playerid); } if( weaponid == 30 || weaponid == 31 ) { PlayerInfo[playerid][pWP5] = 0; ResetPlayerWeapons(playerid); DarArmas(playerid); } if( weaponid == 33 || weaponid == 34 ) { PlayerInfo[playerid][pWP6] = 0; ResetPlayerWeapons(playerid); DarArmas(playerid); } if( weaponid >= 35 && weaponid <= 38 ) { PlayerInfo[playerid][pWP7] = 0; ResetPlayerWeapons(playerid); DarArmas(playerid); } if( weaponid >= 41 && weaponid <= 43 ) { PlayerInfo[playerid][pWP9] = 0; ResetPlayerWeapons(playerid); DarArmas(playerid); } if( weaponid >= 44 && weaponid <= 46 ) { PlayerInfo[playerid][pWP11] = 0; ResetPlayerWeapons(playerid); DarArmas(playerid); } return 1; } forward QuitandoA(playerid); public QuitandoA(playerid) { if(Quitando[playerid] == 1) { Quitando[playerid] = 0; } } stock IsPlayerArea(playerid) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid, x, y, z); if(x >= 3631.2939 && y >= -1900.2911 && x <= 3575.9104 && y <= -1833.6589) return true; else return false; } public OnFilterScriptInit(){ var123 = GangZoneCreate(3631.2939, -1900.2911, 3575.9104, -1833.6589); Timer_BT = SetTimer("IniciarBR", 30000, true); return 1; }