• Custom SWEP Given To Certain Rank on Spawn (TTT)
    2 replies, posted
Is it possible for example, users within the 'Premium' group to be given a custom SWEP each time they spawn. So rather than spawning with the same crowbar as regular users, they can spawn with a custom item? If anyone knows a potential answer to this it would be great to hear!
Very much possible, you'll need to find the place where you give players the crowbar and a function to know if a player has premium or not, then you just do an "if then else end" statement.
[QUOTE=Robotboy655;43752625]Very much possible, you'll need to find the place where you give players the crowbar and a function to know if a player has premium or not, then you just do an "if then else end" statement.[/QUOTE] I don't have much experience with custom SWEPs, would it have a similar structure (ex. weapon_zm_fryingpan) [CODE] ply:Give("weapon_zm_revolver")[/CODE] This is what I have so far. [CODE]local function giveWeapon(ply) if ply:IsUserGroup("premium") then ply:Give("weapon_zm_fryingpan") end end[/CODE]
Sorry, you need to Log In to post a reply to this thread.