BeaTeX# Posted February 13, 2012 Share Posted February 13, 2012 (edited) //////////// Edited February 13, 2012 by Guest Link to comment
unknooooown Posted February 13, 2012 Share Posted February 13, 2012 https://wiki.multitheftauto.com/wiki/Set ... LightState https://wiki.multitheftauto.com/wiki/Set ... rideLights https://wiki.multitheftauto.com/wiki/Set ... LightColor Link to comment
HunT Posted February 13, 2012 Share Posted February 13, 2012 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
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