|
发表于 2012-12-13 10:49:23
|
显示全部楼层
|阅读模式
来自 中国–山东–青岛
希望来个好心人帮忙修改下开局刀战! 允许T 放置C4 源码如下:
#include <amxmodx>
#define PLUGIN "FirstRoundKnife"
#define VERSION "0.1"
#define AUTHOR "iG_os"
new bool:FirstRound = true
public switchweapon(id)
{
if (FirstRound)
{
engclient_cmd(id,"weapon_knife")
}
return PLUGIN_CONTINUE
}
public newround(id)
{
if (FirstRound)
{
set_task(3.0, "Mode_msg", id)
}
return PLUGIN_CONTINUE
}
public restartround(){
FirstRound = true
return PLUGIN_CONTINUE
}
public end_round(){
FirstRound = false
return PLUGIN_CONTINUE
}
public Mode_msg(id)
{
new msg[64]
format(msg,63,"第一局刀战模式!")
set_hudmessage(245, 255, 250, -1.0, 0.25, 0, 0.01, 15.0, 0.01, 0.01, -1)
show_hudmessage(id,msg)
}
public plugin_init(){
register_plugin(PLUGIN,VERSION,AUTHOR)
register_event("ResetHUD", "newround", "be")
register_event("TextMsg", "restartround", "a", "2&#Game_C", "2&#Game_w")
register_event("SendAudio", "end_round", "a", "2&%!MRAD_terwin", "2&%!MRAD_ctwin", "2&%!MRAD_rounddraw")
register_event("CurWeapon", "switchweapon", "be", "1=1","2!29")
} |
|