• Way to make tools admin only
    4 replies, posted
would [CODE]TOOL.AdminOnly = true[/CODE] work? People are using an npc spawner on my server to crash it, need to stop it. How can I do this?
Remove NPC Spawner? Fix NPC Spawner? What's your problem? But I believe you can use toolmode_allow_*toolname* 0 to limit tool usage. OR you can use GM:CanTool hook to disallow using that tool OR you can hide the tool entirely by adding TOOL.AddToMenu = false
Thanks Robotboy PS love your mods <3 [editline]27th September 2013[/editline] Also, if I hide from menu, How can admins equip it?
[QUOTE=Robotboy655;42329393] OR you can hide the tool entirely by adding TOOL.AddToMenu = false[/QUOTE] How would you go about using TOOL.AddToMenu = false on default tools? Since AFAIK the files for those tools gets reverted when you update your server.
[QUOTE=ms333;42329733]How would you go about using TOOL.AddToMenu = false on default tools? Since AFAIK the files for those tools gets reverted when you update your server.[/QUOTE] They are not since SteamPipe has arrived. Only if the files have been updated. @theone01143, They don't. You'll have to fix the tool or use GM:CanTool hook.
Sorry, you need to Log In to post a reply to this thread.