-
Posts
96 -
Joined
-
Last visited
Everything posted by DeathMta
-
[APORTE] : MARKERS PRIVATIZADOS , WARP CON FUNCIONES
DeathMta replied to DeathMta's topic in Recursos y aportes
eso es para un marker global .-. yo lo que hago es darle a cada marker una funcion especifica -
Skin Privado Por Cuentas [Derechos Propios]
DeathMta replied to DeathMta's topic in Recursos y aportes
gracias danys por tu mejora -
[APORTE] : AL SUBIR NIVEL [CASTILLO-EXP-SYSTEM] TE DA VIDA
DeathMta replied to DeathMta's topic in Recursos y aportes
puedes hacer un ejemplo con m iscript : function SkinCuenta ( player) if getElementType ( player ) == "player" then local registro = getPlayerAccount(player) local cuenta = getAccountName(registro) if ( registro and cuenta or "") == "Death" then setElementModel(player, 299) setElementData(player, "skin",299) outputChatBox("#5000FF[skin]:#FFFFFFTes has puesto tu Skin",player,255,255,255,true) else outputChatBox("#5000FF[skin]:#FFFFFFAcceso Denegado",player,84,84,84,true) end end end addCommandHandler("skin",SkinCuenta) la proxima vez usa el tag de lua local spam = {} function SkinCuenta ( player) if getElementType ( player ) == "player" and (spam[player] or 0) --[[Compruebo si existe, sino 0]] < getTickCount() then local cuenta = getAccountName(getPlayerAccount(player)) if cuenta or "" == "Death" then setElementModel(player, 299) setElementData(player, "skin",299) outputChatBox("#5000FF[skin]:#FFFFFFTe has puesto tu Skin",player,255,255,255,true) spam[player] = getTickCount()+5*60000 --5 minutos de antispam else outputChatBox("#5000FF[skin]:#FFFFFFAcceso Denegado",player,84,84,84,true) end end end addCommandHandler("skin",SkinCuenta) Antispam hecho para que cuando cambie la skin, se ponga antispam, puedes modificarlo cambiando el spam[player] de sitio y modificando los valores, getTickCount() devuelve en MS gracias -
[APORTE] : AL SUBIR NIVEL [CASTILLO-EXP-SYSTEM] TE DA VIDA
DeathMta replied to DeathMta's topic in Recursos y aportes
puedes hacer un ejemplo con m iscript : function SkinCuenta ( player) if getElementType ( player ) == "player" then local registro = getPlayerAccount(player) local cuenta = getAccountName(registro) if ( registro and cuenta or "") == "Death" then setElementModel(player, 299) setElementData(player, "skin",299) outputChatBox("#5000FF[skin]:#FFFFFFTes has puesto tu Skin",player,255,255,255,true) else outputChatBox("#5000FF[skin]:#FFFFFFAcceso Denegado",player,84,84,84,true) end end end addCommandHandler("skin",SkinCuenta) -
[APORTE] : AL SUBIR NIVEL [CASTILLO-EXP-SYSTEM] TE DA VIDA
DeathMta replied to DeathMta's topic in Recursos y aportes
no mi script lo que hace es verificiar si tiene un nivel especifico y al poner el comando te da el set osea la vida -
[APORTE] : AL SUBIR NIVEL [CASTILLO-EXP-SYSTEM] TE DA VIDA
DeathMta replied to DeathMta's topic in Recursos y aportes
Tome su script optimizado señor :v spam = {} function NivelesPremio(thePlayer) if spam[thePlayer] < getTickCount() then local nivel = getElementData(thePlayer,"level") setElementData(thePlayer, "blood", 20000+((getElementData(thePlayer,"level") or 1)*1000)) outputChatBox("#5000FF[sistema de Niveles]#FFFFFF:Vida Aumentada a "..tostring(getElementData(thePlayer, "blood")).."!", thePlayer, 0, 0, 0,true) spam[thePlayer] = getTickCount()+10*60000 else outputChatBox("#5000FF[sistema de Niveles]#FFFFFF: Espera antes de usar este comando! ("..tostring(math.floor(spam[thePlayer]/1000)).." segundos)", thePlayer, 0,0,0,true) end end addCommandHandler("nivel", NivelesPremio) tu script esta mal hecho ya que blood y exp sos 2 variables distintas . mejor te puedes explicar con otra funcion mas sencilla acerca del abuso del comando? -
[APORTE] : AL SUBIR NIVEL [CASTILLO-EXP-SYSTEM] TE DA VIDA
DeathMta replied to DeathMta's topic in Recursos y aportes
esa era mi idea pero gracias de igual manera -
[APORTE] : AL SUBIR NIVEL [CASTILLO-EXP-SYSTEM] TE DA VIDA
DeathMta replied to DeathMta's topic in Recursos y aportes
se te dara la vida que dice hay me falta ponerle un settimer para evitar el abuso -
[APORTE] : AL SUBIR NIVEL [CASTILLO-EXP-SYSTEM] TE DA VIDA
DeathMta replied to DeathMta's topic in Recursos y aportes
es para la gm tipo dayz , ya que hay se usa el set element data y el blood es la vida del jugador , ese scripts es para mta dayz -
okey thank you
-
marcador = createMarker(2855.3896484375,-1696.1273193359,10, 'cylinder', 2.0, 255, 0, 0, 150) marcador1 = createMarker(193.96853637695,2078.2717285156,10, 'cylinder', 2.0, 255, 0, 0, 150) marcador2 = createMarker(1380.8928222656,1425.5935058594,10, 'cylinder', 2.0, 255, 0, 0, 150) marcador3 = createMarker(2629.71484375,795.16357421875,-24.73281288147, "corona", 1.5, 255, 0, 0, 255, getRootElement() ) warp = createMarker(220.08317565918,1907.2315673828,16, 'cylinder', 2.0, 255, 0, 0, 150) function Markers(thePlayer) ------------------------------------------------------------------------------------------------------------ if isElementWithinMarker(thePlayer, marcador) and getElementData(thePlayer,"level") >= 10 then setElementData(thePlayer,"blood",30000) outputChatBox("#FF0000[Marker]:#FFFFFFTienes 50 Mil De Sangre", thePlayer, 255, 0, 0,true) ------------------------------------------------------------------------------------------------------------ elseif isElementWithinMarker(thePlayer, marcador1) and getElementData(thePlayer,"level") >= 10 then setElementData(thePlayer,"blood",30000) outputChatBox("#FF0000[Marker]:#FFFFFFTienes 50 Mil De Sangre", thePlayer, 255, 0, 0,true) ------------------------------------------------------------------------------------------------------------ elseif isElementWithinMarker(thePlayer, marcador2) and getElementData(thePlayer,"level") >= 10 then setElementData(thePlayer,"blood",30000) outputChatBox("#FF0000[Marker]:#FFFFFFTienes 50 Mil De Sangre", thePlayer, 255, 0, 0,true) ------------------------------------------------------------------------------------------------------------ elseif isElementWithinMarker(thePlayer, marcador3) and getElementData(thePlayer, "gang" ) == "test" then setElementData(thePlayer,"blood",50000) outputChatBox("#FF0000[Marker]:#FFFFFFTienes 50 Mil De Sangre", thePlayer, 255, 0, 0,true) ------------------------------------------------------------------------------------------------------------ elseif isElementWithinMarker(thePlayer, warp) and getElementData(thePlayer, "gang" ) == "test" then setElementPosition(thePlayer,210.63455200195,1906.3947753906,17.640625) outputChatBox("#FF0000[Marker]:#FFFFFFEstas En Base", thePlayer, 255, 0, 0,true) ------------------------------------------------------------------------------------------------------------ end end addEventHandler ( "onMarkerHit", getRootElement(), Markers )
-
function NivelesPremio(thePlayer) local nivel = getElementData(thePlayer,"level") if nivel == 5 then setElementData(thePlayer, "blood",25000) outputChatBox("#5000FF[sistema de Niveles]#FFFFFF:Vida Aumentada !", thePlayer, 255, 255, 255,true) elseif nivel == 7 then setElementData(thePlayer, "blood",27000) outputChatBox("#5000FF[sistema de Niveles]#FFFFFF:Vida Aumentada !", thePlayer, 255, 255, 255,true) elseif nivel == 9 then setElementData(thePlayer, "blood",29000) outputChatBox("#5000FF[sistema de Niveles]#FFFFFF:Vida Aumentada ", thePlayer, 255, 255, 255,true) elseif nivel == 11 then setElementData(thePlayer, "blood",25000) outputChatBox("#5000FF[sistema de Niveles]#FFFFFF:Vida Aumentada !", thePlayer, 255, 255, 255,true) elseif nivel == 13 then setElementData(thePlayer, "blood",31000) outputChatBox("#5000FF[sistema de Niveles]#FFFFFF:Vida Aumentada !", thePlayer, 255, 255, 255,true) elseif nivel == 15 then setElementData(thePlayer, "blood",33000) outputChatBox("#5000FF[sistema de Niveles]#FFFFFF:Vida Aumentada !", thePlayer, 255, 255, 255,true) elseif nivel == 17 then setElementData(thePlayer, "blood",35000) outputChatBox("#5000FF[sistema de Niveles]#FFFFFF:Vida Aumentada !", thePlayer, 255, 255, 255,true) elseif nivel == 19 then setElementData(thePlayer, "blood",37000) outputChatBox("#5000FF[sistema de Niveles]#FFFFFF:Vida Aumentada !", thePlayer, 255, 255, 255,true) elseif nivel == 21 then setElementData(thePlayer, "blood",39000) outputChatBox("#5000FF[sistema de Niveles]#FFFFFF:Vida Aumentada !", thePlayer, 255, 255, 255,true) elseif nivel == 23 then setElementData(thePlayer, "blood",41000) outputChatBox("#5000FF[sistema de Niveles]#FFFFFF:Vida Aumentada !", thePlayer, 255, 255, 255,true) elseif nivel == 25 then setElementData(thePlayer, "blood",43000) outputChatBox("#5000FF[sistema de Niveles]#FFFFFF:Vida Aumentada !", thePlayer, 255, 255, 255,true) elseif nivel == 27 then setElementData(thePlayer, "blood",45000) outputChatBox("#5000FF[sistema de Niveles]#FFFFFF:Vida Aumentada !", thePlayer, 255, 255, 255,true) else outputChatBox("#5000FF[sistema de Niveles]#FFFFFF: No Tienes El Nivel Suficiente!", thePlayer, 255, 255, 255,true) end end addCommandHandler("nivel", NivelesPremio)
-
Skin Privado Por Cuentas [Derechos Propios]
DeathMta replied to DeathMta's topic in Recursos y aportes
por ejemplo yo cree otro para clanes , me base al gang system de castillo function SkinClan ( player) if getElementType (player) == "player" and if getElementData(source, "gang" ) == "Clan" then setElementModel(player, 299) setElementData(player, "skin",299) outputChatBox("#5000FF[skin]:#FFFFFFTes has puesto tu Skin",player,255,255,255,true) else outputChatBox("#5000FF[skin]:#FFFFFFAcceso Denegado",player,84,84,84,true) end end end addCommandHandler("skin",SkinClan) -
Skin Privado Por Cuentas [Derechos Propios]
DeathMta replied to DeathMta's topic in Recursos y aportes
tomas para grupos? que sistema de grupos o clanes usas? -
Skin Privado Por Cuentas [Derechos Propios]
DeathMta replied to DeathMta's topic in Recursos y aportes
dany solo lo cree para una cuenta , y gracias por la idea de las tablas -
I need a car to privatize spawnear to a specific account function autovip(thePlayer,veh) local Cuenta = getAccountName (getPlayerAccount(thePlayer)) if isObjectInACLGroup ("user."..Cuenta, aclGetGroup ( "VIP" ) ) then local x, y, z = getElementPosition ( thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) veh = createVehicle(411,x+1,y,z) vehCol = createColSphere(x+1,y,z,2) attachElements ( vehCol, veh, 0, 0, 0 ) setElementData(vehCol,"parent",veh) setElementData(veh,"parent",vehCol) setElementData(vehCol,"vehicle",true) setElementData(vehCol,"MAX_Slots",300) setElementData(vehCol,"Tire_inVehicle",4) setElementData(vehCol,"Engine_inVehicle",2) setElementData(vehCol,"Parts_inVehicle",1) setElementData(vehCol,"fuel",60) setVehicleDamageProof(veh, true) addVehicleUpgrade ( veh, 1010 ) warpPedIntoVehicle(thePlayer,veh) triggerClientEvent("displayClientInfo", thePlayer, " #FFFFFFHe sacado un auto vip" , 84, 84, 84) setTimer ( function() destroyElement(veh) destroyElement(vehCol) end,600000 , 1 ) else outputChatBox("Usted deve ser [VIP Full] para sacar el Auto o Carro, hable con Admin [D]eath!", thePlayer,84,84,84,true) end end addCommandHandler("auto", autovip) Vehicles = { [411]=true } function lockPrivate( thePlayer, seat, jacked ) if getElementType ( thePlayer ) == "player" then if ( Vehicles[getElementModel ( source )] ) and ( seat == 0 ) then local account = getPlayerAccount( thePlayer ) local accountName = ( account and getAccountName ( account ) or "" ) if not( accountName == "Death" ) then removePedFromVehicle( thePlayer ) triggerClientEvent("displayClientInfo", thePlayer, " #FFFFFFEste Vehiculo Es De un Vip Full!" , 84, 84, 84) else triggerClientEvent("displayClientInfo", thePlayer, " #FFFFFFBienvenido "..getPlayerName ( thePlayer ).. "", 84, 84, 84) end end end end addEventHandler ( "onVehicleEnter", getRootElement(), lockPrivate ) I want to privatize this function Vehicles = { [411]=true } function lockPrivate( thePlayer, seat, jacked ) if getElementType ( thePlayer ) == "player" then if ( Vehicles[getElementModel ( source )] ) and ( seat == 0 ) then local account = getPlayerAccount( thePlayer ) local accountName = ( account and getAccountName ( account ) or "" ) if not( accountName == "Death" ) then removePedFromVehicle( thePlayer ) triggerClientEvent("displayClientInfo", thePlayer, " #FFFFFFEste Vehiculo Es De un Vip Full!" , 84, 84, 84) else triggerClientEvent("displayClientInfo", thePlayer, " #FFFFFFBienvenido "..getPlayerName ( thePlayer ).. "", 84, 84, 84) end end end end addEventHandler ( "onVehicleEnter", getRootElement(), lockPrivate )
-
Hola amigos!! Acá les traiga un 'sistema' de skines por cuenta https://you.tube/HFgnnO4bGXs
-
function AutoDeath ( player ) if getElementType ( thePlayer ) == "player" then local cuenta = getPlayerAccount( player ) local x, y, z = getElementPosition(player) local accountName = ( cuenta and getAccountName ( cuenta ) or "" ) if not( accountName == "123") then vehiculo = createVehicle(422, x + 5, y, z) Interior = createColSphere(x + 5, y, z, 4) attachElements(Interior, vehiculo, 0, 0, 0) setElementData(Interior, "parent", vehiculo) setElementData(vehiculo, "parent", Interior) setElementData(Interior, "vehicle", true) setElementData(Interior, "MAX_Slots", 20) setElementData(Interior, "Tire_inVehicle", 4) setElementData(Interior, "Engine_inVehicle", 1) setElementData(Interior, "Parts_inVehicle", 1) setElementData(Interior, "fuel", 80) outputChatBox("[Death]:Te Has Equipado",player,84, 84, 84,true) else outputChatBox("No Eres Death Para Usar Este Comando",player,84,84,84,true) end end end addCommandHandler("death1",AutoDeath)
-
Thanks Visit mi server in spanish : mtasa://74.91.118.193:22003
-
ERROR : nivel.lua:95 attempt to concatenate local "rang" (a nil value) Help please function HudExpRangos() local screenWidth, screenHeight = guiGetScreenSize ( ) local nivel = getElementData(getLocalPlayer(), "level") local rang = getElementData(getLocalPlayer(), "Rango") if nivel == 1 then setElementData(source, "Rango","Mediocre") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 2 then setElementData(source, "Rango","Novato") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 3 then setElementData(source, "Rango","Novato Medio") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 4 then setElementData(source, "Rango","Aprendiz") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 5 then setElementData(source, "Rango","Semi - Campero") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 6 then setElementData(source, "Rango","Campero") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 7 then setElementData(source, "Rango","Asesino") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 8 then setElementData(source, "Rango","Sicario") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 9 then setElementData(source, "Rango","Killero") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 10 then setElementData(source, "Rango","Teniente") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 11 then setElementData(source, "Rango","Sangriento") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 12 then setElementData(source, "Rango","Mortero") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 13 then setElementData(source, "Rango","Capitan") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 14 then setElementData(source, "Rango","Super-Killer") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 15 then setElementData(source, "Rango","Death") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 16 then setElementData(source, "Rango","Por Ahi :v") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 17 then setElementData(source, "Rango","General") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 18 then setElementData(source, "Rango","Sargento") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 19 then setElementData(source, "Rango","Avanzado") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 20 then setElementData(source, "Rango","Semi-Pro") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 21 then setElementData(source, "Rango","Pro") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 22 then setElementData(source, "Rango","Master") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) elseif nivel == 23 then setElementData(source, "Rango","Rey Pro") dxDrawText("Rango:"..rang,screenWidth*0.7561, screenHeight*0.161, screenWidth*0.95, screenHeight*0.5,tocolor(0,0,0),0.4,"bankgothic","right","top",false,false,false) dxDrawText("Rango:"..rang,screenWidth*0.756, screenHeight*0.16, screenWidth*0.95, screenHeight*0.5,tocolor(255,255,255,255),0.4,"bankgothic","right","top",false,false,false) end end addEventHandler("onClientHUDRender",getRootElement(),HudExpRangos)
-
--SERVER-SIDE : --------------------------------------------------- --Configuraciones-- Acl = "viptitan" Id_Vehiculo = 411 -- infernus Motores = 2 Ruedas = 4 Tanque_De_Gas = 1 Gasolina = 150 Tiempo_De_Uso = 600000 -- en milisegundos -------------------------------------------------- function autovip( thePlayer,veh,seat,jacked ) local Cuenta = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..Cuenta, aclGetGroup ( Acl ) ) then local x, y, z = getElementPosition ( thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) veh = createVehicle(Id_Vehiculo,x+1,y,z) vehCol = createColSphere(x+1,y,z,2) attachElements ( vehCol, veh, 0, 0, 0 ) setElementData(vehCol,"parent",veh) setElementData(veh,"parent",vehCol) setElementData(vehCol,"vehicle",true) setElementData(vehCol,"MAX_Slots",300) setElementData(vehCol,"Tire_inVehicle",Ruedas) setElementData(vehCol,"Engine_inVehicle",Motores) setElementData(vehCol,"Parts_inVehicle",Tanque_De_Gas) setElementData(vehCol,"fuel",Gasolina) setVehicleDamageProof(veh, true) addVehicleUpgrade ( theVehicle, 1010 ) outputChatBox("#545454Yo " ..getPlayerName ( thePlayer ).. " #545454he sacado un auto vip [30 Minutos]!", thePlayer,250,0,0,true) setTimer ( function()destroyElement(veh)destroyElement(vehCol)destroyElement(carblib) end,Tiempo_De_Uso , 1 ) else outputChatBox("Usted deve ser [VIP Full] para sacar el Auto o Carro, hable con Admin [D]eath!", thePlayer,84,84,84,true) end end addCommandHandler("auto", autovip)