AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S]Set spawn health and armor (https://forums.alliedmods.net/showthread.php?t=184896)

Inunknown 05-10-2012 05:50

[CS:S]Set spawn health and armor
 
2 Attachment(s)
Cvar:
Code:

sm_CT_spawn_health 100 //CT's health when spawn(-N~N)
sm_T_spawn_health 100 //TR's health when spawn(-N~N)
sm_CT_spawn_armor 0 //CT's Armor when spawn(0~127)
sm_T_spawn_armor 0 //TR's Armor when spawn(0~127)


Bacardi 05-10-2012 08:20

Re: [CS:S]Set spawn health and armor
 
CreateConVar
Use next time cvar min/max limit this way...
PHP Code:

CreateConVar("cvar_name""value""description"FCVAR_PLUGINtrue0.0true127.0); 

*edit
and if forum can compile plugin, don't need attach already compiled plugin.smx

vodka00 08-15-2012 01:09

Re: [CS:S]Set spawn health and armor
 
What if I have a spawn protection for 2 seconds and I need to have this plugins set the health right after spawn protection gets turned off. How would I go about doing that?


All times are GMT -4. The time now is 05:13.

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