Error: Cannot read from file: "colorchat" on line 3 ??
I jak to nie może z czytac proszę tutaj SMA
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#define PLUGIN "HeadShot Info"
#define VERSION "1.0"
#define AUTHOR "sbstn"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg","Death","ae")
register_cvar("amx_hs_on","1")
register_cvar("amx_hs_info","1")
register_cvar("amx_hs_info_style","1")
register_cvar("amx_hs_sound","1")
register_cvar("amx_hs_sound_style","1")
set_hudmessage(212, 255, 127, 0.0, 0.0, 0, 6.0, 12.0)
show_hudmessage(id, "")
register_cvar("amx_hs_hud","1")
}
public plugin_precache()
{
precache_sound("AK/hs1.wav")
precache_sound("AK/hs2.wav")
precache_sound("AK/hs3.wav")
precache_sound("AK/hs4.wav")
precache_sound("AK/hs5.wav")
precache_sound("AK/hs6.wav")
precache_sound("AK/hs7.wav")
}
public Death()
{
new killer = read_data(1)
new victim = read_data(2)
new hs = read_data(3)
new killer_hp = get_user_health(killer)
new hs_info = get_cvar_num("amx_hs_info")
new hs_info_style = get_cvar_num("amx_hs_info_style")
new hs_on = get_cvar_num("amx_hs_on")
new killer_name[32]
new victim_name[32]
new weapon[32]
get_user_name(killer,killer_name,31)
get_user_name(victim,victim_name,31)
read_data(4, weapon, 31)
if(hs && hs_on==1)
{
Sound()
HUD(killer)
if(hs_info==1 && hs_info_style==1)
{
ColorChat(0, YELLOW, "# ^x04%s^x01 strzelil headshota ^x04%s^x01",killer_name,victim_name)
return PLUGIN_CONTINUE
}else if(hs_info==1 && hs_info_style==2)
{
ColorChat(0, YELLOW, "# ^x04%s^x01 strzelil headshota ^x04%s^x01 z ^x03%s^x01",killer_name,victim_name,weapon)
return PLUGIN_CONTINUE
}else if(hs_info==1 && hs_info_style==3)
{
ColorChat(0, YELLOW, "# ^x04%s^x01 strzelil headshota ^x04%s^x01 i nadal ma ^x03%dHP^x01!",killer_name,victim_name,killer_hp)
return PLUGIN_CONTINUE
}else if(hs_info==1 && hs_info_style==4)
{
ColorChat(0, YELLOW, "# ^x04%s^x01 strzelil headshota ^x04%s^x01 z ^x03%s^x01 i nadal ma ^x03%dHP^x01!",killer_name,victim_name,weapon,killer_hp)
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}
return PLUGIN_HANDLED
}
public Sound()
{
new hs_on = get_cvar_num("amx_hs_on")
new hs_sound = get_cvar_num("amx_hs_sound")
new hs_sound_style = get_cvar_num("amx_hs_sound_style")
if(hs_on==1 && hs_sound==1 && hs_sound_style==2)
{
new rand
rand = random_num(0,6)
switch (rand)
{
case 0:
{
client_cmd(0,"spk AK/hs1")
}
case 1:
{
client_cmd(0,"spk AK/hs2")
}
case 2:
{
client_cmd(0,"spk AK/hs3")
}
case 3:
{
client_cmd(0,"spk AK/hs4")
}
case 4:
{
client_cmd(0,"spk AK/hs5")
}
case 5:
{
client_cmd(0,"spk AK/hs6")
}
case 6:
{
client_cmd(0,"spk AK/hs7")
}
}
return PLUGIN_CONTINUE
}else if(hs_on==1 && hs_sound==1 && hs_sound_style==1)
{
client_cmd(0,"spk AK/hs1")
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}
public HUD(killer)
{
new hs_on = get_cvar_num("amx_hs_on")
new hs_hud = get_cvar_num("amx_hs_hud")
if(hs_on==1 && hs_hud==1)
{
set_hudmessage(212,255,42,-1.0,-1.0,0,6.0,2.0)
show_hudmessage(killer,"O Kur** Jaki^nDUPSZOT!")
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}