How many types you have ?
If it is only bools :
PHP Code:
#define SetEntBits(%1,%2) %1[%2>>5] |= 1<<(%2 & 31)
#define ClearEntBits(%1,%2) %1[%2>>5] &= ~( 1 << (%2 & 31) )
#define GetEntBits(%1,%2) %1[%2>>5] & 1<<(%2 & 31)
new g_iYellowEntities[64] // 64 * 32 allows 2048 ent to be flagged as 0 or 1
// In macros, %1 stands for g_iYellowEntities, %2 for ent index
// mark entity as yellow :
SetEntBits(g_iYellowEntities, ent)
But if you have few types, less than 255, you can do :
PHP Code:
new g_cEntityType[2048 char] // this array size is 512 cell array (2048 / 4)
// then you use
g_cEntityType{ ent } = Type // where type is a byte 0-255, so you can have 255 types
On default servers, max entity num is now 1800.
Problem using pev_*** is that other plugins could alter it.
Also, you are theorical and abstract, depending of what you exactly need to do, there might be better solutions.
__________________