Raised This Month: $ Target: $400
 0% 

round start give health


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 01-26-2013 , 22:30   Re: round start give health
Reply With Quote #4

Quote:
Originally Posted by wickedd View Post
PHP Code:
get_players(PlayersplayerCount"b"


PHP Code:
get_players(PlayersplayerCount"a"
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define PLUGIN "HNS Fix"
#define VERSION "1.0"
#define AUTHOR "k725"

#define T_ARMOR 155
#define T_HEALTH 155
#define CT_ARMOR 255
#define CT_HEALTH 255

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
register_logevent("RoundStart"2"1=Round_Start");
}

public 
RoundStart()
{
    new 
Players[32
    new 
playerCountiplayer 
    get_players
(PlayersplayerCount"a"
    for (
i=0i<playerCounti++) 
        
player Players[i
        
    if(
cs_get_user_team(player) == CS_TEAM_T) {
        
set_user_armor(playerT_ARMOR);
        
set_user_health(playerT_HEALTH);
    } else {
        
set_user_armor(playerCT_ARMOR);
        
set_user_health(playerCT_HEALTH);
    }
    
    return 
PLUGIN_HANDLED;

hmm... some error.
i think does not worked cs_get_user_team.
RuRuRu612754 is offline
 



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 00:35.


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