|
发表于 2004-7-2 03:00:23
|
显示全部楼层
|阅读模式
来自 中国–广东–深圳–宝安区
#include <amxmod>
#include <amxmisc>
new infmoney = 0
public plugin_init() {
register_plugin("Infinite Money","1.0","Zaltoa")
register_event("ResetHUD","newround","b")
register_concmd("amx_money","cmdmoney",1,"1 = on 0 = off")
}
public cmdmoney(id){
new arg[2]
read_argv(1,arg,1)
set_hudmessage(255, 000, 128, -1.0, 0.25, 0, 1.0, 5.0, 0.1, 0.2, 2)
if(equal(arg,"1")){
infmoney = 1
show_hudmessage(0,"Admin has turned on infinite money")
}else if (equal(arg,"0")){
infmoney = 0
show_hudmessage(0,"Admin has turned off infinite money")
}
return PLUGIN_CONTINUE
}
public newround(id){
if(infmoney==1)
return PLUGIN_HANDLED
set_user_money(id,8888,1)
}
上面这段代码在amx下编译通过,每局每个人的钱数都是8888,在混战服务器里很好用。
现在在amxx下无法编译通过,求大大们帮助修改一下能在amxx下使用!千谢万谢! |
|