-
Posts
1,102 -
Joined
Everything posted by Enargy,
-
Y si no hay un atacante
-
local fHeight = (sy / 600); local fontsize = fHeight * -- [[por el tamaño de fuente que quieras]] ; PD: 1280 x 600? en lugar de 600 la menor es 720.
-
Ya me di cuenta, mi error .
-
No es mas eficiente de este modo ? for i, player in ipairs( getElementsByType("player") ) do local otherplayer = getElementsByType("player")[i]; if ( player ~= otherplayer and estaCercaDe(a, b) ) then if ( not JugadoresCercanos[player] ) then JugadoresCercanos[player] = {}; end table.insert(JugadoresCercanos[player], players); end end
-
Ademas de que tiene un error en el xmlCreateChild
-
createElement getElementData
-
Todo lo que hizo fue sólo Lógica de programación.... @Gaberiel Buen aporte Gracias
-
Entiendo, Bueno gracias . Editado.
-
Esto es un array? variable = { [1] = "Hola", [2] = "Hello", [3] = "Bonjour" } Y lo demas son tablas comúnes?
-
Este tutorial te introducira al conocimiento en LUA aplicado en MTA, Espero que te sea util y comprensible a la hora de crear tus propios scripts. Comenzamos.
-
Es mejor hacerlo desde cero luego va a confundirse mas.
-
Tendrías que editar el scoreboard y luego que cuando un player entre a un team se seleccione algún tipo de clase.
-
Me gustó
-
Como tomar la velocidad maxima que llega un vehiculo
Enargy, replied to Destroyer.-'s topic in Scripting
Si. -
Como tomar la velocidad maxima que llega un vehiculo
Enargy, replied to Destroyer.-'s topic in Scripting
getVehicleHandling(vehicle).maxVelocity Luego la divides entre dos para tener la mitad de la máxima velocidad, si eso fue lo que quisiste referirte. -
(Sujeto a Modificaciones) dxCreateButton - dxLib
Enargy, replied to Bc#'s topic in Recursos y aportes
Posteo un progressBar de mi librería personal (no está terminada pero tengo algo). dxElements = {} function progressbar(x, y, w, h, progress, color) if (progress <= 0) then progress = 0 elseif (progress >= 100) then progress = 100 end local element = createElement("GL_Progressbar") if not dxElements[element] then dxElements[element] = {x=x, y=y, w=w, h=h, progress=progress, color=color} end return element end addEventHandler("onClientRender", root, function() for _, v in ipairs(getElementChildren(getResourceDynamicElementRoot(getThisResource()))) do if v and dxElements[v] then local elementType = getElementType(v) --- BARRA DE PROGRESO; if elementType == "GL_Progressbar" then local curprogress local x, y, w, h, progress, color = dxElements[v].x, dxElements[v].y, dxElements[v].w, dxElements[v].h, dxElements[v].progress, dxElements[v].color curprogress = w * (progress/100) if (progress < 1) then curprogress = 4 end dxDrawRectangle(x, y, w, h, tocolor(10, 10, 10, 100), false) dxDrawRectangle(x+2, y+2, w-4, h-4, tocolor(100, 100, 100, 150), false) dxDrawRectangle(x+2, y+2, curprogress-4, h-4, color, false) end end end end) function dxGetProgressBar(elem) if getElementType(elem) ~= "GL_ProgressBar" then return nil end if dxElements[elem] ~= nil then return tonumber(dxElements[elem].progress) end end function dxSetProgressBar(elem, numb) if getElementType(elem) ~= "GL_ProgressBar" then return nil end if dxElements[elem] ~= nil then dxElements[elem].progress = numb end end Sintaxis · progressbar(int x, int y, int width, int height, int progress, func tocolor ) · dxGetProgressBar(element) -
Eso dependería de tu desempeño en trabajar en el sitio donde va a estar basado, Liberty City puede ser uno de los lugares que hacen al servidor "diferente a los demás". Para pensar en si lo quieres basar en esa ciudad tendrías que pensar primero en como vas a implementar los objetos al GTASA, hacer algo así va a requerir una cantidad de horas(incluso días ) descargando todos los objetos y como la comunidad Hispana es muy escasa en los roleplays será un poco complicado, Estar esperando horas para "checar como es el servidor" y si no les parece bien se van a ir, desperdiciando tiempo en algo que no es a su gusto. Si tienes tanto deseo en hacerlo en Liberty City o algún lugar que no tenga que ver en el mapa del SA toma en cuenta lo que te dije arriba. En cuanto mi opinión yo diría que San Fierro es un lugar donde ningún roleplay hispano o ingles se haya centrado en esa ciudad, por lo que sé hasta ahora.
-
Postea la función getWeaponObjectID.
-
local accountname = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Owner" ) ) then --- Se supone que coloques lo que la función vaya hacer dentro del if/end. end
-
El gang_system de Castillo usa elementData. tienes que hacer la comprobación con getElementData.
-
local playerTeam = getPlayerTeam ( source ) local Clann = getTeamName ( playerTeam ) if ( Clann == "DevilSoldiers" ) then
-
guiGridListSetSelectedItem ( SF, -1, -1) ???
-
outputChatBox("Mapa: "..mapa.getName()) No entendí por que la columna es una función, Debería quedarte outputChatBox("Mapa: "..mapa.getName)
-
Yo he visto en algunos metas que tienen en el atributo "shared", es decir, Compartido. Podrias intentar implementarlo y ver si hace algún efecto, nunca lo he intentado pero tengo curiosidad.