←  Szukam pluginu

AMXX.pl: Support AMX Mod X i SourceMod

»

[ROZWIĄZANE] Plugin wyświetlający na począ...


Best Answer Rynek 07.07.2014 17:32

Google nie gryzie :)

 

http://amxx.pl/topic...lider-mapy-hud/

 

Go to the full post
Locked

  • +
  • -
Aslan's Photo Aslan 07.07.2014

Witam!

 

Bardzo proszę o plugin, który na początku ekranu w HUD będzie pokazywał kto prowadzi na mapie.

Chcę aby to wyglądało tak:

 

71326028716009606894.jpg

 

 

P.S To "@@@@@@@@@@@" to ma być nick gracza ;)

 

 

 

I oczywiście + leci i z góry dziękuję! :)

Quote

Best Answer Rynek's Photo Rynek 07.07.2014

Google nie gryzie :)

 

http://amxx.pl/topic...lider-mapy-hud/

 

Attached File  score.sma   5.52KB   46 downloads

Quote

  • +
  • -
Wielkie Jol's Photo Wielkie Jol 07.07.2014

Przerobiony plugin sebula:

#include <amxmodx>

#define PLUGIN "Best player"
#define VERSION "0.5a"
#define AUTHOR "Sebul"


new RoundNumber, cvar_round, cvar_frags_multi, g_MaxPlayers, MapName[32];

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR);
    
    register_event("SendAudio", "pokaz_staty", "a", "2&%!MRAD_terwin", "2&%!MRAD_ctwin");
    register_event("TextMsg", "round_begin", "a", "2&#Game_C", "2&#Game_will_restart_in");
    
    cvar_frags_multi = register_cvar("amx_frags_multi", "1.5");
    cvar_round = register_cvar("amx_number_round", "5");
    
    g_MaxPlayers = get_maxplayers();
    get_mapname(MapName, 31);
}

public round_begin() RoundNumber = 0;

public pokaz_staty() {
    new ile_rund = get_pcvar_num(cvar_round);
    if(++RoundNumber > ile_rund) {
        RoundNumber = ile_rund;
        new Float:fragi = -20.0, Float:bilans, Float:zabojstwa;
        new Float:mnoznik = get_pcvar_float(cvar_frags_multi);
        new index, i;
        
        for(i=1; i<=g_MaxPlayers; ++i) {
            if(!is_user_connected(i) || is_user_bot(i) || is_user_hltv(i)) continue;
            
            zabojstwa = get_user_frags(i)*mnoznik;
            bilans = zabojstwa-get_user_deaths(i);
            if(zabojstwa > 0 && fragi < bilans) {
                fragi = bilans;
                index = i;
            }
        }
        if(is_user_connected(index)) {
            new name[48]
            get_user_name(index, name, 47);
            set_hudmessage(255, 255, 255, -1.0, 0.21, 0, 6.0, 10.0)
            show_hudmessage(0, "Lider mapy: %s^n Zabil %d Zginal %d", name, get_user_frags(index), get_user_deaths(index))
            
        }
        else
            set_hudmessage(255, 255, 255, -1.0, 0.21, 0, 6.0, 10.0)
        show_hudmessage(0, "Brak prowadzacego w grze!")
        
    }
}
Quote
Locked