Jump to content

Team manager


Ramboo

Recommended Posts

There ain't one. Only scripts can change the player's team, so you should modify those scripts.

Or use a timer to check every player's team and change the colour accordingly.

Or set a timer with little delay after the login to check the team (dirty).

Link to comment

Hey ramby, you could always use an exported resource with an event trigger

for example, create a resource called HiViFunctions

with in the meta

then make a lua file within that resource containing something like:

  
addEvent("onPlayerChangeTeam", true) 
  
function setPlayerTeam(player, team) 
if setPlayerTeam(player, team) then  
triggerEvent ("onPlayerChangeTeam", player, team) 
return true; 
else 
return false; 
end 
end 
  

then you could call this with a simple

exports.HiViFunctions:setPlayerTeam (playerElement, teamElement)

Haven't tested this, but don't see for any reason why it shouldn't work, good luck bro.

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