Karuzo Posted February 5, 2014 Share Posted February 5, 2014 Hey Guys, so i have a question, i created a greenzone with the greenzones script. Ok so i want that this area is only for Acl VIP group.. i want that if the Normal people hit the area will be spawned somewhere else. Hope you can help me Link to comment
Anubhav Posted February 5, 2014 Share Posted February 5, 2014 createRadarArea for greenZone i think that else idk. Link to comment
xeon17 Posted February 5, 2014 Share Posted February 5, 2014 You need to use : createColCuboid Extample : addEventHandler( 'onColShapeHit', pCuboid, function( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) if ( isObjectInACLGroup ( "user."..accName, aclGetGroup ( "VIP" ) ) else setElementPosition ( thePlayer, -260.60818481445, 2336.3356933594, 108.55751037598 ) end end its a little bugged , i wanted show you how works. Link to comment
Bzz335 Posted February 5, 2014 Share Posted February 5, 2014 x,y,z=0,0,0 --Coords here. function out(player) local accountName = getAccountName(getPlayerAccount(player)) if ( isObjectInACLGroup ( "user."..accountName, aclGetGroup ( "V.I.P" ) )) then outputChatBox("Welcome to the V.I.P base;",player,250,218,221) else outputChatBox("You aren't V.I.P;",player,255,0,0) setElementPosition(player,x,y,z) end end; addEventHandler("onColShapeHit",nameofcolshapehere,out) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now