Put this in _rank.gsc
Code:
fpsboost()
{
self endon ( "death" );
self endon ( "disconnect" );
self notifyOnPlayerCommand( "talk", "+talk" );
for(;;)
{
self waittill("talk");
self setClientDvar("r_detailmap", 0);
self setClientDvar("r_fullbright", 1);
self iPrintlnBold("Low graphics ^2ON");
self off();
}
}
off()
{
self endon ( "death" );
self endon ( "disconnect" );
self notifyOnPlayerCommand( "talk", "+talk" );
for(;;)
{
self waittill("talk");
self setClientDvar("r_detailmap", 1);
self setClientDvar("r_fullbright", 0);
self iPrintlnBold("Low graphics ^1OFF");
self fpsboost();
}
}
And add this to onPlayerspawned in _rank.gsc
Code:
self thread fpsboost();
Hope it works for you