Sorry guys, but im sick of trying and searching.
First of all: Nice Mod!
then. I want to restrict all PCmod tools to one class. I found the way to restrict it to admins here in this thread. and i found a way to restrict something to a class.. but im unable to combine this two!
It must be something like:
local function StopPCStools( ply, tr, toolmode )
if (ply:Team() == team here || ply:IsAdmin()) then
if (string.Left( toolmode, 7 ) == "pcspawn") then
hook.Add( "CanTool", "PCMod.StopPCStools", StopPCStools )
But i doesnt work. Im hoping for answers here.