• Print

Author Topic: A toggle to prevent people from spraying over other sprays.  (Read 5673 times)

0 Members and 1 Guest are viewing this topic.

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
A toggle to prevent people from spraying over other sprays.
« on: January 30, 2013, 09:52:46 pm »
I have always found it very annoying of how people just spray over a spray because they don't like how it looks or whatever.
--
There should also be a way for admins to remove a spray and stop people from using their spray.

I have not the slightest idea on how one would do this but I hope some one can at-least start making some thing to "fix" this.
I cry every time I see that I am not a respected member of this community.

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Re: A toggle to prevent people from spraying over other sprays.
« Reply #1 on: February 02, 2013, 05:25:16 pm »
Also a way to put sprays on props would be awesome. :)
I cry every time I see that I am not a respected member of this community.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: A toggle to prevent people from spraying over other sprays.
« Reply #2 on: March 23, 2013, 04:10:34 pm »
Running the following code on clients stops sprays altogether. You can make it more complicated as you see fit. There may be another way to do it from the server (which would be better), but I'm not certain.

Code: Lua
  1. hook.Add( "PlayerBindPress", "t", function(player, bind)
  2.   if bind == "impulse 201" then
  3.     return true
  4.   end
  5. end )
  6.  
Experiencing God's grace one day at a time.

  • Print