Ulysses Stuff > Ulysses Release Archives
UTeam - Set teams based on usergroup.
Euphytose:
--- Code: ---"6"
{
"name" "Membre"
"group" "membre"
"armor" "150"
"hp" "150"
{
"a" "255"
"B" "222"
"g" "296"
"r" "176"
--- End code ---
Décidément... ::)
Regarde, t'as "g" "296", t'as pas un peu oublié que c'était limité à 255 ? ;D
Rooh, faudrait vraiment penser à regarder le code de l'erreur, même moi qui possède 3 de moyenne en maths je peux comprendre. :D
Regarde :
--- Code: ---}
"7"
{
"name" "Joueurs"
"group" "user"
{
"a" "255"
"B" "205"
"g" "197"
"r" "122"
}
}
--- End code ---
T'as oublié le "color".
En fait t'as oublié le color un peu partout, regarde bien, pour ton truc admin aussi etc... Normal que ça bug. :)
Mouton:
Ah ouai merde merci :s
EggNoggin:
More valid playermodels plox? ;D
JamminR:
Eggnoggin, UTeam doesn't control what player models are valid; a Gmod lua function within it does.
See http://wiki.garrysmod.com/?title=Player_manager.TranslatePlayerModel for the list the original UTeam used.
I've no idea when that list was last updated at the Gmod wiki, but the wiki actually has 4 more than the readme file.
However, just to do a bit more digging for you or anyone else that wanted more models, you may want to look at Garry's actual code. The translation table is listed here;
http://luabin.foszor.com/code/lua/includes/modules/player_manager.lua#46
It has more than both the wiki and the UTeam readme file have.
BradNowacki:
Mine isent working here is my files but i get a uteam lus error and no one has a team or rights its like lua 68 i think
My Uteam File
--- Code: ---"Out"
{
"teams"
{
"1"
{
"name" "Owner"
"group" "owner"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "0"
"g" "0"
"r" "0"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"2"
{
"name" "SuperAdmins"
"group" "superadmin"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "204"
"g" "0"
"r" "51"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"3"
{
"name" "Admins"
"group" "admin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "0"
"g" "204"
"r" "51"
}
}
"4"
{
"name" "UltraMember"
"group" "ultramember"
"armor" "200"
"hp" "200"
"color"
{
"a" "255"
"B" "0"
"g" "0"
"r" "102"
}
}
"5"
{
"name" "SuperMember"
"group" "supermember"
"color"
"armor" "100"
{
"a" "255"
"B" "0"
"g" "0"
"r" "255"
}
}
"6"
{
"name" "Member"
"group" "member"
"color"
{
"a" "225"
"B" "153"
"g" "0"
"r" "0"
}
}
"7"
{
"name" "Regular"
"group" "regular"
"color"
{
"a" "225"
"B" "153"
"g" "0"
"r" "102"
}
}
"8"
{
"name" "Player"
"group" "player"
"color"
{
"a" "225"
"B" "153"
"g" "0"
"r" "204"
}
}
"9"
{
"name" "Noob"
"group" "noob"
"color"
{
"a" "225"
"B" "255"
"g" "255"
"r" "51"
}
}
"10"
{
"name" "User"
"group" "user"
"color"
{
"a" "225"
"B" "255"
"g" "255"
"r" "255"
}
}
}
"gamemodes"
{
"1" "sandbox"
}
}
--- End code ---
My Group File
--- Code: ---"owner"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
}
"inherit_from"
{
"admin"
}
}
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
}
"inherit_from"
{
"admin"
}
}
"admin"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"inherit_from"
{
{
"operator"
}
}
"ultramember"
{
"deny"
{
}
"allow"
{
"ulx goto"
"ulx uncloak"
"ulx cloak"
"ulx ragdoll"
"ulx unragdoll"
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"supermember"
{
"deny"
{
}
"allow"
{
"ulx uncloak"
"ulx cloak"
"ulx ragdoll"
"ulx unragdoll"
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"member"
{
"deny"
{
}
"allow"
{
"ulx uncloak"
"ulx cloak"
"ulx ragdoll"
"ulx unragdoll"
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"regular"
{
"deny"
{
}
"allow"
{
"ulx ragdoll"
"ulx unragdoll"
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"player"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"noob"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"none"
{
"deny"
{
}
"allow"
{
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx debuginfo"
"ulx voteecho"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx votemapaddmap"
}
"inherit_from"
{
}
}
"operator"
{
"deny"
{
}
"allow"
{
"ulx seeasay"
}
"inherit_from"
{
}
}
--- End code ---
My User File
--- Code: ---"BradNowacki"
{
"id" "STEAM_0:0:22061836"
"type" "steamid"
"pass" """
"pass_req" "0"
"groups"
{
"owner"
}
"allow"
{
}
"deny"
{
}
}
--- End code ---
Whats wrong
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version