Jump to content

TDMA


PicoPr0

Recommended Posts

Posted

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.

560x95_FFFFFF_FF9900_000000_000000.png

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

Posted (edited)

X

Edited 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)

Posted

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 xD

Posted

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

Posted
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.

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...