下面是引用 ffgh478tw 于 2013-01-31 20:34 发表的 :
为甚么我照着写却没办法转amxx??
#include <amxmodx>
#include <fun>
#include <cstrike>
public plugin_init()
.......
复制程式
#include <amxmodx>
#include <fun>
#include <cstrike>
public plugin_init()
{
register_plugin("bap", "1.0", "JJ")
register_clcmd("say /bap", "buyap")
}
public buyap(id)
{
if(cs_get_user_money(id) >= 5000 && get_user_health(id) <= 50)
{
set_user_health(id, get_user_health(id) - 50) //hp再减50?
set_user_armor(id, get_user_armor(id) + 100)
}
else
{
client_print(id, print_chat, "hp低于50不能买防感染护甲")
}
}