WTF?! acl = getElementModel() lol?, i don't know what are you trying to do but this really fails.
If you want to check a acl then do this:
safecol = createColCuboid ( 100.16635131836, 1820.5823974609, 17.289850234985, 200, 150, 100 )
safeZoneRadar = createRadarArea ( 100.16635131836,1820.5823974609, 200, 150, 0, 255, 0, 120 )
function enterZone(hitPlayer,machingDimension)
local accountname = getAccountName(getPlayerAccount(hitPlayer))
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" )) then
toggleControl (hitPlayer, "fire", false )
toggleControl (hitPlayer, "aim_weapon", false)
toggleControl (hitPlayer, "vehicle_fire", false)
outputChatBox("Welcome, in moderator zone!", hitPlayer, 0, 255, 0)
else
killPed (hitPlayer)
end
end
addEventHandler( "onColShapeHit", safecol, enterZone )
function leaveZone(hitPlayer,machingDimension)
local accountname = getAccountName(getPlayerAccount(hitPlayer))
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" )) then
toggleControl (hitPlayer, "fire", true)
toggleControl (hitPlayer, "aim_weapon", true)
toggleControl (hitPlayer, "vehicle_fire", true)
outputChatBox("* WARNING: You left moderator zone!", hitPlayer, 255, 0, 0)
else
killPed (hitPlayer)
end
end
addEventHandler( "onColShapeLeave", safecol, leaveZone )
try it.
P.S: wrong section.