下面是引用 sk@.@ 于 2010-08-29 18:28 发表的 :
[code]public fw_PlayerPreThink(id)
{
if(!is_user_alive(id) || !zp_get_user_zombie(id) || zp_get_user_nemesis(id))
return FMRES_IGNORED;
if (zp_get_user_zombie_class(id) != g_zclass_with_something_amazing)
.......
经过我的一番后
因该是这样才对
public fw_PlayerPreThink(id)
{
if(!is_user_alive(id) || !zp_get_user_zombie(id) || zp_get_user_nemesis(id))
return FMRES_IGNORED;
if (zp_get_user_zombie_class(id) != g_zclass_with_something_amazing)
return FMRES_IGNORED;
if(zp_get_user_ammo_packs(id) < 250) //拥有的子殚包少于250个启动
{
set_user_health(id, zclass_health)
set_user_maxspeed(id, zclass_speed)
set_user_gravity(id, zclass_gravity)
client_print(id, print_chat, "[ZP] ????的核心系统不够力量启动了……")
enabled[id] = false
}
else
{
set_user_health(id, COIN_HEALTH) //让此人血量变成9000
client_print(id, print_chat, "[ZP] ????的核心系统被GoGoGo Coins强大力量唤醒了 你的速度,力量,将会全面提升")
enabled[id] = true
}
if (enabled[id])
{
set_user_maxspeed(id, COIN_SPEED) //让此人的移动速度变成290
set_user_gravity(id, COIN_GRAVITY) //让此人的重力变成600
}
return FMRES_IGNORED;
}
有错误再说.....