Jump to content

TDMA


PicoPr0

Recommended Posts

just an example how this could be work , this should fade the player camera to white when he is damaged by grenade

  
addEventHandler("onPlayerDamage",root,function(attacker,weapon) 
if attacker and attacker ~= source then 
    if weapon and weapon == 16 then 
            fadeCamera(source,false,1,255,255,255) 
            setTimer(fadeCamera,1000,1,source,true,1) 
    end 
end 
end 
  

Link to comment
just an example how this could be work , this should fade the player camera to white when he is damaged by grenade
  
addEventHandler("onPlayerDamage",root,function(attacker,weapon) 
if attacker and attacker ~= source then 
    if weapon and weapon == 16 then 
            fadeCamera(source,false,1,255,255,255) 
            setTimer(fadeCamera,1000,1,source,true,1) 
    end 
end 
end 
  

Your code wrong.

Correct

  
addEventHandler( 'onPlayerDamage', root, 
    function( attacker,weapon ) 
        if attacker and attacker ~= source then 
            if weapon and weapon == 16 then 
                fadeCamera ( source, false, 1.0, 255, 255, 255 ) 
                setTimer( fadeCamera, 1000, 1, source, true, 1 ) 
            end 
        end 
    end 
) 
  

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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