Apply cvars for a single client or flag
Is there a way I can apply a cvar (that usually would apply to all player), to a single player or flag (vip for example)
example: in the hidenseek chasemod plugin: (https://forums.alliedmods.net/showthread.php?t=239132) the radius of the freezenade is defined in hidenseek.cfg by 'hns_freeze_radius' and what I want is change this cvar for a single player/flag, is that possible? if yes, how can I do that. obs: i have little to no sourcepawn/csgo server knowledge, so take easy on me |
Re: Apply cvars for a single client or flag
I don't have a CSS server to test this, but try the following.
At the top of the file, add the following global variables: PHP Code:
In the OnPluginStart section, under all the CreateConVar stuff, add: PHP Code:
Add the following block of code somewhere: PHP Code:
Finally, find the following line (around the 1100): PHP Code:
PHP Code:
|
All times are GMT -4. The time now is 01:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.