Jump to content

AUTO TEAMS


SuleymanM

Recommended Posts

Posted

Hi

Today i download autoteams (admin-donators) .

How Modify Admin in one team to contains all groups (Moderator/Supermoderator/Admin) and Team names is Super Pro Race Team ?

  • 2 weeks later...
Posted
Hi

Today i download autoteams (admin-donators) .

How Modify Admin in one team to contains all groups (Moderator/Supermoderator/Admin) and Team names is Super Pro Race Team ?

Could you either post your script here, or post a link to that resource?

Posted
Donators = createTeam ( "Donators", 255, 255, 0 ) 
Moderators = createTeam ( "Moderators", 0, 255, 0 ) 
SuperModerators = createTeam ( "SuperModerators", 0, 255, 255 ) 
Admins = createTeam ( "Admins", 255, 0, 0 ) 
  
addEventHandler("onPlayerLogin",root, 
function () 
   if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then 
   setPlayerTeam(source, Moderators or getTeamFromName("Moderators")) 
   elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerators")) then 
   setPlayerTeam(source, SuperModerators or getTeamFromName("SuperModerators")) 
   elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then 
   setPlayerTeam(source, Admins or getTeamFromName("Admins")) 
   elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Donators")) then 
   setPlayerTeam(source, Donators or getTeamFromName("Donators")) 
   end 
end 
) 

not tested

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