powiększyłem tablice może to coś da
new gcvarForum;
public plugin_init()
{
register_plugin("plg <img src='http://img.amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue.gif' class='bbc_emoticon' alt=':P' />","0.1","emblaze")
set_task(180.0, "showTimer",0,"",0,"b")
gcvarForum=register_cvar("amx_forum", "forum")
return PLUGIN_CONTINUE
}
public showTimer(id){
new nazwa[196]
get_cvar_string("hostname",nazwa,charsmax(nazwa))
ColorChat(id,GREEN, "**^x01 Witamy na: ^x03%s",nazwa);
new forum[196]
get_pcvar_string(gcvarForum,forum, charsmax(forum))
ColorChat(id,GREEN, "**^x01 Forum serwera: ^x03%s",forum)
new nextmap[196]
get_cvar_string("amx_nextmap",nextmap,charsmax(nextmap))
ColorChat(id,GREEN, "**^x01 Nastepna mapa: ^x03%s", nextmap)
if (get_cvar_float("mp_timelimit"))
{
new a = get_timeleft()
ColorChat(id,GREEN, "**^x01 Czas do konca mapy: ^x03%d^x04:^x03%02d", (a / 60), (a % 60))
}
//Delay for order
set_task(0.1, "showRank", 1);
}
public showRank(id){
new izStats[8], izBody[8]
new iRankPos, iRankMax
new Players[32], playerCount;
get_players(Players, playerCount);
new id2;
for (new i=0; i<playerCount; i++){
id2 = Players[i];
iRankPos = get_user_stats(id2, izStats, izBody)
iRankMax = get_statsnum()
ColorChat(id2, GREEN, "**^x01 Twoj rank wynosi:^x04 %d^x01/^x04%d", iRankPos, iRankMax)
}
}