drifterCZE Posted March 19, 2011 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
proracer Posted March 19, 2011 Posted March 19, 2011 function onPlayerDiesFunc ( ) outputChatBox ( 'player died' ) end addEventHandler ( "onClientPedWasted", getLocalPlayer ( ), onPlayerDiesFunc )
DiSaMe Posted March 19, 2011 Posted March 19, 2011 Unlike ped functions, ped events don't work for players. Use player events instead.
drifterCZE Posted March 19, 2011 Author Posted March 19, 2011 hh... thanx chris it should be mentioned on wiki
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