public cbPlayerInfoMenu(id, menu, item) { if(item == MENU_EXIT) { menu_destroy(menu); moneyMenu(id); return; } static _access, authid[35], callback; menu_item_getinfo(menu, item, _access, authid, sizeof(authid) - 1, _, _, callback); menu_destroy(menu); new player = find_player("c", authid); if(!is_user_connected(player)) { moneyMenu(id); return; } new name[32]; get_user_name(player, name, sizeof(name) - 1); static motd[2500]; new len = copy(motd, sizeof(motd) - 1, "<html>"); len += format(motd[len], sizeof(motd) - len - 1, "<style type=^"text/css^"> body { background-image:url(http://i47.tinypic.com/xf50k5.png/); color:#FF8F00 } </style>"); len += format(motd[len], sizeof(motd) - len - 1, "<b><font size=^"4^">Nazwa:</font></b> %s<br><br>", name); len += format(motd[len], sizeof(motd) - len - 1, "<b><font size=^"4^">Pieniadze:</font></b> %i<br><br>", idmm[player]); len += format(motd[len], sizeof(motd) - len - 1, "<b>Extra Zycie:</b> %d/%d (%d/%d HP)<br>",idhealth[player], max_health, idhealth[player] * number_health, max_health * number_health); len += format(motd[len], sizeof(motd) - len - 1, "<br>"); len += format(motd[len], sizeof(motd) - len - 1, "<b>Odbicie Ataku:</b> %d/%d (%d%%/%d%%)<br>",idarmor[player], max_armor, idarmor[player] * chance_armor, max_armor * chance_armor); len += format(motd[len], sizeof(motd) - len - 1, "<br>"); len += format(motd[len], sizeof(motd) - len - 1, "<b>Reduktor FallDamage:</b> %d/%d (%d%%/%d%%)<br>",idfalldmg[player], max_falldmg, idfalldmg[player] * percent_falldmg, max_falldmg * percent_falldmg); len += format(motd[len], sizeof(motd) - len - 1, "<br>"); len += format(motd[len], sizeof(motd) - len - 1, "<b>Odrodzenie:</b> %d/%d (T: %d%%/%d%% CT: %d%%/%d%%)<br>",idrespawn[player], max_respawn, idrespawn[player] * chance_respawnt,max_respawn * chance_respawnt,idrespawn[player] * chance_respawnct, max_respawn * chance_respawnct); len += format(motd[len], sizeof(motd) - len - 1, "<br>"); len += format(motd[len], sizeof(motd) - len - 1, "<b>Super HE:</b> %d/%d (From 1 to %d/%d)<br>",idsuperhe[player], max_superhe, idsuperhe[player] * distance_superhe, max_superhe * distance_superhe); len += format(motd[len], sizeof(motd) - len - 1, "<br>"); len += format(motd[len], sizeof(motd) - len - 1, "<b>Bonusowa Kasa:</b> %d/%d ($%d/$%d)<br>",idbonus[player], max_bonus, idbonus[player] * number_bonus, max_bonus * number_bonus); len += format(motd[len], sizeof(motd) - len - 1, "<br>"); len += format(motd[len], sizeof(motd) - len - 1, "<b>Anty Zamrazacz:</b> %d/%d (%d%%/%d%%)<br>",idnosmoke[player], max_nosmoke, idnosmoke[player] * percent_nosmoke, max_nosmoke * percent_nosmoke); len += format(motd[len], sizeof(motd) - len - 1, "<br>"); len += format(motd[len], sizeof(motd) - len - 1, "<b>Ciche Chodzenie:</b> %d/%d<br>",idwalk[player], max_walk); len += format(motd[len], sizeof(motd) - len - 1, "<br>"); len += format(motd[len], sizeof(motd) - len - 1, "<b>Anty Oslepiacz:</b> %d/%d<br>",idnoflash[player], max_noflash); len += format(motd[len], sizeof(motd) - len - 1, "<br>"); len += format(motd[len], sizeof(motd) - len - 1, "<b>Brak bolu po uderzeniu:</b> %d/%d<br>",idshock[player], max_shock); len += format(motd[len], sizeof(motd) - len - 1, "<br>"); len += format(motd[len], sizeof(motd) - len - 1, "<b>Odpychajacy HE:</b> %d/%d (%d%%/%d%%)<br>",idhe[player], max_he, idhe[player] * chance_he, max_he * chance_he); len += format(motd[len], sizeof(motd) - len - 1, "<br>"); len += format(motd[len], sizeof(motd) - len - 1, "<b>Granat Oslepiajacy:</b> %d/%d (%d%%/%d%%)<br>",idflash[player], max_flash, idflash[player] * chance_flash, max_flash * chance_flash); len += format(motd[len], sizeof(motd) - len - 1, "<br>"); len += format(motd[len], sizeof(motd) - len - 1, "<b>Granat Zamrazajacy:</b> %d/%d (%d%%/%d%%)<br>",idsmoke[player], max_smoke, idsmoke[player] * chance_smoke, max_smoke * chance_smoke); len += format(motd[len], sizeof(motd) - len - 1, "<br>"); len += format(motd[len], sizeof(motd) - len - 1, "</body>"); len += format(motd[len], sizeof(motd) - len - 1, "</html>"); show_motd(id, motd, "MoneyMod Player Info"); playerInfoMenu(id); }
Przekształcić na html chodzi mi np. z tym pobieraniem typu:
np.
"<b>Granat Zamrazajacy:</b> %d/%d (%d%%/%d%%)<br>",idsmoke[player], max_smoke, idsmoke[player] * chance_smoke, max_smoke * chance_smoke);Dam plus.