Raised This Month: $ Target: $400
 0% 

[HELP] Set_Task question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 02-10-2016 , 08:01   [HELP] Set_Task question
Reply With Quote #1

So let's say we have this, is there any good way to execute a code in the burning_flame function every two seconds?

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "White"

#define TASK_BURN 304943
#define ID_BURN (taskid - TASK_BURN)


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
client_cmd("command""function")
    
    
// Add your code here...
}

public function(
id)
{
    
set_task(0.2"burning_flame"victim+TASK_BURN__"b")
}

public 
burning_flame(taskid)
{
    

__________________
Depresie is offline
 


Thread Tools
Display Modes

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 09:34.


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