Raised This Month: $ Target: $400
 0% 

set_task end on round end


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
beretta
Junior Member
Join Date: May 2005
Old 06-07-2005 , 21:07   set_task end on round end
Reply With Quote #1

Is there a way to set a task and then stop it at the end of a round?
thx in advance
beretta is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 06-08-2005 , 03:32  
Reply With Quote #2

Should be..

Code:
#include <amxmodx> public plugin_init() {     // register_plugin(...)     register_logevent("round_start",2,"0=World triggered","1=Round_Start")     register_logevent("round_end",2,"0=World triggered","1=Round_End") } #define TASK_ID 9328 public round_start() {     set_task(1.0,"my_function",TASK_ID)     return PLUGIN_CONTINUE } public my_function() {     // blah blah blah ...     return PLUGIN_HANDLED } public round_end() {     if(task_exists(TASK_ID))         remove_task(TASK_ID)     return PLUGIN_CONTINUE }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
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 16:40.


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