Jump to content

Area only for VIPs


Karuzo

Recommended Posts

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
  
  
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

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...