Remove Attached amxx file.
*Why change his name of player*?
Quote:
set_user_info(id, name, "Anti-Pub by: Forlinhas ")
|
Example:
Code:
if(xResult)
{
set_user_info(id, name, "Anti-Pub by: Forlinhas :)")
//set_user_info(id, name, szNewName[ id ] ); // this is only example
//server_cmd( "kick #%d ^"XXX^"", get_user_userid( id ) ); // this is only example
return FMRES_HANDLED
}
Just do a test as someone changes the name with an IP address block it will not happen.
And add a test that it detects a player login with IP will give KICK.
Code:
public client_connect( id )
{
get_user_name.....
if( StringCheck( szNewName[ id ] ) )
server_cmd( "kick #%d ^"Inappropriate name^"",get_user_userid( id ) );
}