請"插入代碼"後才打上代碼
複製程式
public zp_extra_item_selected(player, itemid)
{
if (itemid == g_fumado)
{
fm_strip_user_weapons(player)
static red, green, blue
red = get_pcvar_num(r)
green = get_pcvar_num(g)
blue = get_pcvar_num(b)
if (get_pcvar_num(tryder_glow))
fm_set_rendering(player, kRenderFxGlowShell, red, green, blue, kRenderNormal, 20)
fm_give_item(player, "weapon_knife")
fm_give_item(player, "weapon_m4a1")
fm_give_item(id, "ammo_556nato")
fm_give_item(player, "weapon_elite")
fm_give_item(player, "weapon_flashbang")
fm_give_item(player, "weapon_hegrenade")
g_tryder[player] = true
fm_set_user_health(player, get_pcvar_num(tryder_health))
set_pev(player, pev_effects, pev(player, pev_effects) | EF_BRIGHTLIGHT)
fm_set_user_armor(player, get_pcvar_num(tryder_armor))
new name[32]
get_user_name(player, name, 31)
set_hudmessage(0, 255, 0, 0.05, 0.45, 1, 0.0, 5.0, 1.0, 1.0, -1)
show_hudmessage(0, "%s has become a Tryder!!", name)
if (get_pcvar_num(tryder_model))
set_task(0.1, "cambiar", player)
}
}