#include <amxmodx>
#define PLUGIN "Block Change Name"
#define VERSION "1.0"
#define AUTHOR "DJ_WEST"
#define MAX_PLAYERS 32
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_infochanged(id)
{
if (is_user_connected(id))
{
new s_NewName[32], s_OldName[32]
get_user_info(id, "name", s_NewName, charsmax(s_NewName))
get_user_name(id, s_OldName, charsmax(s_OldName))
if (!equali(s_OldName, s_NewName))
{
client_cmd(id, "reconnect")
}
}
}Добавлено (2012-10-09, 12:16)
---------------------------------------------
Я только не понимаю зачем реконнект?