hai1989 发表于 2004-12-22 13:47:22

终于找到了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
}

nwb13 发表于 2004-12-22 18:25:23

直接编译即可

gengxu 发表于 2004-12-25 13:17:06

编译好后,不知道如何使用!

lilos 发表于 2005-1-5 14:34:23

如何编译啊?
页: [1]
查看完整版本: 终于找到了ONE NAME 的AMX代码。希望高手转换成FOR AMXX的