|
发表于 2009-10-11 17:32:35
|
显示全部楼层
|阅读模式
来自 中国–湖北–武汉
这是个 任务失败插件 小弟略做修改
主要更改了 文字提示 不知道有问题没 请高手指点
- #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[32]
- read_data(2,parm,31)
- set_task(1.0,"slay_those_losers",15120,parm, 31)
- }
- public slay_those_losers(parm[])
- {
- new player[32], playersnum
- get_players(player,playersnum,"ea",(parm[7] == 't') ? "CT" : "TERRORIST" )
- for(new i = 0; i < playersnum; ++i)
- {
- user_silentkill(player[i] )
- if (playersnum)
- {
- set_hudmessage( 255, 255, 240, -1.0, 0.6, 1, 0.6, 3.0, 0.2, 0.2, 3)
- show_hudmessage(0, "任 务 失 败 & 不 赢 全 挂")
- }
- }
- }
复制代码 |
|