Mike269 Posted July 8, 2014 Share Posted July 8, 2014 function onPlayerWasted ( test ) outputChatBox ( "FF0000You gonna die",getRootElement(),255,255,255, true )end end end addEventHandler ( "onPlayerWasted", outputChatBox ( "FF0000You gonna die",getRootElement(),255,255,255, true ) end ) Can anyone tell me whats wrong here? thanks Link to comment
Max+ Posted July 8, 2014 Share Posted July 8, 2014 you Can't detect if player gonna die , and what do you want to do ? if you want if he typed command 'kill' and kill himself then Event : 'onPlayerCommand killPed Link to comment
Mike269 Posted July 8, 2014 Author Share Posted July 8, 2014 No I want when I die, there will be in chatbox "You gonna die" Link to comment
xXMADEXx Posted July 8, 2014 Share Posted July 8, 2014 function onPlayerWasted ( test ) outputChatBox ( "FF0000You gonna die", source,255,255,255, true ) end addEventHandler ( "onPlayerWasted", root, onPlayerWasted ) Link to comment
Max+ Posted July 8, 2014 Share Posted July 8, 2014 function onPlayerWasted ( test ) outputChatBox ( "FF0000You gonna die", source,255,255,255, true ) end addEventHandler ( "onPlayerWasted", root, onPlayerWasted ) and what is ( test ) ? Link to comment
Mega9 Posted July 8, 2014 Share Posted July 8, 2014 @Max+ : It should represent totalAmmo integer, but I suppose he forgot to remove it. 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