Jump to content

RekZ

Members
  • Posts

    330
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by RekZ

  1. es mas facil que agas tu propio spawn... editar ese spawn para lo que quieres es muy dificil , si no quieres cambiar de spawn te aconsejo que uses "un zona privada" por acl con la que solo pueden entrar a la misma los que estan en dicho acl. yo uso el spawn de 50p y uso tambien esas zonas que te digo para hacer clanes privados o spawns privados.

    te dejo las funciones por si te interesa..

      
    createColCuboid 
    createRadarArea  
      
    

  2. puedes kitar la funcion 'setElementHealth' del script de zombis , añadirle un godmode al AFK y crear una pequeña zona anti-zombis para que no spaneen alrededor con 'createRadarArea'

    o en otro caso mas facil tambien puedes hacer ke al usar el afk mueva al player a otra dimension ( como info adicional en las otras dimensiones no salen zombis , solo en la dimension 0 que es la dimension que usa el gta o el mta normalmente para todo )

  3.         addCommandHandler("fire", 
            function(source) 
                   if (isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup ( "Admin" ) ) ) then 
                                  setPedOnFire(source, true) 
                   else 
                           outputChatBox("Acceso denegado", source, 255, 0, 0, true) 
                   end 
            end ) 
    

  4. ¬¬ alexs .... no me gusta ke me pongas un coso delante del nombre xD ... por si no leiste dice ke no save nada de .lua , si no save nada como dice el como ba a empezar ._. no es por joder , ni juzgar a una persona , pero el lo dice "no se nada de lua" -.- antes de empezar a hacer algo uno tiene por lo menos que saver aunque sea un poco , supongo que sabra algo... pero bue piensen lo que quieran lo que hace es pedir el resource.

    ya Fin .-. no voy a discutir algo logico...

  5. e.e sorry quiero que me digais que abria que usar... no que lo agais.. me interesa hacerlo ami no que me lo agan , y por la razon de que cualquier scrip posteado aka ya se pierde de mi control y eso no me interesa

  6. quiero hacer y saver si puedo hacer que mi servidor se descarge desde un disco duro virtual o alguna web como mediafire o otra parecia , segun creo en en el apartado de mtaserver.conf

    pero el problema es que no se donde lo puedo subir , ni de que forma , tendria que subir todos los scrips ? o solo los clients ? en este caso solo me interesa para subir los skins

    gracias por su tiempo...

  7. getVehicleOccupant 
    setVehicleDamageProof 
    

    supongo que seria asi , averiguas si el vehivulo esta ocupado ( mira como funciona antes de hacerlo ) y le añade para que no se rompa nose si es con esas funciones.. o falta algunas mas

  8. pues lo siento pero lo que tu dices no funciona :/

    EDIT:

    Ya lo aregle , te faltaron poner algunos argumentos

                            dxDrawText(pname,x,y,x+nameLength,y+fontHeight,tocolor(r,g,b,textAlpha),textScale,textFont,"left","top",false,false,false,true,false) 
    

  9. lo siento Alexs pero no lo entendi lo que explicaste ? :S reemplazo el dxdrawtext por eso ? tan largo y le cambio el codigo a que ? al color de los names ?

  10. se , claro es el de la comunidad

    -- Settings variables 
    local textFont       = "default-bold"           -- The font of the tag text 
    local textScale      = 1                        -- The scale of the tag text 
    local heightPadding  = 1                        -- The amount of pixels the tag should be extended on either side of the vertical axis 
    local widthPadding   = 1                        -- The amount of pixels the tag should be extended on either side of the horizontal axis 
    local xOffset        = 8                        -- Distance between the player blip and the tag 
    local minAlpha       = 10                       -- If blip alpha falls below this, the tag won't the shown 
    local textAlpha      = 255 
    local rectangleColor = tocolor(0,0,0,230) 
      
    -- Other variables 
    local floor          = math.floor 
    local w,h            = guiGetScreenSize() 
      
    local function drawMapStuff() 
        if isPlayerMapVisible() then 
             
            local sx,sy,ex,ey     = getPlayerMapBoundingBox()                           -- Map positions 
            local mw,mh           = ex-sx,sy-ey                                         -- Map width/height 
            local cx,cy           = (sx+ex)/2,(sy+ey)/2                                 -- Center position of the map 
            local ppuX,ppuY       = mw/6000,mh/6000                                     -- Pixels per unit 
            local fontHeight      = dxGetFontHeight(textScale,textFont)                 -- Height of the specified font 
            local yOffset         = fontHeight/2                                        -- How much pixels the tag should be offsetted at 
            local blips           = getElementsByType("blip") 
             
            for k,v in ipairs(blips) do 
                 
                local attached=getElementAttachedTo(v) 
                 
                if isElement(attached) and getElementType(attached)=="player" then 
                     
                    local px,py      = getElementPosition(attached)                     -- Player's position 
                    local x          = floor(cx+px*ppuX+xOffset)                        -- X for the nametag 
                    local y          = floor(cy+py*ppuY-yOffset)                        -- Y for the nametag 
                    local pname      = getPlayerName(attached)                          -- Player name 
                    local nameLength = dxGetTextWidth(pname,textScale,textFont)         -- Width of the playername 
                    local r,g,b      = getPlayerNametagColor(attached)                  -- Player's nametag color 
                    local _,_,_,a    = getBlipColor(v)                                  -- Blip alpha 
                     
                    if a>minAlpha then 
                         
                        dxDrawRectangle(x-widthPadding,y+heightPadding,nameLength+widthPadding*2,fontHeight-heightPadding*2,rectangleColor,false) 
                        dxDrawText(pname,x,y,x+nameLength,y+fontHeight,tocolor(r,g,b,textAlpha),textScale,textFont,"left","top",false,false,false) 
                         
                    end 
                end 
            end 
        end 
    end 
    addEventHandler("onClientRender",getRootElement(),drawMapStuff) 
    

×
×
  • Create New...