|
发表于 2004-12-22 13:45:57
|
显示全部楼层
|阅读模式
来自 中国–宁夏–中卫
* AMX Mod script.
*
* (c) Copyright 2002, OLO
* This file is provided as is (no warranties).
*
*/
#include <amxmod>
new bool:dontcheck[33]
public client_infochanged(id){
if (dontcheck[id]){
dontcheck[id] = false
}
else if (is_user_connected(id)){
new newname[32], oldname[32]
get_user_info(id, "name", newname,31)
get_user_name(id,oldname,31)
if (!equal(oldname,newname)){
dontcheck[id] = true
client_print(id,print_chat,"** You are not allowed to change your name")
set_user_info(id,"name",oldname)
}
}
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin("One Name","0.9","default")
return PLUGIN_CONTINUE
} |
|