Oto kod skille:
public statystyki_klasy(id)
{
if(!is_user_alive(id) || !is_user_connected(id))
{
ColorChat(id, GREEN, "^x01[^x04%s^x01] Statystyki mozesz podgladac tylko gdy zyjesz!", adres_forum)
return PLUGIN_CONTINUE;
}
else
{
new name[64];
get_user_name(id, name, 63);
new hp_klasy = zdrowie_klasy[klasa_gracza[id]];
new hp_gracza = zdrowie_gracza[id]*2;
new hp = hp_klasy+hp_gracza
new forum[64];
get_pcvar_string(cod_forum, forum, 63);
const SIZE = 1024;
new staty[SIZE+1],len = 0;
len += formatex(staty[len], SIZE - len, "<html><body style=^"background-color:black;color:white;font-size:14;text-align:center;^"");
len += formatex(staty[len], SIZE - len, "Witaj %s w statystykach twojej klasy<br>", name);
len += formatex(staty[len], SIZE - len, "<br>");
len += formatex(staty[len], SIZE - len, "Klasa: <b>%s</b><br>", nazwy_klas[klasa_gracza[id]]);
len += formatex(staty[len], SIZE - len, "<br>");
len += formatex(staty[len], SIZE - len, "Masz <b>%d</b> punktow zdrowia - daje to %d dodatkowego hp<br>", zdrowie_gracza[id], zdrowie_gracza[id]*2);
len += formatex(staty[len], SIZE - len, "Masz <b>%d</b> punktow wytrzymalosci - daje to %0.1f%% redukcji obrazen<br>", wytrzymalosc_gracza[id], redukcja_obrazen_gracza[id]*100);
len += formatex(staty[len], SIZE - len, "Masz <b>%d</b> punktow kondycji - daje to %d szybszego biegania<br>", kondycja_gracza[id], floatround(kondycja_gracza[id]*1.3));
len += formatex(staty[len], SIZE - len, "Masz <b>%d</b> punktow inteligencji<br>", inteligencja_gracza[id]);
len += formatex(staty[len], SIZE - len, "<br>");
len += formatex(staty[len], SIZE - len, "Laczna ilosc zycia wynosi <b>%d</b><br>", hp);
len += formatex(staty[len], SIZE - len, equali(nazwy_przedmiotow[informacje_przedmiotu_gracza[id][0]], "Brak") ? "<b>Nie masz zadnego przedmiotu</b><br>": "Masz item: <b>%s</b><br>", nazwy_przedmiotow[informacje_przedmiotu_gracza[id][0]]);
len += formatex(staty[len], SIZE - len, "<br>");
len += formatex(staty[len], SIZE - len, "Zyczymy milej gry!<br>");
len += formatex(staty[len], SIZE - len, "Forum: <b>%s</b>!<br>", forum);
len += formatex(staty[len], SIZE - len, "</body></html>");
show_motd(id, staty, "Statystyki Klasy");
}
return PLUGIN_CONTINUE;
}
I chcę do niego dodać że jak piszę: Laczna ilosc zycia wynosi żeby dodać +50hp. Jeżeli ktoś pomoże dam .sma bo nie chcę ich udostępniać.
Użytkownik Kronzu edytował ten post 03.09.2012 09:29