Raised This Month: $ Target: $400
 0% 

Death Controling.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
stupok
Veteran Member
Join Date: Feb 2006
Old 04-15-2007 , 23:24   Re: Death Controling.
Reply With Quote #2

Try this:
Code:
#include <amxmodx> #include <amxmisc> #define TIME_PASSED 2 new Float:timer public plugin_init() {     register_plugin("Death Thing", "1.0", "stupok69")     register_event("DeathMsg", "event_DeathMsg", "a") // i forgot if this should be "a" or "b" } public event_DeathMsg() {     new Float:current_time = get_gametime()         if(timer > current_time - TIME_PASSED)     {         //if there is more than one         //death within TIME_PASSED,         //this will be called     }         timer = current_time         return PLUGIN_HANDLED }
stupok 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 06:41.


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