forcefps()
{
if(!isDefined(level.fpscvar))
level.fpscvar = 125;
while(1)
{
players = getentarray("player", "classname");
for(i=0;i {
players[i] setClientCvar("com_maxfps", level.fpscvar);
}
wait .5;
}
}
also possible as a custom cvar u just need a check
cvarcheck()
{
for(;;)
{
if(getCvar("lev_forcefps") == "")
setCvar("lev_forcefps", 125);
level.forcefps = getCvarInt("lev_forcefps");
oldfps = getCvarInt("lev_forcefps");
while(getCvarInt("lev_forcefps") == oldfps)
wait 1;
}
}
{
if(!isDefined(level.fpscvar))
level.fpscvar = 125;
while(1)
{
players = getentarray("player", "classname");
for(i=0;i
players[i] setClientCvar("com_maxfps", level.fpscvar);
}
wait .5;
}
}
also possible as a custom cvar u just need a check
cvarcheck()
{
for(;;)
{
if(getCvar("lev_forcefps") == "")
setCvar("lev_forcefps", 125);
level.forcefps = getCvarInt("lev_forcefps");
oldfps = getCvarInt("lev_forcefps");
while(getCvarInt("lev_forcefps") == oldfps)
wait 1;
}
}