终于找到了ONE NAME 的AMX代码。希望高手转换成FOR AMXX的
--------------------------------------------------------------------------------* AMX Mod script.
*
* (c) Copyright 2002, OLO
* This file is provided as is (no warranties).
*
*/
#include <amxmod>
new bool:dontcheck
public client_infochanged(id){
if (dontcheck){
dontcheck = false
}
else if (is_user_connected(id)){
new newname, oldname
get_user_info(id, "name", newname,31)
get_user_name(id,oldname,31)
if (!equal(oldname,newname)){
dontcheck = 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
} 直接编译即可 编译好后,不知道如何使用! 如何编译啊?
页:
[1]