przerabiam xpmod by emu
i chciałbym podmienic styl motd
kod z pluginu:
public gracze_info( id ) { new alldata[2048]; #if defined USING_CS alldata="<html><head><title>Levele graczy</title></head><body><table border='1'><tr><th width='200' align='left' cellpadding='5'>Nick</th><th width='40'>Level</th><th width='40'>Exp</th></tr>" new iPlayers[32],iNum get_players(iPlayers,iNum) for(new g=0;g<iNum;g++) { new i=iPlayers[g] if(is_user_connected(i)) { new name[20] get_user_name(i,name,19) format(alldata,2047,"%s<tr><td>%s</td><td align='center'>%i</td><td align='center'>%i</td>",alldata,name,PlayerLevel[i],PlayerXP[i]) } } format(alldata,2047,"%s</table></body></html>",alldata) #else alldata="Nick Level Exp^n" new iPlayers[32],iNum get_players(iPlayers,iNum) for(new g=0;g<iNum;g++) { new i=iPlayers[g] if(is_user_connected(i)) { new name[20] get_user_name(i,name,19) new toadd=20-strlen(name) new spaces[20]="" add(spaces,19," ",toadd) format(alldata,2047,"%s^n%s %s %i %i",alldata,name,spaces,PlayerLevel[i],PlayerXP[i]); } } #endif show_motd( id, alldata, "Informacje o graczach" ); }
Plik HTML :
<html><head><title>Levele graczy</title></head><body> <body background="tlos.png" text="#FFFFFF"> <table bordercolor="FF9900" rules="all" border='1' width="100%"> <tr> <td colspan="5"><center><font color="lime" <font style="color: #00FF00; color: #00FF00; text-shadow: 0 0 0.8em #00FF00;font-weight:"><b>Xp Mod by Grz3sznik</b></font></td> </tr> <tr> <td><b>Nick:</b></td> <td><b>Exp</b></td> <td><b>Level</b></td> <td><b>Liczba Grz3szników</b></td> </tr> <tr> <td width="30%">%s</td> <td width="10%">%i</td> <td width="10%">%i</td> <td width="10%">...</td> </tr> <tr> <td colspan="5"><center><font style="color: #FFFFFF; color: #FFFFFF; text-shadow: 0 0 0.8em #FFFFFF;font-weight:">[</font><font style="color: #FF0000; color: #FF0000; text-shadow: 0 0 0.8em #FF0000;font-weight:">Copyright © by Grz3sznik . All Rights Reserved.</font><font style="color: #FFFFFF; color: #FFFFFF; text-shadow: 0 0 0.8em #FFFFFF;font-weight:">]</font></td> </tr> </table> </head> </body> </html>
Wie ktoś jak to podmienic proszę o pomoc daje +