|
发表于 2006-12-12 21:59:46
|
显示全部楼层
来自 中国–广东–深圳–南山区
回复: 【发布】【原创】新刀、O3、O4、O5、C4及手枪战插件(可自定义,含无限雷和无限
Post by Rulzy
[php]
public client_command(id)
{
new command[32]
read_argv(0, command, 31)
if(equali(command, "lastinv")) //按Q键
{
//在这里加上你的代码
return PLUGIN_HANDLED 或 PLUGIN_CONTINUE(根据情况)
}
}
[/php]
我不懂怎么加代码,可以帮我搞定不?
就把这段替换为你告诉我那段,谢啦
- public eNewRound()
- {
- if(g_Restart==1)
- {
- g_Restart = 0
- g_RestRoundCounter = 0
- }
- g_RestRoundCounter++
- if(g_RestRoundCounter>g_RestrictCount||g_weaponflags[g_RestRoundCounter-1]&FLAG_Z) return
- new iLen = format(g_HintMsg, 255, "注意,本局可用武器:^n刀, ")
- if(g_weaponflags[g_RestRoundCounter-1]&FLAG_D)
- iLen += format(g_HintMsg[iLen], 255-iLen, "C4, ")
- if(g_weaponflags[g_RestRoundCounter-1]&FLAG_F)
- iLen += format(g_HintMsg[iLen], 255-iLen, "闪光弹(无限), ")
- else if(g_weaponflags[g_RestRoundCounter-1]&FLAG_A)
- iLen += format(g_HintMsg[iLen], 255-iLen, "闪光弹, ")
- if(g_weaponflags[g_RestRoundCounter-1]&FLAG_G)
- iLen += format(g_HintMsg[iLen], 255-iLen, "高爆手雷(无限), ")
- else if(g_weaponflags[g_RestRoundCounter-1]&FLAG_B)
- iLen += format(g_HintMsg[iLen], 255-iLen, "高爆手雷, ")
- if(g_weaponflags[g_RestRoundCounter-1]&FLAG_H)
- iLen += format(g_HintMsg[iLen], 255-iLen, "烟雾弹(无限), ")
- else if(g_weaponflags[g_RestRoundCounter-1]&FLAG_C)
- iLen += format(g_HintMsg[iLen], 255-iLen, "烟雾弹, ")
- if(g_weaponflags[g_RestRoundCounter-1]&FLAG_I)
- iLen += format(g_HintMsg[iLen], 255-iLen, "手枪(子弹无限), ")
- else if(g_weaponflags[g_RestRoundCounter-1]&FLAG_E)
- iLen += format(g_HintMsg[iLen], 255-iLen, "手枪, ")
- g_HintMsg[strlen(g_HintMsg)-2] = 0
- }
复制代码 |
|