Jump to content

Need help


Recommended Posts

hi guys i have problem when any Player joi server my intro script show for all players !

this is part of script :

server :

function OnPlayerjoinserver()    
    showPlayerHudComponent ( source, "clock", false ) 
    showPlayerHudComponent ( source, "radar", false ) 
    showChat ( source, false ) 
    triggerClientEvent("StartIntro", source) 
 end 
addEventHandler ( "onPlayerJoin", getRootElement(), OnPlayerjoinserver) 

Link to comment
triggerClientEvent(source, "StartIntro", source) 

thnx for help and this when any player die dxD show to all players :

addEventHandler( 'onClientPlayerWasted', root, 
    function( ) 
        dxshow = true 
        if isTimer( DxTime ) then 
            killTimer( DxTime ) 
        end     
        DxTime = setTimer( 
            function( ) 
                dxshow = false 
            end, 
        1000, 
        1 ) 
    end 
)   

Link to comment
addEventHandler ( 'onClientPlayerWasted', localPlayer, -- Instead of "root" we use "localPlayer" which is the player who died. 
    function ( ) 
        dxshow = true 
        if isTimer( DxTime ) then 
            killTimer( DxTime ) 
        end     
        DxTime = setTimer( 
            function( ) 
                dxshow = false 
            end, 
        1000, 
        1 ) 
    end 
)   

Read comment.

Link to comment
addEventHandler ( 'onClientPlayerWasted', localPlayer, -- Instead of "root" we use "localPlayer" which is the player who died. 
    function ( ) 
        dxshow = true 
        if isTimer( DxTime ) then 
            killTimer( DxTime ) 
        end     
        DxTime = setTimer( 
            function( ) 
                dxshow = false 
            end, 
        1000, 
        1 ) 
    end 
)   

Read comment.

thank you snake :D

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