Sign in to follow this  
nwmafia

How to add someone into a Team?

Recommended Posts

Hello, i'm making a server, and would like to know how to add someone to a team?, what cmd do i use?

Share this post


Link to post
Re: How to add someone into a Team?

by rolling11 on Sun Jul 15, 2012 6:53 am

Ninguem wrote:

on scripting you should post your topic here http://forum.multitheftauto.com/viewfor ... 9db8f5be3e

you can determine the command.

you could help him instead and stop being a :~

My thoughts exactly rolling11.

Share this post


Link to post
createTeam("Criminal", 255,255,255)  
  
function setTeam() 
team = getTeamFromName("Criminal") 
setPlayerTeam(source, team) 
end 
addCommandHandler("setteam", setTeam) 

-- could be wrong, been off from scripting for about 2 months now.

Share this post


Link to post

Topic moved to "Scripting".

@Xeno: You forgot to define 'source'.

theTeam = createTeam ( "Criminal", 255, 255, 255 ) 
  
function setTeam ( thePlayer ) 
setPlayerTeam ( thePlayer, theTeam ) 
end 
addCommandHandler ( "setteam", setTeam ) 

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.