Raised This Month: $ Target: $400
 0% 

Getting total ents?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Silencer123
Veteran Member
Join Date: Jul 2006
Old 10-27-2006 , 13:09   Re: Getting total ents?
Reply With Quote #4

Code:
#include <fakemeta> new entities public plugin_precache() {     register_forward(FM_Spawn,"handle_spawn")     set_task(1.0,"tell_entities") } public handle_spawn() {     entities++ } public tell_entities() {     client_print(0,print_chat,"This Map has a Total of %i Entities inside!",entities) } // Note that also after the Map has loaded Entities can Spawn. // (Temporary Entities or Monsters from monstermakers etc.) // You maybe want to use remove_forward in tell_entities() // or make another Variable and do variable_new=entities // in tell_entities().  ;)
__________________
EAT YOUR VEGGIES

Last edited by Silencer123; 10-27-2006 at 13:14.
Silencer123 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 04:47.


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