#include <amxmodx>
#define PLUGIN "Name Replacer"
#define VERSION "1.0"
#define TASK_NAME 06091993
new const g_szDefaultName[ ] = "Player";
new g_szRestrictedThings[ ][ ] =
{
"www.",
".ro",
".com",
".net",
":270",
"anzo",
"faradungi",
".org",
"Scorpionii",
"EVILZCS",
"PRONION",
".RO",
"player"
"#Cstrike"
}
public plugin_init( )
{
register_plugin( PLUGIN, VERSION, "dasds" );
// Add your code here...
}
public client_putinserver( id )
{
if( is_user_bot( id ) || is_user_hltv( id ) )
return;
if( !task_exists( id + TASK_NAME ) )
set_task( 1.5, "TaskCheckName", id + TASK_NAME );
}
public TaskCheckName( id )
{
id -= TASK_NAME;
if( !is_user_connected( id ) )
return;
new szName[ 32 ];
get_user_name( id, szName, sizeof ( szName ) -1 );
for( new i = 0; i < sizeof ( g_szRestrictedThings ); i++ )
{
if( containi( szName, g_szRestrictedThings[ i ] ) != -1 )
{
//client_cmd( id, "name ^"%s^"", g_szDefaultName );
set_user_info( id, "name", g_szDefaultName );
}
}
}