Hey like 2 months ago you helped me with the fps_max checking but now some players found another way to increase their fps using third-party programms/cheats which uses prefixes
So i use this code from:
https://forums.alliedmods.net/showthread.php?t=330652
but also i need to check if player type in console
any prefix like: xxxfps_max "value" ks12_fps_max "value" because as far i know the command always ends at fps_max so everything before it is a cheat command
PHP Code:
public fps( id , const cvar[] , const value[] )
{
new iCount , bool:bInvalid;
new iLen = strlen( value );
for ( new i = 0 ; i < iLen ; i++ )
{
if ( value[ i ] == '.' )
{
if ( ++iCount > 1 )
{
bInvalid = true;
break;
}
}
}
if ( bInvalid || ( str_to_float( value ) > 99.5 ) )
{
if ( bInvalid )
client_print( id , print_chat , "* Please fix your fps_max value, %s is formatted incorrectly." , value );
else
client_print( id , print_chat , "* Please lower your fps_max value less than or equal to 95.5" );
user_kill( id , 1 );
}