View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 08-24-2011 , 10:30   Re: console commands on round start
Reply With Quote #2

Would this satisfy you, execute config file ...cfg/round_start.cfg every round start ?

So you just add cvars what you want in round_start.cfg file with value
example
Code:
sv_alltalk 1
mp_friendlyfire 0
PHP Code:
public Plugin:myinfo 
{
    
name "Exec cfg/round_start.cfg file every round",
    
description "Execute config file every round start"
}

public 
OnPluginStart()
{
    
HookEvent("round_start"round_startEventHookMode_PostNoCopy);
}

public 
round_start(Handle:event, const String:name[], bool:dontBroadcast)
{
    if(
FileExists("/cfg/round_start.cfg"false))
    {
        
ServerCommand("exec round_start.cfg");
    }

here > Compiler
__________________
Do not Private Message @me
Bacardi is offline