Raised This Month: $ Target: $400
 0% 

Check if monsters dead on Sven co-op?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JPiolho
Member
Join Date: Dec 2004
Location: Portugal
Old 03-04-2006 , 12:49   Check if monsters dead on Sven co-op?
Reply With Quote #1

I'm making a RP plugin, and I want when the monster dies it shares gold for players. (Already done that code) I need to know how to trigger the function to check and share gold when monster dies, anybody knows?
__________________
JPiolho is offline
Send a message via MSN to JPiolho
JPiolho
Member
Join Date: Dec 2004
Location: Portugal
Old 03-04-2006 , 13:45  
Reply With Quote #2

Nobody knows?... At least anybody knows to run a AMXX function when an entity is triggered?
__________________
JPiolho is offline
Send a message via MSN to JPiolho
Kraugh
Senior Member
Join Date: Jan 2006
Location: barrington, ri
Old 03-04-2006 , 14:26  
Reply With Quote #3

you could try using register_think on monsters and checking their EV_INT_deadflag. though, there would be a lot of monster classnames to register.
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."
Kraugh is offline
Send a message via AIM to Kraugh
JPiolho
Member
Join Date: Dec 2004
Location: Portugal
Old 03-04-2006 , 14:29  
Reply With Quote #4

I already tryed register_think, result: Monster freezed...
__________________
JPiolho is offline
Send a message via MSN to JPiolho
Sandurr
Senior Member
Join Date: Aug 2005
Old 03-04-2006 , 14:31  
Reply With Quote #5

Maybe you used return PLUGIN_HANDLED instead of RETURN PLUGIN_CONTINUE

Thats why they got freezed?
Sandurr is offline
JPiolho
Member
Join Date: Dec 2004
Location: Portugal
Old 03-04-2006 , 14:33  
Reply With Quote #6

This is very strange, I used again the register_think and it worked, just need to fix some little things... Thanks for the help btw..
__________________
JPiolho is offline
Send a message via MSN to JPiolho
Reply



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 20:13.


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