Jump to content

No Skin kill


PhantomDamn

Recommended Posts

Posted

Con mismo skin te refieres al modelo que esta usando o otra cosa?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

no matar a alguien con el mismo skin ( id de personaje ) digamos que ambos tenemos el skin 29 y no nos causamos damage

|El Sabio no tiene intereses propios, hace suyos los intereses del pueblo|

(scripting= -20%)

n-560x95_2B9E08_0AFA4E_000000_030000.png

Posted
  
function noskink () 
local jugs = getElementsByType ( "player" ) 
for theKey,thePlayer in ipairs( jugs ) do 
players = getElementModel( source ) 
jugads = getElementModel( thePlayer ) 
if players == jugads then 
       cancelEvent() 
end 
end 
addEventHandler("onClientPlayerDamage", root, noskink) 
  

Creo que eso te servira.

Posted

Eso no tiene sentido.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
function noskink (player) 
local player = getLocalPlayer 
    if ( getElementModel ( player ) ) and ( getElementModel ( getRootElement )) then 
        cancelEvent 
    end 
end 
addEventHandler("onClientPlayerDamage", getRootElement, noskink) 

Posted

Eso tampoco esta bien.

Aca tienen el script:

addEventHandler ( "onClientPlayerDamage", localPlayer, 
    function ( attacker ) 
        if ( attacker and getElementType ( attacker ) == "player" ) then 
            if ( getElementModel ( source ) == getElementModel ( attacker ) ) then 
                cancelEvent ( ) 
            end 
        end 
    end 
) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

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