AMX Mod X API Documentation

Signature
native is_valid_ent(iIndex);
Description

Returns if an entity index is valid (as required by other engine natives).

Notes
  • Engine considers an entity index valid if it is in the range between 1

    and the maximum number of entities possible. The index also has to

    point to an existing entity or, if it is a client index, the client has

    to be connected.

Parameters
  • iIndex Entity index
Returns

1 if entity is valid, 0 otherwise

Назад
Верх