Raised This Month: $ Target: $400
 0% 

check client fps_max number


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 11-30-2011 , 06:43   check client fps_max number
Reply With Quote #1

The client "fps_max" If the numbers below 100
or
The client "fps_max" If the numbers above 100
To perform the following steps, what should I do?

Code:
#include <amxmodx>

public plugin_init()
{
	register_plugin("PLUGIN", "VERSION", "AUTHOR")
}

public client_connect(id)
{
	if
	{
		client_kick(id)
	}
}

public client_kick(id)
{
	client_cmd(id, "disconnect")
}
RuRuRu612754 is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 11-30-2011 , 06:46   Re: check client fps_max number
Reply With Quote #2

Use query_client_cvar() to get fps_max value
http://www.amxmodx.org/funcwiki.php?...ry_client_cvar
__________________
Полный похуизм.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 11-30-2011 , 07:01   Re: check client fps_max number
Reply With Quote #3

Flipper_SPb

How to get the values ​​found
But

The client "fps_max" If the numbers below 100
or
The client "fps_max" If the numbers above 100
To perform the following steps, what should I do?

sorry
RuRuRu612754 is offline
MyPc
Senior Member
Join Date: Sep 2011
Old 11-30-2011 , 07:32   Re: check client fps_max number
Reply With Quote #4

Quote:
Originally Posted by RuRuRu612754 View Post
Flipper_SPb

How to get the values ​​found
But

The client "fps_max" If the numbers below 100
or
The client "fps_max" If the numbers above 100
To perform the following steps, what should I do?

sorry
Read This : http://www.amxmodx.org/funcwiki.php?go=func&id=854

And if you didn't understand :
PHP Code:
#include < amxmodx >

public client_connectid )
{
    
query_client_cvarid"fps_max""result" );
}

public 
resultid, const cvar[ ], const value[ ] )
{
    new 
iValue str_to_numvalue );
    
    if( 
iValue 100 )
    {
        
// Fps Bigger Then 100
    
}else if( iValue 100 ){
        
// Fps Lower Then 100
    
}
}
public 
client_kick(id)
{
    
client_cmdid"disconnect" );


Last edited by MyPc; 11-30-2011 at 07:33.
MyPc is offline
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 11-30-2011 , 07:38   Re: check client fps_max number
Reply With Quote #5

MyPc
thanks

and

Flipper_SPb
thanks
RuRuRu612754 is offline
Isaac999
Senior Member
Join Date: Nov 2011
Location: Home
Old 11-30-2011 , 07:39   Re: check client fps_max number
Reply With Quote #6

Quote:
Originally Posted by Flipper_SPb View Post
Use query_client_cvar() to get fps_max value
http://www.amxmodx.org/funcwiki.php?...ry_client_cvar
Thanks i need too
__________________
Isaac999 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode