• Tool VIP only
    3 replies, posted
How would i make it so that a certant tool is VIP only? like lets say i want the ignite tool to be VIP only? how would i make that? btw im using ULX also how would i make the toolgun VIP only too? like when u first join the server you dont get a toolgun only vip people do.
[b][url=wiki.garrysmod.com/?title=Gamemode.CanTool]Gamemode.CanTool [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] [b][url=wiki.garrysmod.com/?title=Gamemode.PlayerLoadout]Gamemode.PlayerLoadout [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] Add checks for VIP, which I assume you're using something like IsUserGroup("VIP")
[url]http://www.facepunch.com/threads/1053952-Making-certain-tools-donator-exclusive[/url] Too lazy? [lua] function UseTool( player, traceline, toolmode ) if( toolmode == "omgdonatortool" or toolmode == "killeverythingtool" )then return player:IsUserGroup("donator"); end end hook.Add( "CanTool", "HerpDerpToolCheck", UseTool ) [/lua] Code taken from Freze, did not write this, even though I could.
Hey that's me! Also to make IsUserGroup("donator") work. You've gotta make it in users.txt
Sorry, you need to Log In to post a reply to this thread.