Ulysses Stuff > Ulysses Release Archives

UTeam - Set teams based on usergroup.

<< < (39/52) > >>

JamminR:
I do not know where you are getting your 'group' names from.
ULib, by default, only comes with 4.
Highest to lowest they are
superadmin
admin
operator
user

You can name those 4 groups any team name you wish
Example;
superadmin = Elite
admin = Jr Elite
operator = Special
user = Player
If you create custom groups, you have to place them in the order you wish.

Euphytose:

--- Quote from: JamminR on July 18, 2009, 09:05:10 PM ---I do not know where you are getting your 'group' names from.
ULib, by default, only comes with 4.
Highest to lowest they are
superadmin
admin
operator
user

You can name those 4 groups any team name you wish
Example;
superadmin = Elite
admin = Jr Elite
operator = Special
user = Player
If you create custom groups, you have to place them in the order you wish.

--- End quote ---

Yeah, I know that, I was talking about the fact of creating new groups. :)

But, anyway, it's solved, I set lots of groups I have listed above. And with the " AutoPromote " plugin it's really awesome.

Mouton:
Im in despair , please if someone can help me it would be very nice
there is my Uteam.txt :
--- Code: ---"Out"
{
"teams"
{
"1"
{
"name" "Fondateur"
"group" "romain"
"armor" "5000"
"hp" "5000"
"color"
{
"a" "255"
"B" "255"
"g" "0"
"r" "0"
}
"plytable"
{
"1" "SprintSpeed:2000"
"2" "WalkSpeed:250"
}
}
"2"
{
"name" "Mechant Admin"
"group" "superadmin"
"armor" "1337"
"hp" "1337"
"color"
{
"a" "255"
"B" "35"
"g" "35"
"r" "139"
}
"plytable"
{
"1" "SprintSpeed:2000"
"2" "WalkSpeed:200"
}
}
"3"
{
"name" "Admin"
"group" "admin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "29"
"g" "102"
"r" "205"
}
}
"4"
{
"name" "Donnateur"
"group" "donnateur"
"armor" "400"
"hp" "400"
"color"
{
"a" "255"
"B" "79"
"g" "165"
"r" "255"
}
}
"5"
{
"name" "Membre V.I.P."
"group" "vip"
"armor" "200"
"hp" "200"
"color"
{
"a" "255"
"B" "207"
"g" "207"
"r" "207"
}
"6"
{
"name" "Membre"
"group" "membre"
"armor" "150"
"hp" "150"
"color"
{
"a" "255"
"B" "222"
"g" "296"
"r" "176 "
}
}
"7"
{
"name" "Joueurs"
"group" "user"
"color"
{
"a" "255"
"B" "205"
"g" "197"
"r" "122"
}
}
"8"
{
"name" "Bug."
"group" "operator"
"color"
{
"a" "255"
"B" "255"
"g" "255"
"r" "255"
}
}
"gamemodes"
{
"1" "Sandbox"
}
}

--- End code ---
And also my groups.txt from ulx
--- Code: ---"romain"
{
"deny"
{
}
"allow"
{
"ulx spawnecho"
}
"inherit_from"
{
"superadmin"
}
}
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx cvar"
"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"
"ulx hiddenecho"
"ulx rcon"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"ulx welcomemessage"
"overcomeimmunity"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
}
"inherit_from"
{
"admin"
}
}
"admin"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx gag"
"ulx chattime"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx playsound"
"ulx freeze"
"ulx noclip"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx jail"
"ulx ghost"
"ulx ragdoll"
"ulx maul"
"ulx strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx bring"
"ulx goto"
"ulx send"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx voteban"
"ulx veto"
"ups_damage"
"ups_vehicle"
"ups_freeze"
"ups_physgun"
"ups_remove"
"ups_tool"
"ups_unfreeze"
"ups_use"
"ups disableplayers"
"ups miscdeletionaccess"
}
"inherit_from"
{
"donnateur"
}
}
"donnateur"
{
"deny"
{
}
"allow"
{
"ulx hp"
"ulx unfreeze"
"ulx unragdoll"
"ulx unblind"
"ulx ungimp"
"ulx unmute"
"ulx ungag"
"ulx unjail"
"ulx unignite"
"ulx unghost"
"ulx votekick"
"ulx slay"
}
"inherit_from"
{
"vip"
}
}
"vip"
{
"deny"
{
}
"allow"
{
"ulx teleport"
"ulx god"
"ulx ungod"
}
"inherit_from"
{
"membre"
}
}
"membre"
{
"deny"
{
}
"allow"
{
"ulx armor"
}
"inherit_from"
{
"user"
}
}

"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"
{
}
"inherit_from"
{
"user"
}
}
"operator"
{
"deny"
{
}
"allow"
{
"ulx seeasay"
}
"inherit_from"
{
"membre"
}
}

--- End code ---
Edit : I forgot to post the error that I have when I try to launch it manually , there it is ->

--- Code: ---Running script autorun/UTeam.lua...
KeyValues Error: RecursiveLoadFromBuffer:  got } in key in file In
Out, teams, 1,
KeyValues Error: RecursiveLoadFromBuffer:  got } in key in file In
Out, 2, 139, (*plytable*),
KeyValues Error: RecursiveLoadFromBuffer:  got } in key in file In
5, 6, 176 , (*plytable*),
KeyValues Error: RecursiveLoadFromBuffer:  got } in key in file In
7, 122, (*6*), (*176 *), (*plytable*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*7*), (*122*), (*6*), (*176 *), (*plytable*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*7*), (*122*), (*6*), (*176 *), (*plytable*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*7*), (*122*), (*6*), (*176 *), (*plytable*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*operator*), (*r*), (*6*), (*176 *), (*plytable*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*operator*), (*r*), (*6*), (*176 *), (*plytable*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*operator*), (*r*), (*6*), (*176 *), (*plytable*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*none*), (*r*), (*6*), (*176 *), (*plytable*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*gamemodes*), (*1*), (*6*), (*176 *), (*plytable*),
L 08/28/2009 - 10:25:21: Lua Error: autorun/UTeam.lua:21: table index is nil
autorun/UTeam.lua:21: table index is nil
--- End code ---

Euphytose:

--- Code: ---"5"
      {
         "name"      "Membre V.I.P."
         "group"      "vip"
         "armor"      "200"
         "hp"      "200"
         "color"
         {
            "a"      "255"
            "B"      "207"
            "g"      "207"
            "r"      "207"
         }
      "6"
      {
         "name"      "Membre"
         "group"      "membre"
         "armor"      "150"
         "hp"      "150"
         "color"
         {
            "a"      "255"
            "B"      "222"
            "g"      "296"
            "r"      "176 "
         }
      }
--- End code ---

T'as pas l'impression d'avoir oublié un truc ?  :)

Au dessus du 6, t'as oublié un }.

Si c'est pas ça, je vois pas, mais la plupart du temps ce sont des erreurs d'inattention comme celle-ci.

Mouton:
Ah ouai merci , mais ça déconne toujours :/.
He told me that I forgot a } before the 6 , but I'm always having a problem.
Edit : I set 296 for the green value at member instead 196 >.<
And I've forgotten a lot of time to insert
--- Code: ---"color"
--- End code ---
before the color's values

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version