Raised This Month: $ Target: $400
 0% 

timed commands exec on server (HELP)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 08-05-2008 , 14:05   Re: timed commands exec on server (HELP)
Reply With Quote #4

Quote:
Originally Posted by xPaw View Post
PHP Code:
#include <amxmodx>

public plugin_init()
{
    
set_task(60.0,"task_reload")
}
public 
task_reload()
{
   
ReloadAdmins();
   
set_task(60.0,"ReloadAdmins")
}

public 
ReloadAdmins()
    
server_cmd("amx_reloadadmins"
Why re-setting the task yourself? The native already has this functionality,there's no reason to add 2 function calls, and call the native again.
danielkza 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 05:29.


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