|
发表于 2005-5-14 12:35:11
|
显示全部楼层
|阅读模式
来自 中国–广东–佛山–顺德区
请教一下
/* 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
}
怎么才可以正确地改为中文提示,因为英肓实在是太多啦,包括我在内。
/* 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,"** 游戏中不可以更改名字,请退出游戏再更改")
set_user_info(id,"name",oldname)
}
}
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin("One Name","0.9","default")
return PLUGIN_CONTINUE
}
我是这样子直接改,然后再用AMXX1.01上自带的编译软件重新编译了一下
可是测试的时候,发现在改名提示为乱码。
特来请教!!!! |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|