General > Developers Corner
need help with groups and new commands for TTT
(1/1)
Declivity:
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.
iSnipeu:
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 :)
Navigation
[0] Message Index
Go to full version