Hello, i made an gate for admin base and i want on top of the gate to be text i was trying something but no luck can somone help me with that...
local gate = createObject ( 980,214,1875.5,13.800000190735,0,0,0)
function opengate(player)
local accName = getAccountName ( getPlayerAccount ( player ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then
moveObject ( gate, 4000, 204,1876.0999755859,13.800000190735)
else
outputChatBox ("You are not admin! Go away from admin base")
my3dtext = dxDraw3DText ("Admin Base",213.76439,1875.05225,17.64063,2,"default",255,255,255,10)
end
end
addCommandHandler ("ogate", opengate)
function closegate (player)
local accName = getAccountName ( getPlayerAccount ( player ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then
moveObject ( gate, 4000, 214,1875.5,13.800000190735)
else
outputChatBox ("You are not admin! Go away from admin base")
end
end
addCommandHandler("cgate", closegate )