Jump to content

BorderLine

Members
  • Posts

    1,027
  • Joined

  • Last visited

Posts posted by BorderLine

  1. @Solidsnake14: Remove "not" from "if", else it will use godmode with guest or without admin.

    why?

    :S

    i dont understand, if the player isnt adm so godmode = false

    but with that code, if player is adm godmode = false

    can only godmode =falde only for guest players?

    or mustbe like this? with admins and guests

  2. Hi again

    I was mading this script. Is about enable and dissable godmode when you enter to radar area

    My server have godmode for all players.

    but i want make something with radar areas. I mean when player join to radar area, the god mode mustbe disabled.

    and when the playear leave the area, god mode enabled.

    I have this but i dont know how complete the leavezone

    Serverside

      
    safecol = createColCuboid ( 732, -2577, 0, 120, 150, 40 ) 
    safeZoneRadar = createRadarArea ( 732, -2577, 120, 150, 0, 0, 0, 200 ) 
    setElementData (safeZoneRadar, "zombieProof", true) 
      
    function enterZone(hitPlayer,thePlayer) 
    local account = getPlayerAccount(hitPlayer) 
     if not isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Admin' ) ) then 
    triggerClientEvent ("godmode",getLocalPlayer(),godmode) 
    end 
    end 
    addEventHandler( "onColShapeHit", safecol, enterZone ) 
      
    function leaveZone(hitPlayer,thePlayer) 
    local account = getPlayerAccount(hitPlayer) 
    if not isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Admin ) ) then 
      -- here i dont know what i do 
    end 
    end 
    addEventHandler( "onColShapeLeave", safecol, leaveZone ) 
      
     
    

    clientside

      
    function godmode(attacker, weapon, bodypart) 
        cancelEvent() 
    end 
    addEventHandler("onClientPlayerDamage", getLocalPlayer(), godmode) 
      
    

    or if exist some way better than this.

    Thanks for your time and attention

  3. Look, leetme explain better

    i have a zombie server. this gamemode have a map file with cars arround all San andreas.

    I have a base for Admins and i want make this private cars only for us.

    But when i active this resource. Nobody can enter to all cars in san andreas

    not only to car created in this scripts,

    and that map file and this scripts are in diferents resources

    i mean the map file with cars arround san andreas are in resource biohazard

    and this scripts its called privatecars

    i dont know if i explain.

  4.   
    model       = {} 
    x       = {} 
    y       = {} 
    z       = {} 
    rx      = {} 
    ry      = {} 
    rz      = {} 
    numberplate     = {} 
      
    paintjob    = {} 
      
    temp            = {} 
    vehicle     = {} 
      
    function loadup(startedRecource) 
        vehicles = xmlLoadFile ( "vehicles.xml" ) 
        count = xmlNodeGetChildren(vehicles) 
      
            for i=1,#count do       
            local vehicle = xmlFindChild ( vehicles, "vehicle", i-1 ) 
            local attributes = xmlNodeGetAttributes ( vehicle ) 
            for name,value in pairs ( attributes ) do 
                    temp["" .. name .. ""] = value 
            end 
              
            x[i]         = temp["posX"] 
            y[i]         = temp["posY"] 
            z[i]         = temp["posZ"] 
            rx[i]        = temp["rotX"] 
            ry[i]        = temp["rotY"] 
            rz[i]        = temp["rotZ"] 
            numberplate[i]   = temp["plate"] 
      
            paintjob[i]      = temp["paintjob"] 
      
            model[i]     = temp["model"] 
      
            vehicle = createVehicle ( model[i], x[i], y[i], z[i], rx[i], ry[i], rz[i], numberplate[i]) 
    setVehicleHeadLightColor (vehicle, 0, 0, 255) 
    setVehicleColor ( vehicle, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ) 
    end 
        xmlUnloadFile ( vehicles ) 
    end 
      
    function checkowner (player,seat,jacked) 
        local account = getPlayerAccount( player) 
        if (seat == 0 and not isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Admin' ))) then 
            outputChatBox ( "Car designed for admins", player, 200, 0, 0 ) 
            cancelEvent() 
        end 
    end 
      
    addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), loadup ) 
    addEventHandler ( "onVehicleStartEnter", getRootElement(), checkowner) 
      
    

    just i remove some lines

    vehicle.xml

      
    
        "3" model="497" plate="Yakuza" interior="0" dimension="0"  posX="830.70001220703" posY="-2598.3000488281" posZ="15.5" rotX="0" rotY="0" rotZ="0">
      
    

  5. hey JR10 and how i can change for be uused only by admins?

    somethingl like this?

      
    function checkowner (player,seat,jacked) 
    local account = getPlayerAccount( player) 
    if isObjectInACLGroup( 'user.'..getAccountName( player ), aclGetGroup( 'Admin' ))  and seat == 0 then 
    outputChatBox ( "You cannot drive this vehicle as it belongs to Admins ", player, 200, 0, 0 ) 
    cancelEvent() 
    end 
    end 
      
    

  6. Hi everyone

    well lastnight i was mading a shader for cars

    change the vehicle.txd

    i was reading some post and one guy say download the moonshader

    and aply the world texture

    so i did this

    but dont work :S the textures showing in others side

    i mean, i put other lights

    and when i start the shader, the light showing in the body of car

    chek this

    mtascreen20120129133747.png

    mtascreen20120129133740.png

    mtascreen20120129133704.png

    mtascreen20120129133635.png

    this is the shader

      
    texture myTex; 
    texture myTex2; 
    texture myTex3; 
    texture myTex4; 
    texture myTex5; 
    texture myTex6; 
    technique moon { 
      pass P0 { 
        Texture[0] = myTex;   
        Texture[1] = myTex2; 
        Texture[2] = myTex3; 
        Texture[3] = myTex4; 
        Texture[4] = myTex5; 
        Texture[5] = myTex6; 
      } 
    } 
      
    

    and the script

      
    addEventHandler("onClientResourceStart", resourceRoot, function() 
      local moon = dxCreateShader("shaders/rendervehicle.fx") 
      if moon then 
        dxSetShaderValue(moon, "myTex", dxCreateTexture("render/vehiclelightson128.png")) 
        engineApplyShaderToWorldTexture(moon, "vehiclelightson128") 
        dxSetShaderValue(moon, "myTex2", dxCreateTexture("render/vehiclelights128.png")) 
        engineApplyShaderToWorldTexture(moon, "vehiclelights128") 
        dxSetShaderValue(moon, "myTex3", dxCreateTexture("render/vehicleshatter128.png")) 
        engineApplyShaderToWorldTexture(moon, "vehicleshatter128") 
        dxSetShaderValue(moon, "myTex4", dxCreateTexture("render/vehicletyres128.png")) 
        engineApplyShaderToWorldTexture(moon, "vehicletyres128") 
        dxSetShaderValue(moon, "myTex5", dxCreateTexture("render/vehiclegrunge256.png")) 
        engineApplyShaderToWorldTexture(moon, "vehiclegrunge256") 
        dxSetShaderValue(moon, "myTex6", dxCreateTexture("render/vehiclegeneric256.png")) 
        engineApplyShaderToWorldTexture(moon, "vehiclegeneric256") 
      end 
    end) 
      
    

    both client side

    if someone know about shaders, can helpme please :)

    thanks a loot

    and thanks for your atention

  7. Hi forum

    well i was trying to make a healthbar with teamcolor

    i try this but the healthbar is black

      
                        local health 
                local r, g, b = getTeamColor( player ) 
                        health = getElementHealth ( player ) 
                        health = math.max(health, 0)/100 
        dxDrawImageSection(drawX, drawY, width, height, math.floor(256 - 256 * (health)), 0, 256, 16, "images/h1.png", 0, 0, 0, tocolor(r, g, b, 200)) 
      
    

    thanks so much for your atention

  8. Hi forum :)

    Well i was trying to make this script

    this is about respawn my own car with a command, but just i want do this command, no other players

    so i did this

      
    function yakuza() 
        local account = getPlayerAccount ( thePlayer ) 
    if account == "yakuza" then 
            outputChatBox ( "You cant make this use", thePlayer, 255, 200, 0 ) 
    else 
    respawnVehicle ( vehicle1 ) 
        end 
    end 
    addCommandHandler("respawnmycar", yakuza) 
      
    

    its a server side

    thx

  9. and how you can put outputChatBox before to respawn to warnnin about this respawn

    i mean, if some player leave the car for kill or do something and while he is walking he will loose his car..

  10. hi all :)

    someone know if in the comunity exist son script to respawn vehicle to initial point after to destroy car??

    if someone know it..

    thanks so muchs..

    have a nice day :)

  11. LOL

    DEJA DE USAR TUS JODIDOS EMOTICONES DENTRO DEL CHISTE!!! -_-

    cual es el problema en que los use?

    no es lo mismo que tu uses las caps??

    o no me digas que dentro de las reglas del foro estan no usar los emoticones?

    Y en cuanto al chiste.. al menos se me movio un musculo de la cara jaja

  12. aqui va otro..

    una señora estaba dando a luz en el hospital, y en medio del parto ella se quedo inconciente.

    Cuando desperto miro hacia todos lados buscando su bebe y no estaba. Desesperada empezo a caminar por los pasillos del hospital buscando a su preciado hijo.

    Cuando al final del pasillo, por medio de una ventana, dentro de una sala, esta el doctor con su bebe tomandolo de los pies y tirandolo hacia todos lados, golpeandole, pegandole contra la pared. Y la señora se fue corriendo, entra a la sala y le dise al doc

    -Doctor mi bebeeeeee. Que esta haciendoooo????????!!!!!!!

    y el doctor le responde

    -jajaaaaaaaaa te lo creiste!. Nacio muerta.-

    ese fue mi chiste cruel, mas o menos fome pero igual jaja

×
×
  • Create New...