What hook do I use to deny a player usage to say ignite, and how would I go about doing that?.
function canignite(swep, ply)
if ply:IsAdmin then return true else return false end
end
hook.Add(PlayerCanUseSWEP, canignite)
that wont work of course.. just an example.
Also, for entities how would I go about restricting them to someone if they have x amount of "points". I have the system already, I just don't want to use a hook. I would like to add a option to the entity in shared.lua like CanAdminSpawn.
Thanks!.