• Is anyone Very Familiar with TTT?
    2 replies, posted
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.
[QUOTE=InfernalCookie;35098605]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.[/QUOTE] Yeah, thanks I'll try putting it there, that will help tremendously. Just so you know i was planning on using the ulib function [URL="http://ulyssesmod.net/docs/files/lua/ulib/shared/sh_ucl-lua.html#Player:CheckGroup"]Player:CheckGroup[/URL]. [editline]11th March 2012[/editline] Cool everything is successfully implemented :D
Sorry, you need to Log In to post a reply to this thread.