Raised This Month: $ Target: $400
 0% 

Check value of a cvar for x seconds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bladell
Senior Member
Join Date: Jun 2012
Old 11-04-2013 , 12:07   Re: Check value of a cvar for x seconds
Reply With Quote #9

I think that is because of podbot module...

Code:
public plugin_init() {
	set_task(1.0, "check_cvar", _, _, _, "b")
}
	
public check_cvar() {
	new i;
	if(get_cvar_num("sv_maxspeed") <= 100)
		i++;

	if(i>=30)
		server_cmd("amx_map de_dust2")
}
Should work, right?

About the plugin...it's Super map chooser, but the author announced that the plugin have a lot of bugs and he will not update it.So...the source from alliedmodders isn't good.I fixed this plugin a few weeks ago, but I lost the source.
Trying to remove all bugs again isn't an option because I don't have enough time to make again 100 tests...I think that this is the reason because the author left this plugin.
Is my method good?
Bladell 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 23:16.


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