/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#define PLUGIN "Jail Break: Poszukiwani"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
#define UPDATEDELAY 1.0
new string[512]
new hud
new nobody
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg","client_death","a")
register_event("HLTV", "new_round", "a", "1=0", "2=0")
hud = CreateHudSyncObj()
set_task(UPDATEDELAY, "update_info", _, _, _, "b")
}
public new_round()
{
formatex(string, 511, "Brak poszukiwanych")
nobody = true
}
public client_death()
{
static victim
victim = read_data(2)
if(get_user_team(victim) == 2)
{
static killer, name[33]
killer = read_data(1)
get_user_name(killer, name, 32)
if(contain(string, name) == -1)
{
if(nobody) replace_all(string, 511, "Brak poszukiwanych", "")
replace_all(string, 511, "Poszukiwani: ^n", "")
format(string, 511, "Poszukiwani: ^n%s^n%s", string, name)
nobody = false
update_info()
}
}
}
public update_info()
{
(nobody) ? set_hudmessage(255, 255, 255, 0.01, 0.4, 0, 0.5, UPDATEDELAY) : set_hudmessage(255, 0, 0, 0.01, 0.4, 2, 0.5, UPDATEDELAY)
ShowSyncHudMsg(0, hud, "%s", string)
}
W tym pluginie jest jakiś błąd nie można go skomplikować czy mógłby go ktoś tak przerobić żeby chodził?
To jest plugin "Poszukiwani" do Jaila Break