AMX Mod X API Documentation

Signature
native rg_find_ent_by_class(start_index, const classname[], const bool:useHashTable = false);
Description

Finds an entity in the world using Counter-Strike's custom FindEntityByString wrapper.

Notes
  • Do not use this if you use a custom classname
Parameters
  • start_index Entity index to start searching from. -1 to start from the first entity
  • classname Classname to search for
  • useHashTable Use this only for known game entities
Returns

Entity index > 0 if found, 0 otherwise

Назад
Верх