Raised This Month: $ Target: $400
 0% 

time is up


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 02-08-2007 , 19:43   time is up
Reply With Quote #1

Code:
public plugin_init(){                           register_plugin("Time is up!!","1.0","kp_uparrow")     register_cvar("sv_timesup","1")     register_event("HLTV", "new_reset", "a", "1=0", "2=0")\     register_event("SendAudio","new_reset","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")         return PLUGIN_CONTINUE } public  bomb_planted() {     remove_task (0,0) } public new_reset(){             if(get_cvar_num("sv_timesup")==1)     {     remove_task (0,0)     set_task(get_cvar_float("mp_roundtime")*60+5.0,"slay")     }     return PLUGIN_CONTINUE } public slay() {

i need to make sure that this task removed on round end/new round/bomb plant

just need to make sure, and that it does not remove tasks from other plugins

thx
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow 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 00:42.


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