複製程式
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;
}