Hi!
I have 2 options in a menu and doesn't work properly:
Code:
case 6:
{
set_user_health( id, 10000 );
set_user_gravity( id, 0.5);
give_item(id, "weapon_mp5navy");
cs_set_user_bpammo(id, CSW_MP5NAVY, 150);
for ( new i = 1; i <= g_maxplayers; i++ )
{
if ( is_user_alive( id ) && cs_get_user_team( id) == CS_TEAM_CT)
{
set_user_health( id, 50 );
set_user_noclip(id, 1);
}
}
}
case 7:
{
set_user_health( id, 150 );
give_item(id, "weapon_m249");
cs_set_user_bpammo(id, CSW_M249, 999);
for ( new i = 1; i <= g_maxplayers; i++ )
{
if ( is_user_alive( id ) && cs_get_user_team( id) == CS_TEAM_CT)
{
set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 0);
}
}
In the first, CTs don't have NOCLIP if the option is choosen and in the second the CTs aren't invisible if the option is choosen.What is wrong ?
And how can I make those items (invisibility and NOCLIP) to remain at every spawn till the round ends.