Jump to content

Problem of teams


matito6

Recommended Posts

Posted

Welcome.I have a script "team" and there are five teams and each has a different name, but when I go to the server that I have to assign to them, and I question whether you would do the same me to allocate the team, that is, I remember one adding and automatically added to by the team already?

It gives a link to the script: http://www.speedyshare.com/Yx7FG/team.rar

Thanks ;))

Posted

I really didn't understand you anything.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Post your script here.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

I gave a link and I would like to while he was being improved as I wrote would automatically add

function createTeamsOnStart () 
     createTeam ( "Server Owners", 255, 0, 0 ) 
     createTeam ( "Admins", 0, 0, 200 ) 
         createTeam ( "Moderators", 0, 255, 0 ) 
     createTeam ( "Members", 255, 255, 0 ) 
     createTeam ( "V.I.P", 100, 100, 100 ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), createTeamsOnStart  )  

Posted

Next time upload it to some other site, that one requests for register.

@Back on topic:

You can use the function:

getTeamFromName 

to get a team from it's name, and this function:

setPlayerTeam 

to set a player team.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

I'm not here to make things for you, I'm here to help you fix your problems.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

of you could do this:

function createTeamsOnStart () 
     so=createTeam ( "Server Owners", 255, 0, 0 ) 
     a=createTeam ( "Admins", 0, 0, 200 ) 
         m=createTeam ( "Moderators", 0, 255, 0 ) 
     mem=createTeam ( "Members", 255, 255, 0 ) 
     vip=createTeam ( "V.I.P", 100, 100, 100 ) 
end 
addEventHandler ( "onResourceStart", resourceRoot, createTeamsOnStart  )  
  
addEventHandler("onPlayerJoin",root,function() 
    setPlayerTeam(source,mem) 
end) 

My in-game name: Jaysds1

Retired CMG Scripter

World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode

Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/

 

sE5Qm.png

TiV3C.png

img.php?id=0&text=Lua%20Scripter

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