Raised This Month: $ Target: $400
 0% 

round start give health


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 01-26-2013 , 20:28   round start give health
Reply With Quote #1

where is the problem?
compile is success.
however echo error by hlds.
[CSTRIKE] Player out og range (0)
[AMXX] Run time error 10 (plugin "round_start_give_health.amxx") "native "cs_get_user_team") - debug not enable!
what is this?

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define PLUGIN "Health Fix"
#define VERSION "1.0"
#define AUTHOR "AUTHOR"

#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"b"
    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;


Last edited by RuRuRu612754; 01-26-2013 at 20:29.
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 20:36.


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