Darky Posted May 9, 2013 Share Posted May 9, 2013 How i cant stop a Timer , When the player die ? Link to comment
iPrestege Posted May 9, 2013 Share Posted May 9, 2013 What about : isTimer then killTimer Event "onPlayerWasted" Link to comment
Darky Posted May 9, 2013 Author Share Posted May 9, 2013 is correct ? function StopMyTime( ) if isTimer(MyTime) then killTimer ( MyTime) end end addEventHandler("onPlayerWasted", getLocalPlayer(), StopMyTime) Link to comment
iPrestege Posted May 9, 2013 Share Posted May 9, 2013 is correct ? function StopMyTime( ) if isTimer(MyTime) then killTimer ( MyTime) end end addEventHandler("onPlayerWasted", getLocalPlayer(), StopMyTime) No it's not the event : getLocalPlayer = client only and the event server side hmmm... you're timer client or server sided? Link to comment
Darky Posted May 9, 2013 Author Share Posted May 9, 2013 (edited) client side EDIT: i fixed it , was my fail, i remember i need to use onClientPlayerWasted thanks for your help Edited May 9, 2013 by Guest Link to comment
Guest Guest4401 Posted May 9, 2013 Share Posted May 9, 2013 Replace onPlayerWasted with onClientPlayerWasted. Link to comment
iPrestege Posted May 9, 2013 Share Posted May 9, 2013 client sideEDIT: i fixed it , was my fail, i remember i need to use onClientPlayerWasted thanks for your help You're welcome . 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