View Single Post
kwpd
AlliedModders Donor
Join Date: Mar 2009
Location: panama
Old 11-18-2014 , 23:49   Re: Pug MOD XT Rewrited [New Version 26/12/2013]
Reply With Quote #335

/!\ important /!\
Multiple servers.? Please change the record cvar.!
Server 1 = bps_sql_temp_db "skillpoints_pug1"
Server 2 = bps_sql_temp_db "skillpoints_pug2"
Server 3 = bps_sql_temp_db
"skillpoints_pug3"

_____________________________________________ ____________________________________
A little help for people who are using the plugin pug mod xt
https://forums.alliedmods.net/showthread.php?t=217539

small synchronization command.

linea 1398
PHP Code:
            server_cmd("amx_remove_stats_pug"// <--- Add Custom Comand
            
set_task
            
(
                
get_pcvar_float(PUG_SwitchDelay),
                
"PUG_ChangeMap",
                
_,
                
PUG_szMapNames[iWinner],
                
sizeof(PUG_szMapNames)
            );
            
            return 
PLUGIN_HANDLED
linea 1850
PHP Code:
PUG_LO3()
{
    
PUG_BombRemove(false);

    
set_task(0.2,"PUG_RestartRound",_,"1",1);
    
set_task(2.2,"PUG_RestartRound",_,"2",1);
    
set_task(5.8,"PUG_RestartRound",_,"3",1);
    
    
set_task(3.0,"Custom_stats"); // <--- Add Custom Comand
    
    
set_task(10.0,"PUG_LiveMessage");
}

// Add Custom Comand.!
public Custom_stats()
{
    
set_cvar_num("pug_stats_enable"1);
    
set_cvar_num("pug_stats_temp_enable"1);

finished.rc Add Custom Comand Basic Points Stats
PHP Code:
// Finished Settings

mp_freezetime             "0"
mp_fadetoblack             "0"
mp_roundtime             "1.75"
mp_c4timer             "35"
mp_forcechasecam         "0"
mp_forcecamera             "0"
mp_startmoney             "16000"
mp_buytime             ".25"
mp_friendlyfire         "0"
mp_autoteambalance         "0"
mp_limitteams             "0"
mp_playerid             "0"
mp_flashlight             "1"
sv_alltalk             "1"

// Add Custom Comand Basic Points Stats
pug_stats_enable "0"
pug_stats_temp_enable "0" 
pregame.rc Add Custom Comand Basic Points Stats
PHP Code:
// Pregame Settings File
// This is called when the PUG Mod Starts

pug_minplayers         "10"         // Minimum players to start the game
pug_maxplayers         "10"         // Maximum of players in server
pug_votedelay         "10.0"         // Delay between vote sessions
pug_switch_delay     "3.0"         // Swith delay in Intermission
pug_rounds         "30"         // Rounds (Best of 30 rounds)
pug_ot_rounds         "6"         // OT Rounds (Best of 6 rounds)
pug_allowspec         "1"         // Allow Spectactors
pug_allowhltv         "1"        // Allow HLTV in server
pug_reconnect        "20.0"         // Reconnect time if the game is Live
pug_teammoney        "1"         // Show teammates money in list
pug_nosuicide        "1"         // Block the "kill" command in server
pug_allowvotes         "0"         // Allow the "vote" and "votemap" commands
pug_help         "help.htm"     // The help file (Must be in the PUG configs files)

pug_pregame_cfg     "pregame.rc"         // Called when the PUG Mod Starts
pug_ready_cfg         "ready.rc"         // Called when the PUG Vote Starts
pug_firsthalf_cfg     "cal.rc"         // Called when the First Half Starts
pug_intermission_cfg     "intermission.rc"     // Called when Intermission Starts
pug_secondhalf_cfg     "cal.rc"         // Called when the Second Half Starts
pug_overtime_cfg     "cal-ot.rc"         // Called when the Overtime Starts
pug_finished_cfg     "finished.rc"         // Called when the Game is Over

// Warmup Settings
mp_freezetime             "0"
mp_fadetoblack             "0"
mp_roundtime             "1.75"
mp_c4timer             "35"
mp_forcechasecam         "0"
mp_forcecamera             "0"
mp_startmoney             "16000"
mp_buytime             ".25"
mp_friendlyfire         "0"
mp_autoteambalance         "0"
mp_limitteams             "0"
mp_playerid             "0"
mp_flashlight             "1"
sv_alltalk             "1"

// Add Custom Comand Basic Points Stats
pug_stats_enable "0"
pug_stats_temp_enable "0" 
__________________

Last edited by kwpd; 12-23-2014 at 14:17.
kwpd is offline