AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Entities amount (https://forums.alliedmods.net/showthread.php?t=205148)

razermamba 01-07-2013 11:46

Entities amount
 
HI all. Im making new plugin and is there any function or method how to find out entities amount i have created in amx mod x and spawned?

Neeeeeeeeeel.- 01-07-2013 11:54

Re: Entities amount
 
You can use this natives from engine
PHP Code:

/* Finds an entity in the world, will return 0 if nothing is found */
native find_ent_by_class(iIndex, const szClass[]);
//optionally you can set a jghg2 type
// 1: target, 2:targetname, 0:classname (default)
native find_ent_by_owner(iIndex, const szClass[], iOwneriJghgType=0);
native find_ent_by_target(iIndex, const szClass[]);
native find_ent_by_tname(iIndex, const szClass[]);
native find_ent_by_model(iIndex, const szClass[], const szModel[]);
native find_ent_in_sphere(start_from_ent, const Float:origin[3], Float:radius); 


razermamba 01-08-2013 06:30

Re: Entities amount
 
Thx.


All times are GMT -4. The time now is 13:39.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.