Whell, i know about Server Cvars unlocker plugin, but i find this code in forum:
PHP Code:
#include <amxmodx>
#include <fakemeta>
new const BUYTIME_CVAR[] = "mp_buytime"
#define PLUGIN_VERSION "0.1"
#define PLUGIN_AUTHOR "meTaLiCroSS"
public plugin_init()
{
register_plugin("BuyTime Infinito", PLUGIN_VERSION, PLUGIN_AUTHOR)
register_forward(FM_CVarGetFloat, "fw_CVarGetFloat")
}
public fw_CVarGetFloat(const szCVar[])
{
if(equal(szCVar, BUYTIME_CVAR))
{
forward_return(FMV_FLOAT, 99999.0)
return FMRES_SUPERCEDE
}
return FMRES_IGNORED
}
And its based on this (player.cpp i think):
PHP Code:
int buyTime = ( int )CVAR_GET_FLOAT( "mp_buytime" ) * 60;
if( buyTime < 15 )
{
buyTime = 15;
CVAR_SET_FLOAT( "mp_buytime", 1 / ( 60 / 15 ) );
}
if( gpGlobals->time - g_pGameRules->m_fRoundCount > buyTime )
{
if( display )
ClientPrint( pev, HUD_PRINTCENTER, "#Cant_buy", UTIL_dtos1( buyTime ) );
return false;
}
This will always return true when i set the buyTime to 99999.0 ??
Or it is same to set the mp_buytime var to 99999.0 ??
Anyway, has an method to set the buytime as infinite??
__________________