marty000123 Posted December 15, 2016 Share Posted December 15, 2016 if killstreaks[source] then outputChatBox (getPlayerName(attacker).." stopped the "..killstreaks[source] .." killing-streak of "..getPlayerName(source).."!",getRootElement (),player,255,0,0) end end end addEventHandler ('onPlayerWasted', root, onPedWastedHandler) addEvent("testEvent", false) addEventHandler( "testEvent", root, onPedWastedHandler) This message doesnt appear to everyone, and I have no idea why. Link to comment
Mega9 Posted December 15, 2016 Share Posted December 15, 2016 if killstreaks[source] then outputChatBox (getPlayerName(attacker).." stopped the "..killstreaks[source] .." killing-streak of "..getPlayerName(source).."!",getRootElement(),255,0,0) end end end addEventHandler ('onPlayerWasted', root, onPedWastedHandler) addEvent("testEvent", false) addEventHandler( "testEvent", root, onPedWastedHandler) That is because you set your visibleTo element to both, root and player, but only one can be used, therefore I removed player and it should show up to everyone now. Link to comment
marty000123 Posted December 15, 2016 Author Share Posted December 15, 2016 Thanks, got it now! 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