Raised This Month: $ Target: $400
 0% 

timed commands exec on server (HELP)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Trion
Junior Member
Join Date: Mar 2008
Old 08-05-2008 , 13:20   timed commands exec on server (HELP)
Reply With Quote #1

Hello, I wana to do plugin whos can exclude to my server command ewery 60seconds but dose work
Code:
#include <amxmodx>
public plugin_init()
{
 register_plugin("exec every 60seconds", "6.9", "Trion");
}
public server_cmd()
{
 set_task(60.0, "server_exec")
}
public server_exec()
{
 server_cmd("amx_reloadadmins")
}
Sombady Cant Help Me Please . . .
__________________
Trion is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 08-05-2008 , 13:55   Re: timed commands exec on server (HELP)
Reply With Quote #2

Code:
#include <amxmodx>

public plugin_init()
{
    set_task(60.0,"ReloadAdmins",_,_,_,"b")
}

public ReloadAdmins()
    server_cmd("amx_reloadadmins")
danielkza is offline
Old 08-05-2008, 14:02
xPaw
This message has been deleted by xPaw. Reason: check up
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 #3

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
Trion
Junior Member
Join Date: Mar 2008
Old 08-05-2008 , 15:16   Re: timed commands exec on server (HELP)
Reply With Quote #4

Thx danielkza
You wery help me
__________________
Trion is offline
Reply


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 05:29.


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