Is anyone Very Familiar with TTT?

I was just wondering where the best place would be to add in a few if statements to restrict certain classes in ulib to be able to purchase certain weapons.

PS I have been looking and I’ve found a few places I believe might work.

Do you mean making a traitor weapon only buyable for traitors? If so:

[lua]
–weaponry.lua
local function OrderEquipment( ply, cmd, args )
– Do your check for the rank of player
if args[1] == “weapon_ttt_knife” then
return
end
end
[/lua]

Something like that.

Yeah, thanks I’ll try putting it there, that will help tremendously.

Just so you know i was planning on using the ulib function Player:CheckGroup.

[editline]11th March 2012[/editline]

Cool everything is successfully implemented :smiley: