Raised This Month: $32 Target: $400
 8% 

[CS:S]Set spawn health and armor


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Inunknown
New Member
Join Date: May 2012
Plugin ID:
2943
Plugin Version:
Final
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    When someone are spawn, he/she will get n hp and n armor
    Old 05-10-2012 , 05:50   [CS:S]Set spawn health and armor
    Reply With Quote #1

    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)
    Attached Files
    File Type: smx spawn_health_armor.smx (2.8 KB, 1001 views)
    File Type: sp Get Plugin or Get Source (spawn_health_armor.sp - 2369 views - 1.5 KB)

    Last edited by Inunknown; 05-10-2012 at 08:47. Reason: Thank for Bacardi
    Inunknown is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 05-10-2012 , 08:20   Re: [CS:S]Set spawn health and armor
    Reply With Quote #2

    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

    Last edited by Bacardi; 05-10-2012 at 08:22.
    Bacardi is offline
    vodka00
    Veteran Member
    Join Date: Jun 2012
    Location: Los Angeles
    Old 08-15-2012 , 01:09   Re: [CS:S]Set spawn health and armor
    Reply With Quote #3

    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?
    vodka00 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 22:07.


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