Custom Spray Management

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

Custom Spray Management

Post by greenie »

.::Custom Spray Management::.
By- R0CK
.:: Description ::.
With this plugin you can Enabled / Disable Custom Sprays in the server. All will have same logo which is small lambda logo.
It also has Spray Distance Checker By Exolent.
This also fixes lambda spray bug as a result sometimes people are not able to spray their own spray.

The cspray_customtype Cvar takes place after new round starts.
.:: Cvars & Commands ::.
cspray_customtype <0, 1 ,2, 3, 4>

0 = Block All Sprays for Everyone
1 = Custom Sprays Enabled For Everyone
2 = Custom Sprays Enabled For Admins Disabled for others
3 = Custom Sprays Enabled For Chosen Ones Disabled for others(amx_allowspray <name>)
4 = Custom Sprays Disabled For Everyone (Same Logo)

cspray_distannouce <0, 1> (it will only work when Custom Sprays are Enabled)

0 = Distance Checker + AnnounceType Disabled
1 = Distance Checker + AnnounceType Enabled

cspray_distannoucetype <0, 1>

0 = All Will able to see distance between spray and ground if any one sprays
1 = Only sprayer will be able to see distance of its own spray

cspray_timeinterval <time>

time = Will set time interval between two sprays by a user

cspray_disallowtype <1, 0> (when amx_disallowspray has been used on a user)

0 = the users custom spray is blocked only
1 = the users spray is fully blocked

Admin Commands :-

amx_allowspray <name> <time> (will allow the person to use his own spray When Spray_CustomType = 2, 3, 4)
amx_disallowspray <name> (will block the person's spray When Spray_CustomType = 1, 3)
.:: Credits ::.
Exolent[jNr] – Spray Distance Checker
.:: Multilanguage ::.
http://forums.alliedmods.net/showthread.php?t=168083
.:: Changelog ::.
v2.1 - 05-21-2014
- Minor changes thanks to Arkshine.

v2.0 - 05-20-2014
- fixed minor bugs thanks to Arkshine.

v1.9 - 05-19-2014
- changed minor things, fixed minor bugs thanks to Arkshine.

v1.8 - 05-18-2014
- changed minor things, rewrote file saving system, new save CustomSprayBanned.ini file name.

v1.7 - 10-16-2011
- fixed trie function .......

v1.6 - 10-15-2011
-added saving steam id when his spray is banned and to remove his id from ban list then use amx_allowspray or manually delete from cs_management.ini + added subheadings in script for better understanding

v1.5 - 09-27-2011
- added commands for when amx_disallowspray has been used on a user

v1.4 - 09-26-2011
- Fixed time interval system and added message to know after how many seconds they can spray.

v1.3 - 09-25-2011
-Added cvar to handle time interval between sprays + added amx_allowspray <name> + <time> (time will set only only that user, sets users spray interval ) time should be greater than 1 .

v1.2 - 09-25-2011
-Added Admin flag #define FLAGS_SPRAY

v1.1 - 09-24-2011
-Changed set_pdata_init type

v1.0 - 09-24-2011
-Initial Release
spraymanagement.txt
colorchat.inc
get plugin or get source
Post Reply

Return to “Admin Commands”