Raised This Month: $ Target: $400
 0% 

Solved set_task help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lexzor
Veteran Member
Join Date: Nov 2020
Old 12-28-2020 , 00:22   set_task help
Reply With Quote #1

hello. I have this code

PHP Code:
public plugin_init(){
register_event("HLTV""roundstart""a""1=0""2=0"
}

public 
roundstart(id){
    
stopplugin=false
    set_task
25.0"roundcounters"___"b");
    
ColorChat(0GREEN"^3[JoiNET]^1 Anti-rush plugin is ^3enabled^1!")
    
ColorChat(0GREEN"^3[JoiNET]^1 Counter-Terrorists can't rush for^3 25 seconds^1.")

}

public 
roundcounters(id){

stopplugin=true
ColorChat
(0GREEN"^3[JoiNET]^1 test.")


everything is working, but there is a problem with set_task.

after a few rounds, there are more task at different times. i want this task to disable plugin after first 25 seconds, but with more tasks working, sometimes plugin is disabled after a random num of seconds.

Last edited by lexzor; 12-29-2020 at 17:26.
lexzor 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 14:07.


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