Jump to content

(AYUDA)Como bajar el daño que hace un arma.


Recommended Posts

Posted

Hola a todos, me gustaria saber como hago que un arma en mi server haga menos daño como por ej la minigun hace mucho daño, como hago para que haga menos daño?

Posted

lo otro, nose que tan provechoso pueda ser, ni q contras tenga

[lua]function stopMinigunDamage ( attacker, weapon, bodypart )

if ( weapon == 38 )

cancelEvent()

setElementHealth(source, getElementHealth(source) -1 )

end

end

addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopMinigunDamage )[lua]

Posted
lo otro, nose que tan provechoso pueda ser, ni q contras tenga
function stopMinigunDamage ( attacker, weapon, bodypart ) 
    if ( weapon == 38 ) 
        cancelEvent()  
                setElementHealth(source, getElementHealth(source) -1 ) 
    end 
end 
addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopMinigunDamage ) 

Si lo que quieres es quitar daño a la minigun simplemente pon:

function stopMinigunDamage ( attacker, weapon, bodypart ) 
    if ( weapon == 38 ) 
        cancelEvent() 
                setElementHealth(source, getElementHealth(source)) --Modificacion aqui 
    end 
end --Copyright to BorderLine 
addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopMinigunDamage ) 

Si quieres que el daño del atacante le haga efecto "pretoriano" usa esta, Obviamente otra vez copyright y gracias a borderLine por la base del script

function stopMinigunDamage ( attacker, weapon, bodypart ) 
    if ( weapon == 38 ) 
        cancelEvent() 
                setElementHealth(source, getElementHealth(source)) 
                setElementHealth(attacker, getElementHealth(attacker) - 1) 
    end 
end 
addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopMinigunDamage ) 

Posted

Prueba con la teoria de Alex-Steel

--[[ 
NO ESTA TESTEADO 
]] 
function propSS () 
 setWeaponProperty("minigun","std","damage",0) 
 setWeaponProperty("minigun","poor","damage",0) 
 setWeaponProperty("minigun","pro","damage",0) 
end 
addEventHandler("onResourceStart",root,propSS) 
addEventHandler("onPlayerJoin",root,propSS) 

Posted
Prueba con la teoria de Alex-Steel
--[[ 
NO ESTA TESTEADO 
]] 
function propSS () 
 setWeaponProperty("minigun","std","damage",0) 
 setWeaponProperty("minigun","poor","damage",0) 
 setWeaponProperty("minigun","pro","damage",0) 
end 
addEventHandler("onResourceStart",root,propSS) 
addEventHandler("onPlayerJoin",root,propSS) 

Para que el "onPlayerJoin"?

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...