Can anyone help with this code? I want to block name change in the server and if player connect to the server with advert like
PHP Code:
.com
.net
.org
.info
.biz
.co
.in
.cc
.bz
.ws
.me
.io
.eu
.tk
.gl
.ro
.edu
.lt
:27015
:27016
:27017
don't let him join to the server!
PHP Code:
public fwClientUserInfoChanged ( id, buffer )
{
if ( !is_user_connected( id ) )
return FMRES_IGNORED;
static name[ 32 ], val[ 32 ];
get_user_name( id, name, sizeof name - 1 );
engfunc( EngFunc_InfoKeyValue, buffer, g_name, val, sizeof val - 1 );
if ( equal( val, name ) )
return FMRES_IGNORED;
engfunc( EngFunc_SetClientKeyValue, id, buffer, g_name, name );
console_print( id, "%s", g_reason );
return FMRES_SUPERCEDE;
}