PHP Code:
if( gNewR ) {
if( ( get_pcvar_num( gEnabled ) ) && ( is_user_alive( id ) ) && ( cs_get_user_team( id ) == CS_TEAM_T ) && ( gSF[id] == 1 ) ) {
You can merge those 2 checks.
Code:
new Float:fallspeed = get_pcvar_float( gfSpeed ) * ( -1.0 )
new Float:velocity
[3]
pev
( id, pev_velocity, velocity
)
if( velocity
[2] <
0 ) {
velocity
[2] =
( velocity
[2] +
40.0 < fallspeed
) ? velocity
[2] +
40.0 : fallspeed
set_pev
( id, pev_velocity, velocity
)
}
you should put the highlighted line into if( velocity[2] < 0 ) { block.
__________________