zh8829zh 发表于 2010-6-26 10:39:48

ZP3.62中的狂暴僵尸

#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

#define TASK_CHECK 50000
#define ID_CHECK (taskid - TASK_CHECK)
// Thanks L//
new const zp_class_name[] = { "Zombie Rage" }
new const zp_class_info[] = { "Has radioactivity" }
new const zp_class_model[] = { "zombie_source" }
new const zp_class_claw[] = { "v_knife_zombie.mdl" }
const zp_class_health = 2500
const zp_class_speed = 300
const Float:zp_class_gravity = 0.87
const Float:zp_class_kb = 1.5

new zp_class_rage

public plugin_precache()       
        zp_class_rage = zp_register_zombie_class(zp_class_name, zp_class_info, zp_class_model, zp_class_claw, zp_class_health, zp_class_speed, zp_class_gravity, zp_class_kb)


public plugin_init()
        register_plugin(" Zombie Rage", "1.4", "Speed!")



public zp_user_infected_post(id, infector)
        check(id)


public zp_user_humanized_post(id)
        fm_set_rendering(id, kRenderFxGlowShell, Float:{ 0.0, 0.0, 0.0 }, kRenderNormal, 25)

public efectos(taskid)
if (zp_get_user_zombie_class(ID_CHECK) == zp_class_rage && zp_get_user_zombie(ID_CHECK) && !zp_get_user_nemesis(ID_CHECK))
{
        if(pev(ID_CHECK, pev_maxspeed) != 1.0)
                fm_set_rendering(ID_CHECK, kRenderFxGlowShell, Float:{ 0.0, 255.0, 0.0 }, kRenderNormal, 25)
        set_task(0.2, "efectos", ID_CHECK+TASK_CHECK)
}

public check(id)
        if (zp_get_user_zombie_class(id) == zp_class_rage && zp_get_user_zombie(id) && !zp_get_user_nemesis(id))
                efectos(id+TASK_CHECK)
       
public client_disconnect(id)
        remove_task(id+TASK_CHECK)

stock fm_set_rendering(entity, fx = kRenderFxNone, Float:color = { 255.0, 255.0, 255.0 }, render = kRenderNormal, amount = 16)
{
    set_pev(entity, pev_renderfx, fx)
    set_pev(entity, pev_rendercolor, color)
    set_pev(entity, pev_rendermode, render)
    set_pev(entity, pev_renderamt, float(amount))
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0{\\ fonttbl{\\ f0\\ fnil\\ fcharset0 Tahoma;}}\n{\\ colortbl ;\\ red0\\ green0\\ blue0;}\n\\ viewkind4\\ uc1\\ pard\\ cf1\\ lang1034\\ f0\\ fs16 \n\\ par }
*/

laoklaole 发表于 2011-9-23 14:14:30

怎么是英文的哦
页: [1]
查看完整版本: ZP3.62中的狂暴僵尸