PicoPr0 Posted March 4, 2012 Posted March 4, 2012 I will make in TDMA a flashbang But I don't know how
Castillo Posted March 4, 2012 Posted March 4, 2012 By flash bang I guess you mean the grenade that makes your screen white, if so: You can use fadeCamera to fade the player camera to white and then back to normal.
Castillo Posted March 4, 2012 Posted March 4, 2012 I gave you the function, you have to learn how to do the rest. https://wiki.multitheftauto.com/wiki/Scr ... troduction
drk Posted March 4, 2012 Posted March 4, 2012 WTF What is it Evil-Cod3r?! What is Weapon and what is source? And forgot a end!
Al3grab Posted March 5, 2012 Posted March 5, 2012 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
Kenix Posted March 5, 2012 Posted March 5, 2012 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 )
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now