First remove ^ in this line
Quote:
|
ColorChat(0, GREEN, "^Player %s Recieved 40 Adrenaline And 40 Hp For Knifing %s", szName, szName2)
|
And add
} in the last of plugin
_____
PHP Code:
#include <amxmodx>
#include <fun>
#include <colorchat>
#include <jctf>
#define PLUGIN ""
#define VERSION "1.0"
#define AUTHOR ""
const TASK_ID = 6969
const BonusHP = 30
new g_iSync
public plugin_init(){
register_plugin("", "0.2", "")
register_event("DeathMsg", "onDeathMsgEvent", "a")
register_event("CurWeapon", "onCurWeaponEvent", "be", "1=1")
g_iSync = CreateHudSyncObj()
new szVersion[6]
get_cvar_string("jctf_version", szVersion, charsmax(szVersion))
if(str_to_float(szVersion) < 1.21)
set_fail_state("jCTF is required at least v1.21 !")
}
public onDeathMsgEvent()
{
new id = read_data(1)
new szWeapon[32]
read_data(4, szWeapon, charsmax(szWeapon))
if(equal(szWeapon, "knife") && is_user_alive(id))
{
new szName[32], szName2[32]
get_user_name(id, szName, charsmax(szName))
get_user_name(read_data(2), szName2, charsmax(szName2))
set_hudmessage(255, 0, 0, 0.02, 0.2, 1, 0.1, 6.0, 0.1, 0.1, -1)
ShowSyncHudMsg(0, g_iSync, "Player %s Knifed %s HAHA", szName, szName2)
client_cmd(0,"spk misc/laugh")
ColorChat(0, GREEN, "Player %s Recieved 40 Adrenaline And 40 Hp For Knifing %s", szName, szName2)
set_user_health(id, get_user_health(id) + 30)
jctf_add_adrenaline(id, 40, "no reason" );
remove_task(id + TASK_ID)
}
}
__________________