Raised This Month: $ Target: $400
 0% 

auto cvar on x round


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Adrian45
Junior Member
Join Date: Oct 2011
Location: I'm everywhere
Old 01-03-2013 , 17:09   auto cvar on x round
Reply With Quote #1

i need a plugin to execute some cvars on x round
i've tried to make one from an auto round restart plugin

PHP Code:
#include < amxmodx >

new cRoundcvar_rounds

public plugin_init() {
    
register_plugin("Auto Cvars In X Round""1.0""Nimeni")

    
register_logevent("roundStart"2"1=Round_Start")
    
cvar_rounds register_cvar("amx_cvars_round""3")
}

public 
roundStart() {
    new 
rounds get_pcvar_num(cvar_rounds)
    
cRound++
    if(
cRound == rounds) {
        
server_cmd "mp_autoteambalance 1" );
        
server_cmd "mp_limitteams 1" );
        
server_cmd "sv_unlag 1" );
        
client_print 0print_chat"setting mp_autoteambalance, mp_limitteams and sv_unlag to 1" );
    }

is it good or not? (it has no errors on compiling)
Attached Files
File Type: sma Get Plugin or Get Source (auto_cvar_x_round.sma - 570 views - 567 Bytes)
__________________

sorry for my bad english

Last edited by Adrian45; 01-03-2013 at 17:10.
Adrian45 is offline
Send a message via Yahoo to Adrian45
xDrugz
Senior Member
Join Date: Jul 2011
Location: return 4;
Old 01-03-2013 , 17:59   Re: auto cvar on x round
Reply With Quote #2

Test your plugin first.
We couldn't say anything.
__________________
xDrugz is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-03-2013 , 19:59   Re: auto cvar on x round
Reply With Quote #3

So, does it work? You should already know the answer when posting.
__________________

Last edited by fysiks; 01-03-2013 at 19:59.
fysiks is offline
Reply



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 13:31.


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