Raised This Month: $ Target: $400
 0% 

Running functions on mp_timelimit


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Sutar
Senior Member
Join Date: Sep 2010
Old 09-24-2012 , 10:15   Running functions on mp_timelimit
Reply With Quote #1

For example, I have a hard mp_timelimit = 20 in server.cfg

ow to make the launch map_times() in plagin After having passed the 19 mint on card?

PHP Code:
#include <amxmodx>

public plugin_init() 
{
    
register_plugin("Test""1.0""Author")
}

public 
map_times()
{
...

So I did so, like running, but as you see failures would not be?

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

public plugin_init()
{
    
register_plugin("Nextmap Chooser""1.5""Sutar")
    
set_task(1.0"time_maps");
}

public 
time_maps()
    
set_task((get_timeleft() - 60.0), "cmd");

public 
cmd()
    
client_print(0print_chat"Vote Change Map - Start."); 
Here's wanted to do so, but did not work ...

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

public plugin_init()
{
    
register_plugin("Nextmap Chooser""1.5""Sutar")
    
set_task((get_pcvar_float(get_cvar_pointer("mp_timelimit")) - 60.0), "cmd");
}

public 
cmd()
    
client_print(0print_chat"Vote Change Map - Start.");


Last edited by Sutar; 09-24-2012 at 10:22.
Sutar 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 08:15.


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