Raised This Month: $ Target: $400
 0% 

enable/disable whole plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-12-2017 , 10:12   Re: enable/disable whole plugin
Reply With Quote #9

Craxor what have negative values to do with this?
Code:
#include < amxmodx > new g_Cvar ; // create a global variable public plugin_init() {     register_plugin("Cholo Swap", "2", "Cholo Team");             // here you will create the cvar to check if plugin is off or on     g_Cvar = register_cvar( "cvar_name", "1" ) ; <0|1> - <OFF|ON>         if( !get_pcvar_num(g_Cvar) )     pause( "a" ) ;             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")         }
__________________
edon1337 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