Jump to content

message doesnt appear


marty000123

Recommended Posts

 

      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
		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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...