搜索
查看: 2146|回复: 3

【拜求】同队闪光提醒插件~

[复制链接]
发表于 2011-5-6 12:37:37 | 显示全部楼层 |阅读模式 来自 福建厦门
被队友闪到,能单独一种颜色最好。然后不用惩罚(最多是罚钱,或者惩罚的部分可以开关)只要能在左下角聊天区域显示谁闪了我!就行了,纯净一点!
 楼主| 发表于 2011-5-6 12:50:07 | 显示全部楼层 来自 福建厦门
能否用下面这个改呢?添加一个左下角聊天区域,显示谁闪的!

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <csx>

#define PLUGIN    "TeamColorFlash"
#define VERSION    "1.0"
#define AUTHOR    "Dt-Club.net"

new g_nMsgScreenFade
new team

public plugin_init()
{
        register_plugin(PLUGIN,VERSION,AUTHOR)
        register_event("ScreenFade","FlashedEvent","be","4=255","5=255","6=255","7>199")
        RegisterHam(Ham_Think,"grenade","on_nadethink")
        g_nMsgScreenFade = get_user_msgid("ScreenFade")
}
public on_nadethink(id)
{
        team = pev(id,pev_team)
}

public grenade_throw(id, greindex, wpnid)
{
        if(wpnid==CSW_FLASHBANG)
        set_pev(greindex,pev_team,get_user_team(id))
}

public FlashedEvent( id )
{
        new iRed,iGreen,iBlue
        if (team==1)
        {
                iRed = 255
                iGreen = 90
                iBlue = 90
        }
        else
        {
                iRed = 125
                iGreen = 125
                iBlue =  255        
        }

        message_begin( MSG_ONE,g_nMsgScreenFade,{0,0,0},id )
        write_short( read_data( 1 ) )
        write_short( read_data( 2 ) )
        write_short( read_data( 3 ) )
        write_byte ( iRed )
        write_byte ( iGreen )
        write_byte ( iBlue )
        write_byte ( read_data( 7 ) )
        message_end()

        return PLUGIN_HANDLED
}
回复

使用道具 举报

发表于 2011-5-17 02:26:16 | 显示全部楼层 来自 广东广州
这个?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
回复

使用道具 举报

 楼主| 发表于 2011-5-26 09:11:17 | 显示全部楼层 来自 福建厦门
这个有惩罚。我是想要只提示哪个队友闪你,并且队友闪的颜色不一样
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表