#include #include #include #include new dodane new odjete public plugin_init() { register_plugin("Bug Hp", "1.0", "HubertTM"); register_clcmd("say /fix", "fix"); register_clcmd("say /napraw", "fix"); register_clcmd("say /infobug", "info"); register_clcmd("say hp", "pokaz"); dodane = 1 odjete = 1 } public fix(id) { new hp = get_user_health(id); if(!is_user_alive(id)) { client_print(id,print_chat,"[COD:MW] Nie mozesz naprawic buga poniewaz jestes nie zywy") return PLUGIN_HANDLED } switch(random_num(1, 2)) { case 1 : { set_user_health(id,hp += dodane) client_print(id,print_chat,"[COD:MW] Bug z 0 HP naprawiony!.") } case 2 : { set_user_health(id,hp -= odjete) client_print(id,print_chat,"[COD:MW] Bug z 0 HP naprawiony!") } } return PLUGIN_CONTINUE; } public info(id) { static stats[8], stats2[4], body[8] new rank_pos = get_user_stats(id, stats, body); new max_rank = get_statsnum(); get_user_stats2(id, stats2); static host_name[32]; get_cvar_string("hostname", host_name, 31); static motd[1501], len; len = format(motd, 1500,"
");
	
	len += format(motd[len], 1500-len,"

Informacje o Bugu

"); len += format(motd[len], 1500-len,"1. Bug wystepuje co 256HP liczac od zera^n", rank_pos, max_rank); len += format(motd[len], 1500-len,"2. Bug zmienia tobie sterowanie i nie mozesz strzelac.^n", stats[0]); len += format(motd[len], 1500-len,"3. Jest to blad Cs bo wskaznik Hp jest tylko do 255^n", stats[1]); len += format(motd[len], 1500-len,"3. Aby sprawdzic ile masz HP wpisz hp wyskoczy ci na zielono w gorze ekranu napis HP^n", stats[1]); show_motd(id, motd, "[COD:MW] Informacje o Bugu"); return 0; } public pokaz(id) { set_hudmessage(0, 255, 0, -1.0, 0.1, 0, 6.0, 7.0) show_hudmessage(id, "[COD:MW] Twoje HP : %d", get_user_health(id)) }