Gamemode.PlayerSpray
From GMod Wiki
Event Hook | |
Hook Name | PlayerSpray |
Syntax | GM:PlayerSpray( Player Player ) |
Description | Called when a player sprays |
Returns | Boolean true to block the spray, false to allow it. |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSpray]Gamemode.PlayerSpray [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Only admins can spray. |
---|---|
Used on | |
Code | function GM:PlayerSpray(ply) return !ply:IsAdmin() end |
Output | N/A |