Raised This Month: $ Target: $400
 0% 

Spraypaint image


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-25-2014 , 23:03   Re: Spraypaint image
Reply With Quote #1

  1. You can't use a .bmp file.
  2. This is how you can detect when a player uses his spray:
    Code:
    register_event("23", "function_here", "a", "1=112")	// SVC_TEMPENTITY (TE_PLAYERDECAL)
    I'm not sure if you can block it though. You might be able to place your spray on top of it though.

EDIT:
By searching the Plugins subforum, I was able to easily find information about spray's. The thread that I found has the method posted above and another method that appears gives you the ability to block it (I've not tested it myself and didn't look at the code too long).

https://forums.alliedmods.net/showthread.php?t=230030
__________________

Last edited by fysiks; 01-25-2014 at 23:20.
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode