Quote:
Originally Posted by joaquimandrade
More. (I'm assuming that pev_valid(id) is equivalent to is_valid_ent(id)). If they aren't, the results are invalid.
|
is_valid_ent only returns 0/1 when pev_valid returns 0,1 or 2.
Code:
/**
* Checks the validity of an entity.
*
* @param entindex The entity id to check.
*
* @return 0 on invalid entity
* 1 on entity is valid
* 2 on entity is valid and it has private data (safe to use pdata natives on).
*/
native pev_valid(entindex);
__________________