Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <mapchooser>
- #include <nextmap>
- public Plugin:myinfo = {
- name = "roundwin",
- author = "Nautik",
- description = "Custom Script",
- version = "1.0"
- }
- new Handle:g_hConVar;
- public OnPluginStart()
- {
- ServerCommand("sm_cvar mp_ignore_round_win_conditions 1");
- }
- public OnMapStart()
- {
- ServerCommand("sm_cvar mp_ignore_round_win_conditions 1");
- }
- public OnClientPutInServer(iClient)
- {
- g_hConVar = FindConVar("mp_ignore_round_win_conditions");
- new g_bEnabled = GetConVarBool(g_hConVar);
- if(g_bEnabled < 1){
- ServerCommand("sm_cvar mp_ignore_round_win_conditions 1");
- }
- }
- public OnClientDisconnect_Post(iClient)
- {
- g_hConVar = FindConVar("mp_ignore_round_win_conditions");
- new g_bEnabled = GetConVarBool(g_hConVar);
- if(g_bEnabled < 1){
- ServerCommand("sm_cvar mp_ignore_round_win_conditions 1");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement