Alright so here we go (If you know what your doing this should make sense)
PHP Code:
RegisterHam( Ham_Spawn, "player", "player_spawned", 1 )
PHP Code:
public player_spawned( iPlayer )
{
if( is_user_alive( iPlayer ) && cs_get_user_team( iPlayer ) == CS_TEAM_T )
{
new cid = 2
new color = 2
print_color( iPlayer, cid, color, "^x04[NightCrawlers] ^x01You are a ^x04NightCrawler!" )
print_color( iPlayer, cid, color, "^x04[NightCrawlers] ^x01If you are killed, you will be switched to a ^x04human!" )
set_user_footsteps( iPlayer, 1 )
set_user_rendering( iPlayer, kRenderFxNone, 255, 255, 255, kRenderTransAlpha, 0 )
set_user_armor( iPlayer, get_pcvar_num( ncarmor ) )
set_user_health( iPlayer, get_pcvar_num( nchealth ) )
set_user_gravity( iPlayer, 0.6 )
strip_user_weapons( iPlayer )
give_item( iPlayer, "weapon_knife" )
}
if( is_user_alive( iPlayer ) && cs_get_user_team( iPlayer ) == CS_TEAM_CT)
{
set_user_footsteps( iPlayer, 0 );
new cid = 2
new color = 2
print_color( iPlayer, cid, color, "^x04[NightCrawlers] ^x01You are a ^x04Human!" )
print_color( iPlayer, cid, color, "^x04[NightCrawlers] ^x01Kill a ^x04NightCrawler ^x01to switch places with them!" )
set_user_armor( iPlayer, get_pcvar_num( humanarmor ) )
}
}
Only part that isn't working:
PHP Code:
set_user_rendering( iPlayer, kRenderFxNone, 255, 255, 255, kRenderTransAlpha, 0 )
__________________