Jump to content

2 question


Zokan

Recommended Posts

function hit ( pla ) 
    if (getElementType ( pla ) ~= "player") then return end 
        if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then 
            outputChatBox ( "Welcome, "..getPlayerName(pla).."!", pla, 0, 150, 0 ) 
            givePedJetPack( pla ) 
        else 
            setElementData ( pla, "inRestrictedArea", "true" ) 
            triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) 
            if ( doesPedHaveJetPack ( pla ) ) then 
                removePedJetPack ( pla ) 
            end 
            outputChatBox ( "***Admin Area***", pla, 255, 0, 0 ) 
            outputChatBox ( "* "..getPlayerName(pla).." has entered the Admin Area!", g_root, 255, 0, 0 )   
            outputChatBox ( "* "..getPlayerName(pla).." please leave the Admin Area!", pla, 255, 0, 0 )   
    end 
end 
addEventHandler ( "onColShapeHit", g_base_col, hit ) 

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