Did you read what Erox902 said ?
Code:
RegisterHam( Ham_Spawn , "player" , "fwPlayerSpawn" , true ) // hook the spawn with ham
public fwPlayerSpawn( id ) // spawn function
{
if( g_bHasGrav[ id ] ) // if he's gravity
{
set_user_gravity( ... ) // set it
}
}
Btw :
Code:
if( (g_bHasGrav[id] = !g_bHasGrav[id]) )
=
Code:
if( !g_bHasGrav[id] )
__________________