AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Spraypaint image (https://forums.alliedmods.net/showthread.php?t=233029)

waza123a 01-08-2014 16:26

Spraypaint image
 
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 01-25-2014 17:33

Re: Spraypaint image
 
bump

fysiks 01-25-2014 23:03

Re: Spraypaint image
 
  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

waza123a 01-27-2014 10:22

Re: Spraypaint image
 
thanks, job done.

i can't replace it with my image, but i replaced it with decals built in game, like Wall Text plugin.


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

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