Zmienianie wartosci w MotD
pfkers 18.10.2012
Witam .. chcialem sie sptyac czy mozna zrobic motd w ktorym zmianialy by sie wartosci np lvl gracza. chodzi mi dokladnie o takie cos:
Klasa: Rambo
Lvl : 1
I napis ze na 1 lvl moze miec np m4
a jak wbije 2 lvl to pisze
Klasa: Rambo
Lvl : 2
I ma cos innego..
Chodzi mi o to aby w motd dodac jakos zmienne ktore by mnie interesowaly i zeby to dzialalo.. nie robilem czegos takiego i chcialem sie dowiedziec czy to jest mozliwe i jezeli tak to proszę podac przyklad badz wytlumaczyc na prostym przykladzie
Klasa: Rambo
Lvl : 1
I napis ze na 1 lvl moze miec np m4
a jak wbije 2 lvl to pisze
Klasa: Rambo
Lvl : 2
I ma cos innego..
Chodzi mi o to aby w motd dodac jakos zmienne ktore by mnie interesowaly i zeby to dzialalo.. nie robilem czegos takiego i chcialem sie dowiedziec czy to jest mozliwe i jezeli tak to proszę podac przyklad badz wytlumaczyc na prostym przykladzie
Jak się nazwać
18.10.2012
formatex + znajomość html + show_motd nic więcej nie trzeba (no i jeszcze tablica której do formatexa użyjesz i wyświetlisz)
pfkers 18.10.2012
Moglby mi ktos napisac jakis maly przyklad.. gdzies widzialem cos takiego ale zan im znajde to zejdzie.. moze ktos by szybciej mi to pokazal forme jak to zrobic
K!113r
18.10.2012
formatex(motd,charsmax(motd),"<html><body bgcolor=^"#474642^"><font size=^"2^" face=^"verdana^" color=^"FFFFFF^"><strong>Statystyki Graczy: %s</strong><br>", tempname);
add(motd,charsmax(motd),"(Aktualizowane co Runde)<br><br>");
formatex(tempstring,charsmax(tempstring),"Ogolne Zabicia: %d<br>",totalkills[statsid]);
add(motd,charsmax(motd),tempstring);
formatex(tempstring,charsmax(tempstring),"Ogolne Zabicia z Noza: %d<br>",knifekills[statsid]);
add(motd,charsmax(motd),tempstring);
formatex(tempstring,charsmax(tempstring),"Ogolne Zabicia Pistoletami: %d<br>",pistolkills[statsid]);
add(motd,charsmax(motd),tempstring);
formatex(tempstring,charsmax(tempstring),"Ogolne Zabicia z M249: %d<br>",parakills[statsid]);
add(motd,charsmax(motd),tempstring);
formatex(tempstring,charsmax(tempstring),"Ogolne Zabicia Snajperkami: %d<br>",sniperkills[statsid]);
add(motd,charsmax(motd),tempstring);
formatex(tempstring,charsmax(tempstring),"Ogolne Zabicia Karabinam: %d<br>",riflekills[statsid]);
add(motd,charsmax(motd),tempstring);
formatex(tempstring,charsmax(tempstring),"Ogolne Zabicia Shotgunami: %d<br>",shotgunkills[statsid]);
add(motd,charsmax(motd),tempstring);
formatex(tempstring,charsmax(tempstring),"Ogolne Zabicia z SMG: %d<br>",smgkills[statsid]);
add(motd,charsmax(motd),tempstring);
formatex(tempstring,charsmax(tempstring),"Ogolne Zabicia z Granatow: %d<br>",grenadekills[statsid]);
add(motd,charsmax(motd),tempstring);
formatex(tempstring,charsmax(tempstring),"Ogolna Celnosc: %d percent<br>",accuracy[statsid]);
add(motd,charsmax(motd),tempstring);
formatex(tempstring,charsmax(tempstring),"Ogolna ilosc podlozonych bomb: %d<br>",plants[statsid]);
add(motd,charsmax(motd),tempstring);
formatex(tempstring,charsmax(tempstring),"Ogolna ilosc bomb ktore wybuchly: %d<br>",explosions[statsid]);
add(motd,charsmax(motd),tempstring);
formatex(tempstring,charsmax(tempstring),"Ogolna ilosc bomb ktore zostaly rozbrojone: %d<br>",defuses[statsid]);
add(motd,charsmax(motd),tempstring);
formatex(tempstring,charsmax(tempstring),"Obecna ranga gracza: #%d<br>",ranked);
add(motd,charsmax(motd),tempstring);
formatex(tempstring,charsmax(tempstring),"Zdobyte Medale: Zloty %d, Srebrny %d, Brazowy %d<br>",gold[statsid],silver[statsid],bronze[statsid]);
add(motd,charsmax(motd),tempstring);
add(motd,charsmax(motd),"</font></body></html>");
show_motd(id,motd,"Only DD2: Statystyki Gracza");
pierwsze lepsze co miałem otworzone w notepadzie, kod z bf2rank