https://github.com/alliedmodders/amx....inc#L113-L127
Looks like there is get_pdata_ent in 1.8.2. Keep in mind that, as the documentation says, it's byte-addresable, meaning that instead of 492 you would use 1968 (492 * 4 = 1968 ).
EHANDLE has such memory layout (8 bytes):
Code:
edict_t *m_pent;
int m_serialnumber;
As m_pent is first, it should be possible to just use get_pdata_ent() instead on the same offset (times 4). I don't know how safe this is though, as the entity might not be valid or have a different serial number (meaning it's a different entity). I guess just checking for pev_valid() will be alright.
Anyway, I am asking again: can you upload the latest linux server binary? That way I can try to find if the offset has changed.