|
Veteran Member
|

12-26-2013
, 01:42
Re: [Req] First Round only Knife with Message
|
#2
|
Quote:
Originally Posted by UchihaSkills
|
i have tried myself to do that req..but failed
i have this, the problem when only knife round end, start new round still only knife..
PHP Code:
#include <amxmodx>
new g_iRoundCount new g_pcvarEnable
public plugin_init() { register_plugin("First Round Knife", "0.1", "ConnorMcLeod")
g_pcvarEnable = register_cvar("frk_enabled", "1")
register_logevent("eRoundEnd", 2, "1=Round_End") register_event("TextMsg","eRestart","a","2&#Game_C","2&#Game_w") register_event("CurWeapon", "eCurWeapon", "be", "1=1", "2!29") }
public eRoundEnd() { g_iRoundCount++ }
public eRestart() { g_iRoundCount = 0 }
public eCurWeapon(id) { if(g_iRoundCount || !get_pcvar_num(g_pcvarEnable)) return engclient_cmd(id, "weapon_knife") }
this too:
PHP Code:
#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,"Knife Round!") set_hudmessage(50, 255, 50, -1.0, 0.70, 0, 6.0, 10.0, 0.5, 0.15, -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") }
bump..
Last edited by Fuck For Fun; 12-30-2013 at 16:15.
|
|