ULX

Author Topic: need help with groups and new commands for TTT  (Read 3799 times)

0 Members and 1 Guest are viewing this topic.

Offline Declivity

  • Newbie
  • *
  • Posts: 8
  • Karma: -1
need help with groups and new commands for TTT
« on: August 30, 2012, 04:15:08 PM »
so group wise i need to change certain values to their commands and also give them special colors in the TTT tab menu.

the values to be changed are the ones mainly for ban times, i want mods to be able to ban instantly for a max 60 mins, operators to voteban for a max of 60 mins, and respected to ban for a max time of 5 minutes.

The new commands i need are a one to give weapons by name and another to reset karma to a certain value.

I know very little about coding so please help.

Offline iSnipeu

  • Jr. Member
  • **
  • Posts: 83
  • Karma: 12
Re: need help with groups and new commands for TTT
« Reply #1 on: October 14, 2012, 05:49:01 PM »
Firstly, you can see how to set out ulx commands here

Secondly, you can see TTT hooks here (the one you are looking for is TTTScoreboardColorForPlayer)

Thirdly, some TTT functions you can use for karma are...
Player:SetLiveKarma( amount )
Player:SetBaseKarma( amount )
You can see the differences between Live and Base karma here

Also Player:Give( "weapon_name" ) is what you would use for !give


Hope you can work it out :)