Raised This Month: $ Target: $400
 0% 

Detect entity spawned (MonsterMod)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 02-08-2010 , 13:00   Detect entity spawned (MonsterMod)
Reply With Quote #1

Won't work at all, why?

PHP Code:
public plugin_precache()
{
    
RegisterHam(Ham_Spawn"func_wall""fwd_MonsterSpawn");

PHP Code:
public fwd_MonsterSpawn(ent)
{
    
server_print("spawned entity")  
    
client_print0print_chat"spawned")

I just need to detect the monster is spawned, tryied to detect it also in plugin_init, also tryied FM_Spawn, no success
__________________

Last edited by xbatista; 02-08-2010 at 13:05.
xbatista is offline
Send a message via Skype™ to xbatista
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-08-2010 , 13:28   Re: Detect entity spawned (MonsterMod)
Reply With Quote #2

If it doesn't work, you would need to use Orpheu.
__________________
Arkshine is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 02-08-2010 , 13:38   Re: Detect entity spawned (MonsterMod)
Reply With Quote #3

I've tryied again FM_Spawn in precache, works, but it detects only on map change ( and walls ), while monsters is spawned it won't print those messages... ?
__________________
xbatista is offline
Send a message via Skype™ to xbatista
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 07:22.


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