复制程式
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)
{
if (enabled[id])
{
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
}
return FMRES_IGNORED;
}
if (!enabled[id])
{
set_user_health(id, COIN_HEALTH) //让此人血量变成9000
client_print(id, print_chat, "[ZP] ????的核心系统被GoGoGo Coins强大力量唤醒了 你的速度,力量,将会全面提升")
enabled[id] = true
}
set_user_maxspeed(id, COIN_SPEED) //让此人的移动速度变成290
set_user_gravity(id, COIN_GRAVITY) //让此人的重力变成600
return FMRES_IGNORED;
}