PicoPr0 Posted March 4, 2012 Share Posted March 4, 2012 I will make in TDMA a flashbang But I don't know how Link to comment
Castillo Posted March 4, 2012 Share 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. Link to comment
PicoPr0 Posted March 4, 2012 Author Share Posted March 4, 2012 Can u please give me a start or script Link to comment
Castillo Posted March 4, 2012 Share 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 Link to comment
Evil-Cod3r Posted March 4, 2012 Share Posted March 4, 2012 (edited) X Edited March 4, 2012 by Guest Link to comment
drk Posted March 4, 2012 Share Posted March 4, 2012 WTF What is it Evil-Cod3r?! What is Weapon and what is source? And forgot a end! Link to comment
Al3grab Posted March 5, 2012 Share 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 Link to comment
Kenix Posted March 5, 2012 Share 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 ) Link to comment
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