Which one of those is better (lower CPU usage)
1.
PHP Code:
new Float:velocity[3]
entity_get_vector(id,EV_VEC_velocity,velocity)
if ( (velocity[2]!=0) )
ColorChat(id ,GREEN, "You are in air")
2.
PHP Code:
const FL_ONGROUND2 = ( FL_ONGROUND | FL_PARTIALGROUND | FL_INWATER | FL_CONVEYOR | FL_FLOAT );
if( !( pev( id, pev_flags ) & FL_ONGROUND2 )
ColorChat( id, GREEN, "You are in air")
1st uses engine modules
2nd uses amxmodx only, but it detects players on ladders as being in air