View Single Post
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-26-2023 , 10:15   Re: Restrict FPS of specific player
Reply With Quote #2

You're executing query_client_cvar() on all players instead of the threath itself. Don't loop through all player, just target the threat itself and act accordingly.

PHP Code:
public OnTaskCheckCvars( )
{
    new 
szPlayers32 ], iNum;
    
get_playersszPlayersiNum"c" );
    static 
iTempID;

    for( new 
iiNumi++ )
    {
        
iTempID szPlayers];

        if(
isThreat(g_szAuthID))
        {
            
query_client_cvariTempID"fps_max""OnCvarResult" );
            
query_client_cvariTempID"fps_override""OnCvarResult" );
        }
    }

__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be