From Garry's Mod
Revision as of 19:35, 20 February 2016 by Shendow
Determines if the player can spray using the "impulse 201" console command.
The player who sprayed.
Return false to allow spraying, return true to prevent spraying.
Makes so that only Admins can spray.
hook.Add( "PlayerSpray", "DisablePlayerSpray", function( ply ) return !ply:IsAdmin() end )