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 cRound, cvar_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 ( 0, print_chat, "setting mp_autoteambalance, mp_limitteams and sv_unlag to 1" );
}
}
is it good or not? (it has no errors on compiling)