/* 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) }
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
Lista
Temat rozp.
verman
, 27.08.2009 16:40
2 odpowiedzi w tym temacie
#1
Napisano 27.08.2009 16:40
Witam. Ten plugin pokazuje np. tt zabije ct to u ct pisze ze jest poszukiwany. proszę o przerobienie zeby bytlo tak ze tlyko jak tt zabije wyswietla sie lista ct a jak ct zanije to tt nic sie nie pokazuje!
#2
Napisano 27.08.2009 23:26
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <hamsandwich> #define PLUGIN "JailBreak: 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) static killer killer = read_data(1) if(get_user_team(victim) == 2 && get_user_team(killer) == 1) { static name[33] 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) static num, i, id, players[32] get_players(players, num, "e", "CT") for(i = 0; i < num; i++) { id = players[i] ShowSyncHudMsg(id, hud, "%s", string) } }AUTOREM KODU JEST SEBA
#3
Napisano 28.08.2009 07:57
Dzięki
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych