visa567 发表于 2009-10-11 17:32:35

R版主 请帮忙这个插件写的有问题吗?

这是个 任务失败插件小弟略做修改

主要更改了 文字提示不知道有问题没请高手指点
#include <amxmodx>
#include <amxmisc>
#include <engine>

new slaylosers;

public plugin_init() {
        register_plugin("AMX Slay Losers","1.76c","Dt_C.H.M")
        register_event("SendAudio","end_round","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
        slaylosers = register_cvar("mp_slaylosers","1")
}

public end_round()
{
        if(!get_pcvar_num(slaylosers)) return;
        new parm
        read_data(2,parm,31)
        set_task(1.0,"slay_those_losers",15120,parm, 31)
}

public slay_those_losers(parm[])
{
        new player, playersnum
        get_players(player,playersnum,"ea",(parm == 't') ? "CT" : "TERRORIST" )
        for(new i = 0; i < playersnum; ++i)
        {
                user_silentkill(player )
                if (playersnum)
                {
                        set_hudmessage( 255, 255, 240, -1.0, 0.6, 1, 0.6, 3.0, 0.2, 0.2, 3)
                        show_hudmessage(0, "任 务 失 败 & 不 赢 全 挂")
                }
        }
}

页: [1]
查看完整版本: R版主 请帮忙这个插件写的有问题吗?