Jump to content

[SOLVED]


BeaTeX#

Recommended Posts

  
function setAdminColor(player) 
    local theAccount=getPlayerAccount(player) 
    if theAccount then 
    local accountName = getAccountName(theAccount) 
    if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then 
    -- Function Here . . .  Example : 
     setVehicleColor ( player, r, g, b , r2, g2, b2) -- u can set 4 color 
        end 
end 
end 
  
function LoginAdmin() 
setTimer(setAdminColor,200,1,source) 
end 
addEventHandler("onPlayerSpawn",getRootElement(),LoginAdmin) 
  

This is for Admin but u can copy this for supermod and mod type :

  
 if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "SuperModerator" ) ) then 
  

onPlayerSpawn is ok for this.

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