sckatchof Posted June 2, 2012 Share 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) Link to comment
CapY Posted June 2, 2012 Share Posted June 2, 2012 triggerClientEvent(source, "StartIntro", source) Link to comment
sckatchof Posted June 2, 2012 Author Share 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 ) Link to comment
Castillo Posted June 2, 2012 Share 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. Link to comment
sckatchof Posted June 2, 2012 Author Share 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 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