Jump to content

Arsilex

Members
  • Posts

    1,410
  • Joined

  • Last visited

Everything posted by Arsilex

  1. local spawnV = { { 255.52216, 255.324234, 0 }, { 255.52216, 255.324234, 0 }, { 255.52216, 255.324234, 0 } } local spawnL = { { 255.52216, 255.324234, 0 }, { 255.52216, 255.324234, 0 }, { 255.52216, 255.324234, 0 } } local spawnF = { { 255.52216, 255.324234, 0 }, { 255.52216, 255.324234, 0 }, { 255.52216, 255.324234, 0 } } addEventHandler( "onPlayerWasted", getRootElement(), function() local x, y, z = getElementPosition ( source ) local city = getZoneName ( x, y, z, true ) if city == "Las Vegas" then spawnPlayer ( source, unpack ( spawnV[ math.random ( #spawnV ) ] ) ) elseif city == "San Fierro" spawnPlayer ( source, unpack ( spawnF[ math.random ( #spawnF ) ] ) ) else spawnPlayer ( source, unpack ( spawnL[ math.random ( #spawnL ) ] ) ) end end ) no eh comprobado pero creo que con esto sirve para la primera pregunta.
  2. local sWidth,sHeight = guiGetScreenSize() function dxDrawGifImage ( x, y, w, h, path, iStart, iType, effectSpeed ) local gifElement = createElement ( "dx-gif" ) if ( gifElement ) then setElementData ( gifElement, "gifData", { x = x, y = y, w = w, h = h, imgPath = path, startID = iStart, imgID = iStart, imgType = iType, speed = effectSpeed, tick = getTickCount ( ) } ) return gifElement else return false end end addEventHandler ( "onClientRender", root, function ( ) local currentTick = getTickCount ( ) for index, gif in ipairs ( getElementsByType ( "dx-gif" ) ) do local gifData = getElementData ( gif, "gifData" ) if ( gifData ) then if ( currentTick - gifData.tick >= gifData.speed ) then gifData.tick = currentTick gifData.imgID = ( gifData.imgID + 1 ) if ( fileExists ( gifData.imgPath .."".. gifData.imgID ..".".. gifData.imgType ) ) then gifData.imgID = gifData.imgID setElementData ( gif, "gifData", gifData ) else gifData.imgID = gifData.startID setElementData ( gif, "gifData", gifData ) end end dxDrawImage ( gifData.x, gifData.y, gifData.w, gifData.h, gifData.imgPath .."".. gifData.imgID ..".".. gifData.imgType ) end end end ) gif = dxDrawGifImage ( (1014/1366)*sWidth, (677/768)*sHeight, (261/1366)*sWidth, (42/768)*sHeight, "images/img", 0, "png", 160 ) gif = dxDrawGifImage ( (1014/1366)*sWidth, (677/768)*sHeight, (261/1366)*sWidth, (42/768)*sHeight, "images/img", 1, "png", 160 ) gif = dxDrawGifImage ( (1014/1366)*sWidth, (677/768)*sHeight, (261/1366)*sWidth, (42/768)*sHeight, "images/img", 2, "png", 160 ) gif = dxDrawGifImage ( (1014/1366)*sWidth, (677/768)*sHeight, (261/1366)*sWidth, (42/768)*sHeight, "images/img", 3, "png", 160 ) donde ponga (..../1366) cambias el 1366 y el 768 por la resolucion de la pantalla en la que creaste el dx
  3. Arsilex

    Hud

    que tiene que ver quitar el radar si el lo que quiere es activarlo y quitar lo demas... showPlayerHudComponent ( "armour", false ) showPlayerHudComponent ( "health", false ) showPlayerHudComponent ( "money", false ) showPlayerHudComponent ( "clock", false ) showPlayerHudComponent ( "weapon", false ) showPlayerHudComponent ( "ammo", false) showPlayerHudComponent ( "money", false ) showPlayerHudComponent ( "wanted", false ) showPlayerHudComponent ( "radar", true )
  4. no me refiero a que cuando yo te mato a ti por ejemplo desde un coche con un misil o desde un avion hunter por ejemplo que me de dinero.
  5. Hola me gustaria saber como hacer para que cuando un player mate a otro player que esta en un coche se cuenta como muerte de attacker no de explosion e.e
  6. Arsilex

    dx anim

    how i can create move anim for dx? or send library
  7. Arsilex

    Libereria

    ok gracias de todas formas
  8. Arsilex

    Libereria

    Existe libreria de animaciones para dx?
  9. estas seguro que el ID de tu interior es el 3?
  10. y es posible alemnos quitarlo el color osea quitarle el hex para que solo salga el name
  11. Es posible poner colores hex a un guiCreateGridList ?
  12. Arsilex

    string

    Como puedo convertir un string a un argumento para que funcione por ejemplo en playerMoney = getPlayerName(player) Moneyy = getElementData(playerMoney,"Money")
  13. 2087.47266 = X -1603.11841 = Y 13.38061 = Z 92.179473876953 = Rotacion 163 = Modelo del skin 0 = INterior 0 = DImesion element spawnBot ( float x, float y, float z, int rotation = 0, [ int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil, int weapon = 0, string theMode = "hunting", element theModesubject = nil ] )
  14. estas seguro que tu archivo lua no se llama interiores.lua.lua porque hay gente que lo pone asi pensando el sistema operativo lo cambia por ti a ese tipo de archivo
  15. creando un script usa esto SetGameSpeed
  16. si pero no seria igual es mucho lio
  17. si es que me abia equvicado es que creia que salia la informacion del elemento no el name y era el name (es que son iguales ) Gracias Solidsnake14
  18. el exp_system by castillo tiene autoguardado para que quieres otro guardado?
  19. pero esto no me da el name del elemento me da el valor ._.
  20. lo que tienes que hacer es añadir mas levels alli
  21. tengo un panel con rank money etc y el panel esta complimido por el viejo scripter del server lo que necesito es sacar el setElementData que el tiene puedo para el money para usarlo en un scoreboard que tengo que no es el dx necesito el setElemenData
×
×
  • Create New...