General > Off-Topic

Help!

<< < (2/2)

Hizan:
Okay, i under stand the color thing, but i don't know where to put UTeam i tryed overwriding the files, like you should all ways do
And woopy, didnt work.. cause i go in game and it dont work, and how do i convert the colors into those HEX things.. i think there called HEX  ???

Golden-Death:
Alpha is transparency. 0 = invisible, 255 = bright as daylight.

For hex, look here: http://www.johncfish.com/bggallery/otherchart/hextable.gif

Or just google 'hex color chart'.

I've never used hex in lua before, but it works like this:

<font color="#6666FF">This text would be blue.</font>

louis:

--- Code: ---"Out"
{
"teams"
{
"1"
{
"name" "SuperAdmin"
"group" "superadmin"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "50"
"g" "50"
"r" "255"
}
}
"2"
{
"name" "Admin"
"group" "admin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "255"
"g" "0"
"r" "0"
}
}
"3"
{
"name" "Vip"
"group" "vip"
"armor" "400"
"hp" "400"
"color"
{
"a" "255"
"B" "0"
"g" "255"
"r" "0"
}
}
"4"
{
"name" "Player"
"group" "user"
"color"
{
"a" "255"
"B" "0"
"g" "255"
"r" "0"
}
"model" "male1"
}
}
"gamemodes"
{
"1" "Sandbox"
}
}

--- End code ---

louis:
That is my UTEAM set up
Superadmin = red
Admin = blue
vip = green
user = green

spbogie:
since you apparently can't seem to find it on your own (it's right there with the other two files, I don't know how you couldn't) here's the contents of UTeam_readme.txt

--- Quote ---UTeam
  By: spbogie [Ulysses Team]

Installation:
  place UTeam.txt in garrysmod/data
  place UTeam.lua in garrysmod/lua/autorun

ChangeLog:
 version 1.1
  +Added support for setting variables on the player table (ie. SprintSpeed)
  *Fixed errors when running on gamemodes not in list
  *Gamemodes are based off name in scoreboare, but are no longer case-sensitive

Config Format (UTeam.txt):
"Out"
{
   "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)
         }
      }
   }
   "gamemodes"      //Gamemodes to load on
   {
      "1"      "Sandbox"      //To add additional increase number each time
   }
}

Valid player Models:
  alyx
  barney
  breen
  charple
  combine
  corpse
  eli
  female1
  female2
  female3
  gman
  kleiner
  male1
  male2
  male3
  monk
  mossman
  odessa
  police
  prison
  super
  zombie

--- End quote ---

Navigation

[0] Message Index

[*] Previous page

Go to full version