Hello, i been trying to get this admin only teleport to work. I'm a noob in scripting but heres what i tried but it wont work
door = createMarker (-699,973,12, "cylinder", 3,255, 0, 0)
function fun(hitElement)
if getElementType(hitElement)="player" then
name=getPlayerName(hitElement)
if isObjectInACLGroup("user.". .name, aclGetGroup ("Admin"))then
setElementPosition(,x,y,z)
elseif outputChatBox(hitElement, "Fag, this is for Admins only")
end
end
end
addEventHandler("onMarkerHit", door,fun)
i know the cordinates are x y z, ill change that later, my problem is is that it wont even create a marker