点通粉丝 发表于 2009-1-13 13:11:50

#include <amxmod>

//----------------------------------------------------------------------------------------------

public plugin_init()
{
// Plugin Info
register_plugin("H-XueBao","1.0","duper/Rockell & X-man")
register_cvar("amx_medkit", "1")
register_cvar("amx_medkithealth", "5")
register_event("ResetHUD", "newRound","b")
register_event("DeathMsg","deathevent","a")
}

//----------------------------------------------------------------------------------------------

public newRound()
{
new chocolate = find_ent_by_class(-1, "chocolate")
while(chocolate) {
remove_entity(chocolate)
chocolate = find_ent_by_class(chocolate, "chocolate")
}
return PLUGIN_CONTINUE
}
//----------------------------------------------------------------------------------------------

public deathevent()
{
if ( !get_cvar_num("amx_medkit") )
return PLUGIN_CONTINUE

new killer = read_data(1)
new victim = read_data(2)
if ( killer != victim )
{
createChocolate(victim)
}
if(is_user_connected(victim))
cs_reset_user_model(victim)
return PLUGIN_CONTINUE
}
//----------------------------------------------------------------------------------------------

public createChocolate(victim)
{
new Float:vAim, Float:vOrigin
entity_get_vector(victim, EV_VEC_origin, vOrigin)
VelocityByAim(victim, random_num(2, 4), vAim)

vOrigin += vAim
vOrigin += vAim
vOrigin += 30.0

new chocolate = create_entity("info_target")
entity_set_string(chocolate, EV_SZ_classname, "chocolate")
entity_set_model(chocolate, "models/chick.mdl")
entity_set_size(chocolate, Float:{-2.5, -2.5, -1.5}, Float:{2.5, 2.5, 1.5})
entity_set_int(chocolate, EV_INT_solid, 2)
entity_set_int(chocolate, EV_INT_movetype, 6)
entity_set_vector(chocolate, EV_VEC_origin, vOrigin)
}

//----------------------------------------------------------------------------------------------

public plugin_precache() {
precache_model("models/chick.mdl")
precache_sound( "misc/killChicken.wav")
}

//----------------------------------------------------------------------------------------------

public pfn_touch(ptr, ptd){
if(!is_valid_ent(ptd) || !is_valid_ent(ptr))
return PLUGIN_CONTINUE

if(!is_user_connected(ptd) || !is_user_alive(ptd))
return PLUGIN_CONTINUE

new classname
entity_get_string(ptr, EV_SZ_classname, classname, 31)
if(equal(classname, "chocolate"))
{
new gOrigHealth = get_user_health(ptd)
new health = gOrigHealth + get_cvar_num("amx_medkithealth")
set_user_health(ptd, health)
emit_sound(ptd,CHAN_VOICE,"misc/killChicken.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
remove_entity(ptr)
}
return PLUGIN_CONTINUE
}   

public client_death(killer, victim, wpnindex, hitplace, TK)
{
        if(wpnindex == CSW_C4&& is_user_connected(victim))
                cs_reset_user_model(victim)
} 20# 点通粉丝

死后变小鸡血包+5HP

点通粉丝 发表于 2009-1-13 13:14:14

/* Nomore Grenadeversion 0.1.0      Date:05/30/2003
*
*
* (c) Copyright 2003, Coolzsb@21cn.com
*
*/

#include <amxmod>


new he
new flashg
new smoke

public reset_hud(id) {
    he = 0
    flashg = 0
    smoke = 0
    return PLUGIN_CONTINUE
}

public hebuy(id){
    if (he){
      engclient_cmd(id,"menuselect","10")
      client_print(id,print_center,"Ni Zhi Neng Mai 1 Ke Shou Lei !")
    }
    he++
    return PLUGIN_CONTINUE
}

public flashbuy(id){
    if (flashg>1){
      engclient_cmd(id,"menuselect","10")
      client_print(id,print_center,"Ni Zhi Neng Mai 1 Ke Shan Guang Dan !")
    }

    flashg++

    return PLUGIN_CONTINUE
}

public smokebuy(id){
    if (smoke){
      engclient_cmd(id,"menuselect","10")
      client_print(id,print_center,"Ni Zhi Neng Mai 1 Ke Yan Wu Dan !")
    }
    smoke++
    return PLUGIN_CONTINUE
}


public plugin_init(){
    register_plugin("Nomore Grenade","0.1.0","Coolzsb")
    register_menucmd(register_menuid("BuyItem"),1<<3,"hebuy")
    register_menucmd(register_menuid("BuyItem"),1<<2,"flashbuy")
    register_menucmd(register_menuid("BuyItem"),1<<4,"smokebuy")   
    register_event("ResetHUD", "reset_hud", "b");
    return PLUGIN_CONTINUE
} 21# 点通粉丝

每局自动送o3...o4....o5

点通粉丝 发表于 2009-1-13 13:17:08

*/


#include <amxmodx>
#include <csx>


new g_sprite;


public plugin_init()
{
        register_plugin("Death-info beams", "3.0", "BMJ");
        register_event("CS_DeathMsg", "death_msg", "a");

        register_cvar("amx_dib_holdtime", "100");
        register_cvar("amx_dib_width", "2");
        register_cvar("amx_dib_cross", "10");
        register_cvar("amx_dib_color", "255255000");
}


public plugin_precache()
{
        g_sprite = precache_model("sprites/dot.spr");
}


public death_msg()
{
        new killer = read_data(1);
        new victim = read_data(2);
        if (killer == victim)
                return PLUGIN_HANDLED;

        new vec_killer;
        new vec_victim;
        get_user_origin(killer, vec_killer, 1);
        get_user_origin(victim, vec_victim);

        new color;
        get_cvar_string("amx_dib_color", color, 11);
        new b = str_to_num(color);
        color = 0;
        new g = str_to_num(color);
        color = 0;
        new r = str_to_num(color);

        new size = get_cvar_num("amx_dib_cross");

        message_begin(MSG_ONE, SVC_TEMPENTITY, {0, 0, 0}, victim);
        write_byte(0);
        write_coord(vec_killer + size);
        write_coord(vec_killer);
        write_coord(vec_killer);
        write_coord(vec_killer - size);
        write_coord(vec_killer);
        write_coord(vec_killer);
        write_short(g_sprite);
        write_byte(1);
        write_byte(1);
        write_byte(get_cvar_num("amx_dib_holdtime"));        // x 0.1
        write_byte(get_cvar_num("amx_dib_width"));        // x 0.1
        write_byte(0);
        if (get_user_team(killer) == 1)
        {
                write_byte(255);
                write_byte(255);
                write_byte(0);
        }
        else
        {
                write_byte(255);
                write_byte(255);
                write_byte(0);
        }
        write_byte(100);
        write_byte(0);
        message_end();

        message_begin(MSG_ONE, SVC_TEMPENTITY, {0, 0, 0}, victim);
        write_byte(0);
        write_coord(vec_killer);
        write_coord(vec_killer + size);
        write_coord(vec_killer);
        write_coord(vec_killer);
        write_coord(vec_killer - size);
        write_coord(vec_killer);
        write_short(g_sprite);
        write_byte(1);
        write_byte(1);
        write_byte(get_cvar_num("amx_dib_holdtime"));        // x 0.1
        write_byte(get_cvar_num("amx_dib_width"));        // x 0.1
        write_byte(0);
        if (get_user_team(killer) == 1)
        {
                write_byte(255);
                write_byte(255);
                write_byte(0);
        }
        else
        {
                write_byte(255);
                write_byte(255);
                write_byte(0);
        }
        write_byte(100);
        write_byte(0);
        message_end();

        message_begin(MSG_ONE, SVC_TEMPENTITY, {0, 0, 0}, victim);
        write_byte(0);
        write_coord(vec_killer);
        write_coord(vec_killer);
        write_coord(vec_killer + size);
        write_coord(vec_killer);
        write_coord(vec_killer);
        write_coord(vec_killer - size);
        write_short(g_sprite);
        write_byte(1);
        write_byte(1);
        write_byte(get_cvar_num("amx_dib_holdtime"));        // x 0.1
        write_byte(get_cvar_num("amx_dib_width"));        // x 0.1
        write_byte(0);
        if (get_user_team(killer) == 1)
        {
                write_byte(255);
                write_byte(255);
                write_byte(0);
        }
        else
        {
                write_byte(255);
                write_byte(255);
                write_byte(0);
        }
        write_byte(100);
        write_byte(0);
        message_end();

        message_begin(MSG_ONE, SVC_TEMPENTITY, {0, 0, 0}, victim);
        write_byte(0);
        write_coord(vec_victim + size);
        write_coord(vec_victim);
        write_coord(vec_victim);
        write_coord(vec_victim - size);
        write_coord(vec_victim);
        write_coord(vec_victim);
        write_short(g_sprite);
        write_byte(1);
        write_byte(1);
        write_byte(get_cvar_num("amx_dib_holdtime"));        // x 0.1
        write_byte(get_cvar_num("amx_dib_width"));        // x 0.1
        write_byte(0);
        if (get_user_team(victim) == 1)
        {
                write_byte(255);
                write_byte(255);
                write_byte(0);
        }
        else
        {
                write_byte(255);
                write_byte(255);
                write_byte(0);
        }
        write_byte(100);
        write_byte(0);
        message_end();

        message_begin(MSG_ONE, SVC_TEMPENTITY, {0, 0, 0}, victim);
        write_byte(0);
        write_coord(vec_victim);
        write_coord(vec_victim + size);
        write_coord(vec_victim);
        write_coord(vec_victim);
        write_coord(vec_victim - size);
        write_coord(vec_victim);
        write_short(g_sprite);
        write_byte(1);
        write_byte(1);
        write_byte(get_cvar_num("amx_dib_holdtime"));        // x 0.1
        write_byte(get_cvar_num("amx_dib_width"));        // x 0.1
        write_byte(0);
        if (get_user_team(victim) == 1)
        {
                write_byte(255);
                write_byte(255);
                write_byte(0);
        }
        else
        {
                write_byte(255);
                write_byte(255);
                write_byte(0);
        }
        write_byte(100);
        write_byte(0);
        message_end();

        message_begin(MSG_ONE, SVC_TEMPENTITY, {0, 0, 0}, victim);
        write_byte(0);
        write_coord(vec_victim);
        write_coord(vec_victim);
        write_coord(vec_victim + size);
        write_coord(vec_victim);
        write_coord(vec_victim);
        write_coord(vec_victim - size);
        write_short(g_sprite);
        write_byte(1);
        write_byte(1);
        write_byte(get_cvar_num("amx_dib_holdtime"));        // x 0.1
        write_byte(get_cvar_num("amx_dib_width"));        // x 0.1
        write_byte(0);
        if (get_user_team(victim) == 1)
        {
                write_byte(255);
                write_byte(255);
                write_byte(0);
        }
        else
        {
                write_byte(255);
                write_byte(255);
                write_byte(0);
        }
        write_byte(100);
        write_byte(0);
        message_end();

        message_begin(MSG_ONE, SVC_TEMPENTITY, {0, 0, 0}, victim);
        write_byte(0);
        write_coord(vec_killer);
        write_coord(vec_killer);
        write_coord(vec_killer);
        write_coord(vec_victim);
        write_coord(vec_victim);
        write_coord(vec_victim);
        write_short(g_sprite);
        write_byte(1);
        write_byte(1);
        write_byte(get_cvar_num("amx_dib_holdtime"));        // x 0.1
        write_byte(get_cvar_num("amx_dib_width"));        // x 0.1
        write_byte(0);
        write_byte(r);
        write_byte(g);
        write_byte(b);
        write_byte(100);
        write_byte(0);
        message_end();

        return PLUGIN_HANDLED;
}dib.sma                        ; 死忘射线

点通粉丝 发表于 2009-1-13 13:19:03

*/

#include <amxmod>
new planter
new realplanter=0
new realplanterid
new ifbombed=2
new defuser
new realdefuser
new realdefuserid
new awardshp
new awardsfrags
new awardsmoney

public get_awardmode() {
        new awardmode
        get_cvar_string("amx_bomb_awards",awardmode,10)
        awardshp=get_cvar_num("amx_bombawards_hp")
        if ((awardshp<0 )||(awardshp>155)){
                awardshp=50
        }
        awardsfrags=get_cvar_num("amx_bombawards_frags")
        if ((awardsfrags<0 )||(awardsfrags>5)){
                awardsfrags=3
        }
        awardsmoney=get_cvar_num("amx_bombawards_money")
        if ((awardsmoney<0)||(awardsmoney>5000)){
                awardsmoney=500
        }
        return read_flags(awardmode)
}
public got_bomb(id){
        planter = id
        defuser = 0
}
public bdef_g(id){
        if (!(read_data(1) == 3)){
                defuser = id
        }
}
public bomb_planted(){
        new awardmode = get_awardmode()
        realplanter=planter
        ifbombed=2
        if (awardmode&1){
                if (get_user_health(realplanter)<100){
                        set_user_health(realplanter,get_user_health(realplanter)+awardshp)
                }
                else{
                        set_user_health(realplanter,100+awardshp)
                }
                realplanterid=get_user_userid(realplanter)
        }
        if (awardmode&4){
                if ((get_user_money(realplanter)+awardsmoney)<16000){
                        set_user_money(realplanter,get_user_money(realplanter)+awardsmoney)
                }
                else{
                        set_user_money(realplanter,16000)
                }
                new name
                get_user_name(realplanter,name,31)
                set_hudmessage(85, 62, 210, 0.03, 0.85, 0, 6.0, 6.0, 0.5, 0.15, 3)
                show_hudmessage(0,"[%s] Fang Zhi C4+ %d$$$",name,awardsmoney)
                client_cmd(0,"spk djeyl/c4start")
        }
}
public bomb_defused(){
        new awardmode = get_awardmode()
        realdefuser=defuser
        ifbombed=0
        if (awardmode&1){
                if (get_user_health(realdefuser)<100){
                        set_user_health(realdefuser,get_user_health(realdefuser)+awardshp)
                }
                else{
                        set_user_health(realdefuser,100+awardshp)
                }
                realdefuserid=get_user_userid(realdefuser)
        }
        if (awardmode&2){
                set_user_frags(realdefuser,get_user_frags(realdefuser)+awardsfrags)
                set_user_frags(realplanter,get_user_frags(realplanter)-awardsfrags)
        }
        if (awardmode&4){
                // set_user_money(realplanter,get_user_money(realplanter)-awardsmoney)
                if ((get_user_money(realdefuser)+awardsmoney)<16000){
                        set_user_money(realdefuser,get_user_money(realdefuser)+awardsmoney)
                }
                else{
                        set_user_money(realdefuser,16000)
                }
                new name
                get_user_name(realdefuser,name,31)
                set_hudmessage(85, 62, 210, 0.03, 0.85, 0, 6.0, 6.0, 0.5, 0.15, 3)
                show_hudmessage(0,"%s DeDao $ %d $$$$",name,awardsmoney)
                client_cmd(0,"spk djeyl/goal_1")
        }
       
}
public Target_Bombed(){
        new awardmode = get_awardmode()
        ifbombed=1
        if (awardmode&2){
                set_user_frags(realplanter,get_user_frags(realplanter)+awardsfrags)
        }
        //if (awardmode&4){
        //if ((get_user_money(realplanter)+awardsmoney)<16000){
        //set_user_money(realplanter,get_user_money(realplanter)+awardsmoney)
        //}
        //else{
        //set_user_money(realplanter,16000)
        //}
        //}
}
public restartround(){
        realplanter=0
        realdefuser=0
}
public round_start(){
        new awardmode = get_awardmode()
        if (awardmode&1){
                new team_name
                if (get_user_userid(realplanter)==realplanterid){
                        get_user_team(realplanter,team_name,1)
                        if (team_name == 'T') {
                                switch (ifbombed){
                                        //case 1: set_user_health(realplanter,100+awardshp) //I think this must be unfair to CT
                                        case 0: set_user_health(realplanter,100-awardshp)
                                }
                        }
                }
                if (get_user_userid(realdefuser)==realdefuserid){
                        get_user_team(realdefuser,team_name,1)
                        if (team_name == 'C') {
                                set_user_health(realdefuser,100+awardshp)
                        }
                }
        }
}
public plugin_init(){
        register_plugin("H-FangBao","0.1.3","Coolzsb")
        register_event("StatusIcon", "got_bomb", "be", "1=1", "1=2", "2=c4")
        register_event("SendAudio", "bomb_planted", "a", "2&%!MRAD_BOMBPL")
        register_event("SendAudio", "bomb_defused", "a", "2&%!MRAD_BOMBDEF")
        register_event("TextMsg", "Target_Bombed", "a", "2&#Target_Bombed")
        register_event("TextMsg","restartround","a","2&#Game_will_restart_in")
        register_event("BarTime", "bdef_g", "be", "1=10", "1=5","1=3")
        register_event("ResetHUD", "round_start", "be")
        register_cvar("amx_bomb_awards","c")
        register_cvar("amx_bombawards_hp","50")
        register_cvar("amx_bombawards_frags","3")
        register_cvar("amx_bombawards_money","2888")
        return PLUGIN_CONTINUE
}
23# 点通粉丝

放包奖励2888$

点通粉丝 发表于 2009-1-13 13:20:13

#include <amxmod>
public headshot(){
        new killer = read_data(1)
        new victim = read_data(2)
        new Killer
        new Victim
        get_user_name(killer, Killer,32)
        get_user_name(victim, Victim,32)
        if(get_user_team(killer) != get_user_team(victim)){
                new x = random_num(1888, 1888)
                set_user_money(killer,x+get_user_money(killer))
                set_hudmessage(85, 62, 210, 0.03, 0.85, 0, 6.0, 6.0, 0.5, 0.15, 3)
                show_hudmessage(0, "[%s] Bao Tou + %d $$$",Killer,x)
        }
        return PLUGIN_CONTINUE
}
public plugin_init() {
        register_plugin("H-BaoTou","0.0","default")
        register_event("DeathMsg","headshot","ade","3=1","5=0")
        return PLUGIN_CONTINUE
} 24# 点通粉丝

爆头奖1888

点通粉丝 发表于 2009-1-13 13:21:30


#include <amxmod>

public plugin_init() {
        register_plugin("H-DaoSha","0.2+","huyongbo")
        register_event("DeathMsg","knife_kill","a","4&kni")
        return PLUGIN_CONTINUE
}

// when someone knived
public knife_kill(){
        new killer_id = read_data(1)
        new victim_id = read_data(2)
        new killer_name, victim_name
        get_user_name(killer_id,killer_name,32)
        get_user_name(victim_id,victim_name,32)
        new x = random_num(8888, 8888)
        set_user_money(killer_id,x+get_user_money(killer_id))
        set_hudmessage(255,30,30,-1.2,0.23,0,6.0,6.0,0.5,0.15, 4)
        show_hudmessage(0,"[%s] Yong Dao Sha Ren + %d $$$",killer_name,x)
        //return PLUGIN_HANDLED
}
25# 点通粉丝

刀杀奖8888

点通粉丝 发表于 2009-1-13 13:23:48

*/

#include <amxmod>
#include <amxmisc>

#define SPEED 0.2

new g_startPos
new g_endPos
new g_scrollMsg
new g_displayMsg
new Float:g_xPos
new g_Length
new g_Frequency

public plugin_init(){
register_plugin("Scrolling Message","0.9","default")
register_srvcmd("amx_scrollmsg","setMessage")
}

public showMsg(){
new a = g_startPos, i = 0

while( a < g_endPos )
    g_displayMsg = g_scrollMsg
   
g_displayMsg = 0

if (g_endPos < g_Length)
    g_endPos++
   
if (g_xPos > 0.35)
    g_xPos -= 0.0063
else
{
    g_startPos++
    g_xPos = 0.35
}

set_hudmessage(250, 0, 0, g_xPos, 0.90, 2, SPEED, SPEED, 0.05, 0.05, 2)
show_hudmessage(0,g_displayMsg)
}

public msgInit(){
g_endPos = 1
g_startPos = 0
g_xPos = 0.65
set_task( SPEED , "showMsg",123,"",0,"a", g_Length + 48)
client_print(0,print_console,g_scrollMsg)
}

public setMessage(id,level,cid) {
if (!cmd_access(id,level,cid,3))
    return PLUGIN_HANDLED
remove_task(123) /* remove current messaging */
read_argv(1,g_scrollMsg,380)
new hostname
get_cvar_string("hostname",hostname,63)
replace(g_scrollMsg,380,"%hostname%",hostname)
g_Length = strlen(g_scrollMsg)
new mytime
read_argv(2,mytime,31)
g_Frequency = strtonum(mytime)
if (g_Frequency > 0) {   
    new minimal = floatround((g_Length + 48) * (SPEED + 0.1))
    if (g_Frequency < minimal){
      console_print(id,"Minimal frequency for this message is %d seconds",minimal)
      g_Frequency = minimal
    }
    console_print(id,"Scrolling message displaying frequency: %d:%02d minutes",
      g_Frequency/60,g_Frequency%60)
    set_task(float(g_Frequency),"msgInit",123,"",0,"b")
}
else
    console_print(id,"Scrolling message disabled")
return PLUGIN_HANDLED
} 26# 点通粉丝

下方显示一条发光滚动信息

点通粉丝 发表于 2009-1-13 13:51:05

#include <amxmodx>
#include <fakemeta>

#define PLUGIN "Solar Flash"
#define VERSION "1.0"
#define AUTHOR "anakin_cstrike"

new
toggle_plugin, toggle_type, toggle_color,
toggle_duration, toggle_trail, toggle_light, toggle_vel;
new g_trail;

new p_color, color;
new p_duration, p_type;

/* Initialization */
public plugin_init()
{
        register_plugin(PLUGIN, VERSION, AUTHOR);
       
        register_event("HLTV","nround","a","1=0","2=0");
        register_message(get_user_msgid("ScreenFade"), "screenfade_message");
       
        // Fakemeta Forwards
        register_forward(FM_Touch,"fw_touch");
        register_forward(FM_SetModel,"fw_setmodel",1);
        register_forward(FM_EmitSound,"fw_emitsound");
       
        // Cvars
        toggle_plugin = register_cvar("solarflash","1");
        toggle_type = register_cvar("solarflash_colortype","1");
        toggle_color = register_cvar("solarflash_rgb","255 170 45");
        toggle_duration = register_cvar("solarflash_duration","7");
        toggle_trail = register_cvar("solarflash_trail","1");
        toggle_light = register_cvar("solarflash_light","1");
        toggle_vel = register_cvar("solarflash_velocity","0");
       
}
/* Precache */
public plugin_precache()
        g_trail = precache_model("sprites/laserbeam.spr");

/* New Round - get cvar value */
public nround()
{
        get_pcvar_string(toggle_color, p_color, 15);
        parse(p_color,color,3,color,3,color,3);
        p_duration = get_pcvar_num(toggle_duration);
        p_type = get_pcvar_num(toggle_type);
       
}

/* Screenfade - change color */
public screenfade_message(msgid,msgtype,id)
{
        if(get_pcvar_num(toggle_plugin) != 1)
                return PLUGIN_CONTINUE;
       
        if(get_msg_arg_int(4) == 255 && get_msg_arg_int (5) == 255 && get_msg_arg_int(6) == 255 && get_msg_arg_int(7) > 199)
        {
                set_msg_arg_int( 1, ARG_SHORT , convert(p_duration) );
                set_msg_arg_int( 2, ARG_SHORT , convert(p_duration) );
                set_msg_arg_int( 4, ARG_BYTE , p_type == 1 ? str_to_num(color) : random(255) );
                set_msg_arg_int( 5, ARG_BYTE , p_type == 1 ? str_to_num(color) : random(255) );
                set_msg_arg_int( 6, ARG_BYTE , p_type == 1 ? str_to_num(color) : random(255) );
        }
       
        return PLUGIN_CONTINUE;
}

/* Setmodel forward - glow, trail & change velocity */
public fw_setmodel(ent,model[])
{
        if(get_pcvar_num(toggle_plugin) != 1)
                return FMRES_IGNORED;               
        if(!equali(model,"models/w_flashbang.mdl"))
                return FMRES_IGNORED;
        set_pev(ent,pev_bInDuck,1);
       
        Render(ent,kRenderFxGlowShell,p_type == 1 ? str_to_num(color) : random(255),p_type == 1 ? str_to_num(color) : random(255),p_type == 1 ? str_to_num(color) : random(255),kRenderNormal,15);
       
        if(get_pcvar_num(toggle_vel) == 1)
        {
                new Float:vel;
               
                vel = float(random(300));
                vel = float(random(300));
                vel = float(random(300));
               
                set_pev(ent,pev_velocity,vel);
        }
        if(get_pcvar_num(toggle_trail) == 1)
                Follow(ent,g_trail,10,5,p_type == 1 ? str_to_num(color) : random(255),p_type == 1 ? str_to_num(color) : random(255),p_type == 1 ? str_to_num(color) : random(255),175);
               
        return FMRES_IGNORED;
}

/* Touch forward - light effects */
public fw_touch(touched, toucher)
{
        if(get_pcvar_num(toggle_plugin) != 1)
                return FMRES_IGNORED;               
        if(get_pcvar_num(toggle_light) != 1)
                return FMRES_IGNORED;
               
        if(!pev(toucher,pev_bInDuck))
                return FMRES_IGNORED;
               
        if(!touched)
        {
                new Float:origin;
                pev(toucher, pev_origin, origin);
                Light(origin);
               
        }
       
        return FMRES_IGNORED;
}

/* Emit sound Forward - set glow back to normal */
public fw_emitsound(Ent)
{
        if(pev(Ent,pev_bInDuck))
                Render(Ent,kRenderFxNone,255,255,255,15);
}

/* Usefull stocks */

// fakemeta rendering
Render(index, fx=kRenderFxNone, r=255, g=255, b=255,render=kRenderNormal,amount=16)
{
        set_pev(index, pev_renderfx, fx);
        new Float:RenderColor;
        RenderColor = float(r);
        RenderColor = float(g);
        RenderColor = float(b);
        set_pev(index, pev_rendercolor, RenderColor);
        set_pev(index, pev_rendermode, render);
        set_pev(index, pev_renderamt, float(amount));
        return 1;
}

// set beam follow
Follow(entity,index,life,width,red,green,blue,alpha)
{
        message_begin(MSG_BROADCAST, SVC_TEMPENTITY);
        write_byte(TE_BEAMFOLLOW);
        write_short(entity);
        write_short(index);
        write_byte(life);
        write_byte(width);
        write_byte(red);
        write_byte(green);
        write_byte(blue);
        write_byte(alpha);
        message_end();
}

// dyanamic light
Light(Float:origin)
{
        message_begin(MSG_BROADCAST, SVC_TEMPENTITY);
        write_byte(TE_DLIGHT);
        write_coord(floatround(origin));
        write_coord(floatround(origin));
        write_coord(floatround(origin));
        write_byte(10);
        write_byte(p_type == 1 ? str_to_num(color) : random(255));
        write_byte(p_type == 1 ? str_to_num(color) : random(255));
        write_byte(p_type == 1 ? str_to_num(color) : random(255));
        write_byte(5);
        write_byte(20);
        message_end();
}

// convert seconds to units
convert(num) return ((1<<12) * (num));
o3可以控制闪光的时间源码 27# 点通粉丝

点通粉丝 发表于 2009-1-13 14:07:01

版主五帮手加返..五六百.点通币来用用啊..甘样才有动力的啊

8874323 发表于 2009-1-13 14:28:36

奖励金钱、血腥方面的还有不?
页: 1 2 [3] 4 5 6 7
查看完整版本: 经点通高手重新改过的一些好插件源码