Raised This Month: $ Target: $400
 0% 

Entities amount


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
razermamba
Member
Join Date: Aug 2010
Old 01-07-2013 , 11:46   Entities amount
Reply With Quote #1

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?

Last edited by razermamba; 01-07-2013 at 11:50.
razermamba is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 01-07-2013 , 11:54   Re: Entities amount
Reply With Quote #2

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); 
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
razermamba
Member
Join Date: Aug 2010
Old 01-08-2013 , 06:30   Re: Entities amount
Reply With Quote #3

Thx.
razermamba is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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