pev_valid

Syntax

native pev_valid(entindex);

Usage

entindex
The entity id to check.

Description

Checks the validity of an entity.

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).