Jump to content

Team Zone Help


Recommended Posts

Hello guys how can I edit that script?

I want to make that Player with team "Staff" can enter this zone not AclGroup "Admin"

Help please!

col = createColCuboid ( 95.974617004395, 1751.3895263672, 17.640625, 255, 255, 255 ) 
zone = createRadarArea ( 95.974617004395, 1751.3895263672, 255, 255, 255, 0, 0, 170 ) 
setElementData (zone, "zombieProof", true) 
function enterAdmin(hitElement,matchingDimension) 
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(hitElement)),aclGetGroup("Admin")) then 
    toggleControl (hitElement, "fire", true ) 
    toggleControl (hitElement, "aim_weapon", true) 
    toggleControl (hitElement, "vehicle_fire", true) 
    outputChatBox("Welcome to Admin area", hitElement, 0, 170, 255) 
    outputChatBox("Access denied", hitElement, 255, 0, 0) 
         killPed (hitElement) 
addEventHandler( "onColShapeHit", col, enterAdmin ) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...