Raised This Month: $ Target: $400
 0% 

Spraypaint image


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
waza123a
Member
Join Date: Mar 2010
Old 01-08-2014 , 16:26   Spraypaint image
Reply With Quote #1

How to replace user spray with my spray ?

When user sprays on wall, I need replace his image with my .bmp file, any functions or assist would be nice! Thanks.
waza123a is offline
Old 01-09-2014, 10:24
waza123a
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
Old 01-15-2014, 16:46
waza123a
This message has been deleted by hornet. Reason: Stop being impatient - wait 14 days until you bump
waza123a
Member
Join Date: Mar 2010
Old 01-25-2014 , 17:33   Re: Spraypaint image
Reply With Quote #4

bump
__________________
Life is good, sometimes...
waza123a is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-25-2014 , 23:03   Re: Spraypaint image
Reply With Quote #5

  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
waza123a
Member
Join Date: Mar 2010
Old 01-27-2014 , 10:22   Re: Spraypaint image
Reply With Quote #6

thanks, job done.

i can't replace it with my image, but i replaced it with decals built in game, like Wall Text plugin.
__________________
Life is good, sometimes...
waza123a 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