Tak jak w temacie chciałbym zrobić 2 kolorowy hud
np i tak forum i ranga na zielono a zabicia i vip na czerwono
Forum;xx-xxx.pl
Ranga: Np kapral
Zabicia: 10000
Vip; Tak
public DisplayHUD(id) { id -= TASK_HUD; if ( !get_pcvar_num(gPcvarBF2Active) || !get_pcvar_num(gPcvarStatusText) ) return; if ( !is_user_alive(id) || is_user_bot(id) ) return; if(!is_user_connected(id)) { remove_task(id+TASK_HUD); return; } set_hudmessage(255, 255, 0, 0.03, 0.18, 0, 6.0, 12.0) if ( !gStatsLoaded[id] ) { ShowSyncHudMsg(id, gHUD,"[%s] Wczytuje Dane...", gNazwaPluginu) } else { new rank = g_PlayerRank[id]; new nextrank; switch(rank) { case 16, 19, 20, 21: nextrank = 15; case 17: nextrank = 7; case 18: nextrank = 8; default: nextrank = rank; } ++nextrank; new nextrankxp = floatround(gRankXP[nextrank] * get_pcvar_float(gPcvarXpMultiplier)); if ( !get_pcvar_num(gPcvarBadgesActive) ) { ShowSyncHudMsg(id, gHUD,"^nRanga: %s^nZabicia: %d/%d", gRankName[rank], totalkills[id], nextrankxp) } else { ShowSyncHudMsg(id, gHUD,"[%s]^nRanga: %s^nIlosc Odznak: %d^nZabicia: %d/%d", gNazwaPluginu, gRankName[rank], numofbadges[id], totalkills[id], nextrankxp) } } }
Użytkownik SzymonAdom edytował ten post 09.06.2015 22:48