Ulysses Stuff > Ulysses Release Archives

UTeam - Set teams based on usergroup.

<< < (16/52) > >>

Chironex:
No it will not work, viewing this file: http://code.garrysmod.com/?show=/garrysmod/lua/includes/modules/player_manager.lua#6
customs skins will not be detected.

So Fate, you need to edit UTeam:

In UTeam.lua, locate this line

--- Code: ---if v.model then timer.Simple( 0.1, ply.SetModel, ply, player_manager.TranslatePlayerModel( v.model ) ) end

--- End code ---
and replace it with:

--- Code: ---if v.model then timer.Simple( 0.1, ply.SetModel, ply, v.model ) end

--- End code ---

And now, in the UTeam config file, you will need to change all models to their real file names.

Ex:
Before:

--- Code: ---"model"    "super"

--- End code ---

After:

--- Code: ---"model"    "models/player/combine_super_soldier.mdl"

--- End code ---

(follow the link at the begining of this post, for a list of default player models.)
         
         

Typo Hui:
Does anybody know how to add more teams than 4, when I tried it didn't work. Thanks! :-[

JamminR:

--- Quote from: Typo Hui on March 16, 2008, 03:53:56 PM ---Does anybody know how to add more teams than 4, when I tried it didn't work. Thanks! :-[

--- End quote ---

What do you mean? I've seen Gman4President's server, and Beast Build server, with several different groups/teams in sui_scoreboard listings, and text color chat.
What isn't working? I just tried finding a limit on Google, and couldn't (but I didn't take more than a minute to search)
Keep the following in mind when you're trying to add;

--- Quote from: spbogie on January 13, 2007, 12:53:47 PM ---Notes:

* Usergroups can be set through Garry's default file (garrysmod/settings/users.txt), or through ULib/ULX.
* Groups take priority based on their order(1 is highest priority). Set your teams based on decending group level so users don't get put on a lower team. (ie. If admin is before superadmin, superadmins will end up on admin team instead of superadmin team)
* Use group "user" as your last team to catch everyone who wasn't put on another team.UTeam_readme.txt

--- Code: --- "teams"
{
"1" //Team index. Start at 1 and go up. Team priority lowest first.
{
"name" "Name" //Name of the team.
"group" "usergroup" //Usergroup required for the team. Works with garry's default and UCL.
"color" //The team's color
{
"r" "255" //Red value
"g" "100" //Green Value
"b" "0" //Blue Value
"a" "255" //Alpha Value
}
"hp" "500" //(*Optional*) Player's initial health.
"armor" "500" //(*Optional*) Player's initial armor.
"model" "gman" //(*Optional*) Player's model. (None if undefined, Kleiner if invalid) Valid models listed below
"plytable" //(*Optional*) Set values on the Player's table.
{ //Format is key:value

"1" "SprintSpeed:1000" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:500" //Set the player's walk speed (Def. 250)
}
}
}
[/quote]

--- End code ---

--- End quote ---

Typo Hui:
 ;D Thanks, I just got the program today and I know very little on ULX.
BTW: how do you make a person on your server higher ranked/ admin. Not sure how to do that.

JamminR:
Re:Uteam - You're welcome
Re:admin - please read the ulx_readme.txt ... if/when that doesn't answer your question, please explore this forum a little better... We have a FAQ (FREQUENTLY ASKED QUESTIONS) forum that I'm sure will answer any new questions you have.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version