sckatchof Posted June 2, 2012 Posted June 2, 2012 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)
sckatchof Posted June 2, 2012 Author Posted June 2, 2012 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 )
Castillo Posted June 2, 2012 Posted June 2, 2012 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.
sckatchof Posted June 2, 2012 Author Posted June 2, 2012 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
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