 |
|
Senior Member
|

01-27-2013
, 02:24
Re: round start give health
|
#6
|
Quote:
Originally Posted by wickedd
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( PLUGIN, VERSION, AUTHOR );
register_logevent( "RoundStart", 2, "1=Round_Start" );
}
public RoundStart( )
{
new Players[ 32 ], szNum, i
get_players( Players, szNum, "a" )
for ( i = 0; i < szNum; i++ )
{
new player = Players[ i ];
if( cs_get_user_team( player ) == CS_TEAM_T )
{
set_user_armor( player, T_ARMOR );
set_user_health( player, T_HEALTH );
}
else
{
set_user_armor( player, CT_ARMOR );
set_user_health( player, CT_HEALTH );
}
}
}
|
sorry><
i made a miss simple.
thanks so much.
|
|
|
|