function marker2 (hitPlayer, matchingDimension,thePlayer )
local belpmarker = getElementData(getLocalPlayer(),\"jobname1\")
local benvoltam = getElementData(getLocalPlayer(),\"voltam\")
if hitPlayer == localPlayer then
if belpmarker == \"Uttisztito\" then
if benvoltam == \"yes\" then
outputChatBox(\"debug\")
givePlayerMoney ( localPlayer, 1200 )
triggerServerEvent(\"takarit\", getLocalPlayer(), thePlayer)
setElementData(getLocalPlayer(),\"voltam\",\"no\",false)
else
outputChatBox(\"nem!\")
end
end
end
end
addEventHandler ( \"onClientMarkerHit\", gepmark, marker2 )
A benne lévő debug üzenet megy,de nem adja a pénzt. Miért?