Raised This Month: $ Target: $400
 0% 

enable/disable whole plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
notahacker
Member
Join Date: Jan 2015
Old 03-12-2017 , 08:29   Re: enable/disable whole plugin
Reply With Quote #5

Quote:
Originally Posted by edon1337 View Post
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?
notahacker 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 17:54.


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