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(PLUGIN, VERSION, AUTHOR)
}
public client_putinserver( id )
{
set_task(0.1, "FirstCheck", id)
}
public FirstCheck(id)
{
CheckClientDeveloper(id)
}
public SecondCheck(id)
{
if( is_user_connected(id) )
{
CheckClientDeveloper(id, 1)
}
}
CheckClientDeveloper(id, iSecondCheck=0)
{
static szSecondCheck[1]
szSecondCheck[0] = iSecondCheck
query_client_cvar(id, "developer", "Developer_Result", 1, szSecondCheck)
}
public Developer_Result(const id, const szCvar[], const szValue[], const Parms[])
{
static i, iLen
iLen = strlen(szValue)
for(i=0; i<iLen; i++)
{
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] = 1
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_ONE, SVC_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?
__________________