Raised This Month: $ Target: $400
 0% 

cl_ speeds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 01-17-2009 , 12:27   Re: cl_ speeds
Reply With Quote #1

Found it:
PHP Code:
/*    Copyright © 2009, ConnorMcLeod 

    Developer Check is free software; 
    you can redistribute it and/or modify it under the terms of the 
    GNU General Public License as published by the Free Software Foundation. 

    This program is distributed in the hope that it will be useful, 
    but WITHOUT ANY WARRANTY; without even the implied warranty of 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    GNU General Public License for more details. 

    You should have received a copy of the GNU General Public License 
    along with Developer Check; if not, write to the 
    Free Software Foundation, Inc., 59 Temple Place - Suite 330, 
    Boston, MA 02111-1307, USA. 
*/ 

#include <amxmodx> 

#define PLUGIN "Developer Check" 
#define AUTHOR "ConnorMcLeod" 
#define VERSION "0.0.1" 

#define SVC_DISCONNECT    2 

public plugin_init() 

    
register_plugin(PLUGINVERSIONAUTHOR


public 
client_putinserverid 

    
set_task(0.1"FirstCheck"id


public 
FirstCheck(id

    
CheckClientDeveloper(id


public 
SecondCheck(id

    if( 
is_user_connected(id) ) 
    { 
        
CheckClientDeveloper(id1
    } 


CheckClientDeveloper(idiSecondCheck=0

    static 
szSecondCheck[1
    
szSecondCheck[0] = iSecondCheck 
    query_client_cvar
(id"developer""Developer_Result"1szSecondCheck


public 
Developer_Result(const id, const szCvar[], const szValue[], const Parms[]) 

    static 
iiLen 
    iLen 
strlen(szValue
    for(
i=0i<iLeni++) 
    { 
        if( 
49 <= szValue[i] <= 57 
        { 
            if( 
Parms[0] ) 
            { 
                
kick_user(id,  
"You can't play here with cvar developer different from 0^nPlease remove line ^"alias developer^" from your .cfg"
            } 
            else 
            { 
                static 
szReCheck[1
                
szReCheck[0] = 
                client_cmd
(id"developer 0;alias developer"
                
// 10sec should be enough to avoid lag 
                
set_task(10.0"SecondCheck"id
            } 
            return 
        } 
    } 

    
client_cmd(id"developer 0;alias developer"


kick_user(id, const szKickMsg[]) 

    
emessage_begin(MSG_ONESVC_DISCONNECT_id// oranguntanz 
    
ewrite_string(szKickMsg
    
emessage_end() 

What do I have to alter to make it check cl_ speeds and kick if they are set over 400?
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-17-2009 , 12:32   Re: cl_ speeds
Reply With Quote #2

You can just use my other plugin : http://xtreme-jumps.eu/e107_plugins/...opic.php?99486
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 01:37.


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