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(). ;)
__________________