#define FL_SPECTATOR (1<<26) // Add this under include files new flags = entity_get_int(players[i],EV_INT_flags); if(flags & FL_SPECTATOR)