drifterCZE Posted March 19, 2011 Share Posted March 19, 2011 Hello, I can't found out why this code doesn't work (clientside). It doesn't write any errors. Where should be the problem? function onPlayerDiesFunc ( ) outputChatBox ( 'player died' ) end addEventHandler ( "onClientPedWasted", getRootElement ( ), onPlayerDiesFunc ) Thanx Link to comment
proracer Posted March 19, 2011 Share Posted March 19, 2011 function onPlayerDiesFunc ( ) outputChatBox ( 'player died' ) end addEventHandler ( "onClientPedWasted", getLocalPlayer ( ), onPlayerDiesFunc ) Link to comment
DiSaMe Posted March 19, 2011 Share Posted March 19, 2011 Unlike ped functions, ped events don't work for players. Use player events instead. Link to comment
drifterCZE Posted March 19, 2011 Author Share Posted March 19, 2011 hh... thanx chris it should be mentioned on wiki 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