Quote:
Originally Posted by edon1337
What do you mean?
|
Code:
public plugin_init()
{
register_plugin("Cholo Swap", "2", "Cholo Team");
enable = register_cvar("start_match","1");
half_rounds = register_cvar("pug_half_rounds","15");
full_rounds = register_cvar("pug_full_rounds","16");
live = register_cvar("pug_live","1");
register_event("HLTV", "event_round_start", "a", "1=0", "2=0");
register_event("TextMsg", "restart", "a", "2&#Game_C", "2&#Game_W");
register_event("SendAudio", "event_round_end", "a", "2&%!MRAD_terwin", "2&%!MRAD_ctwin", "2&%!MRAD_rounddraw");
register_logevent( "LogEvent_RoundStart", 2, "1=Round_Start" );
register_event( "SendAudio", "Event_SendAudio_TWin", "a", "2&%!MRAD_terwin" );
register_event( "SendAudio", "Event_SendAudio_CTWin", "a", "2&%!MRAD_ctwin" );
MaxPlayers = get_maxplayers( );
register_logevent("round_end", 2, "1=Round_End");
register_dictionary("Auto_Swap_Teams.txt");
register_clcmd("say .score","showscore")
}
This is my plugin_init. How/Where do i add the g_Cvar in it to on and off the plugin?