AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Check if monsters dead on Sven co-op? (https://forums.alliedmods.net/showthread.php?t=24896)

JPiolho 03-04-2006 12:49

Check if monsters dead on Sven co-op?
 
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 03-04-2006 13:45

Nobody knows?... :( At least anybody knows to run a AMXX function when an entity is triggered?

Kraugh 03-04-2006 14:26

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.

JPiolho 03-04-2006 14:29

I already tryed register_think, result: Monster freezed... :cry:

Sandurr 03-04-2006 14:31

Maybe you used return PLUGIN_HANDLED instead of RETURN PLUGIN_CONTINUE

Thats why they got freezed?

JPiolho 03-04-2006 14:33

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..


All times are GMT -4. The time now is 20:13.

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