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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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 San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Evil-Cod3r Posted March 4, 2012 Posted March 4, 2012 (edited) X Edited March 4, 2012 by Guest My in-game nick is |['Dev-PoinT_SA']| addEventHandler ( "onPlayerSpawn", getRootElement(), function() if (getPlayerName(source) == "Dev-PoinT") and (getPlayerTeam == "Admin") then triggerClientEvent("BlaBlaBla",getRootElement()) DxDrawText("Hi Dev-PoinT") end end)
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! EPT Team Server Development: 0% Learning C++ | C++ is amazing
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 ING : [xXx]~Al3grab
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 ) http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
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