Raised This Month: $ Target: $400
 0% 

Solved [HELP] Detect if Map has Water on Start


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-03-2020 , 16:02   Re: [HELP] Detect if Map has Water on Start
Reply With Quote #10

For amxx >= 1.9 the best way is to use cs_find_ent_by_class. CS keeps track of entities using a hashtable which provides very fast lookup(it is faster than find_ent_by_class). This will not work if you search for entities you created with create_entity/fakemeta equivalent because the entities are not added to the hashtable. If this is the case, use cs_create_entity to create the entity.
__________________

Last edited by HamletEagle; 06-03-2020 at 16:04.
HamletEagle is offline
 



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 16:50.


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