Hi Guys ,,
this is my code :
marker1 = createMarker(-2319.1865234375, -1837.935546875, 499.82629394531 , "cylinder" , 1, 0, 0, 204, 200)
function markers(thePlayer)
if source == marker1 then
local x,y,z = getElementPosition(thePlayer)
createObject(1655,x+20,y,z)
outputChatBox("Object Created !")
end
end
addEventHandler("onClientMarkerHit",getRootElement(),markers)
Code works fine!
But I have a problem,
When i hit the marker
object and the message shows to all players!
Why?
This is strange
script is a client
Please Is there a solution?
I am very puzzled, because this client, why show all the players?