hlmod.hu
https://hlmod.hu/

Olés Hud
https://hlmod.hu/viewtopic.php?f=9&t=3385
Oldal: 1 / 2

Szerző:  nowa [2012.02.10. 21:10 ]
Hozzászólás témája:  Olés Hud

Valaki tudna nekem olyanba segiteni hogy Pl van olyan plugin hogy ha kirobantanak valakit akkor kiirja hogy "Kirobantotak" nekem ilyen kellene csak ha Pl fejbelönek valakit kiirja hogy Fejbelötek vagy valami ilyesmi !:)

Szerző:  CocaIne.^ [2012.02.10. 21:16 ]
Hozzászólás témája:  Re: Olés Hud

Ilyen már van csak át kell írni.
Kód:
#include <amxmodx>

#define KNIFFMESSAGES 4
#define LEVELS 7
#define MESSAGESNOHP 4
#define MESSAGESHP 4

new kills[33] = {0,...};
new deaths[33] = {0,...};
new alone_ann = 0
new levels
[7] = {3, 5, 7, 9, 10, 13, 15};

new stksounds[7][] = {
"hun_ultimate/multikill",
"hun_ultimate/ultrakill",
"hun_ultimate/monsterkill",
"hun_ultimate/killingspree",
"hun_ultimate/rampage",
"hun_ultimate/holyshit",
"hun_ultimate/godlike"};

new stkmessages[7][] = {
"%s: Egy Bruta'lis a'llat!",
"HALA'L HALA'L HALA'L!",
"Ve'rz'o' csirkek %s Az isten",
"%s: Egy GYILKOLOGE'P",
"%s: Elpusztithatatlan",
"%s: AZ ARE'NA KIRA'LYA!",
"VE'R F'U'RD'O'"};


new kniffmessages[KNIFFMESSAGES][] = {
"'Utolso'nak lenni sze'gyen IGAZ?",
"'Utolso'nak lenni sze'gyen IGAZ?",
"'Utolso'nak lenni sze'gyen IGAZ?",
"'Utolso'nak lenni sze'gyen IGAZ?"}

new messagesnohp[MESSAGESNOHP][] = {
"%i terrorista vs %i CT^n%s: Mostma'r minden rajtad mu'lik",
"%i terrorista vs %i CT^n%s: Reme'lem van na'lad e'letment'o' csomag",
"%i terrorista vs %i CT^n%s: Minden csapat ta'rsadat kinyirta'k, sok szerencse't",
"%i terrorista vs %i CT^n%s: Te vagy az u'tolso'"}

new messageshp[MESSAGESHP][] = {
"%i terrorista vs %i CT^n%s (%i hp): Mostma'r minden rajtad mu'lik",
"%i terrorista vs %i CT^n%s (%i hp): Reme'lem van na'lad e'letment'o' csomag",
"%i terrorista vs %i CT^n%s (%i hp): Minden csapat ta'rsadat kinyirta'k, sok szerencse't",
"%i terrorista vs %i CT^n%s (%i hp): Te vagy az u'tolso'"}

get_streak()
{
    new streak[3]
    get_cvar_string("streak_mode",streak,2)
    return read_flags(streak)
}

public death_event(id)
{
    new streak = get_streak()

    if ((streak&1) || (streak&2))
    {
            new killer = read_data(1);
            new victim = read_data(2);

            kills[killer] += 1;
            kills[victim] = 0;
            deaths[killer] = 0;
            deaths[victim] += 1;

            for (new i = 0; i < LEVELS; i++)
        {
                if (kills[killer] == levels[i])
            {
                        announce(killer, i);
                        return PLUGIN_CONTINUE;
            }
        }
    }
    return PLUGIN_CONTINUE;
}

announce(killer, level)
{
    new streak = get_streak()

    if (streak&1)
    {
            new name[32];

           get_user_name(killer, name, 32);
        set_hudmessage(0, 100, 200, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2);
        show_hudmessage(0, stkmessages[level], name);
    }

    if (streak&2){
            client_cmd(0, "spk %s", stksounds[level]);
    }
}

public reset_hud(id)
{
    new streak = get_streak()

    if (streak&1)
    {

        if (kills[id] > levels[0])
        {
                client_print(id, print_chat, 
            
"* Te %d oltel ogy tovabb", kills[id]);

        }

        else if (deaths[id] > 1)
        {
            client_print(id, print_chat, 
            
"* Te meghaltal %dx sorozatban ovatosabban...", deaths[id]);
        }
    }
}

public client_connect(id)
{
    new streak = get_streak()

    if ((streak&1) || (streak&2))
    {
        kills[id] = 0;
        deaths[id] = 0;
    }
}

public knife_kill()
{
    new kniffmode[4] 
    get_cvar_string
("kniff_mode",kniffmode,4) 
    new kniffmode_bit 
= read_flags(kniffmode)

    if (kniffmode_bit & 1)
    {
        new killer_id = read_data(1)
        new victim_id = read_data(2)
        new killer_name[33], victim_name[33]

        get_user_name(killer_id,killer_name,33)
        get_user_name(victim_id,victim_name,33)


        set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
        show_hudmessage(0,kniffmessages[ random_num(0,KNIFFMESSAGES-1) ],killer_name,victim_name)
    }

    if (kniffmode_bit & 2)
    {
        client_cmd(0,"spk hun_ultimate/humiliation")
       }
}


public roundend_msg(id)

    alone_ann = 0

public death_msg
(id)
{

    new lmmode[8] 
    get_cvar_string
("lastman_mode",lmmode,8) 
    new lmmode_bit 
= read_flags(lmmode)

    new players_ct[32], players_t[32], ict, ite, last
    get_players
(players_ct,ict,"ae","CT")   
    get_players
(players_t,ite,"ae","TERRORIST")   

    if 
(ict==1&&ite==1)
    {
        new name1[32], name2[32]
        get_user_name(players_ct[0],name1,32)
        get_user_name(players_t[0],name2,32)
        set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)

        if (lmmode_bit & 1)
        {
            if (lmmode_bit & 2)
            {
                show_hudmessage(0,"%s (%i hp) vs. %s (%i hp)",name1,get_user_health(players_ct[0]),name2,get_user_health(players_t[0]))
            }

            else
            
{
                show_hudmessage(0,"%s vs. %s",name1,name2)
            }

            if (lmmode_bit & 4)
            {
                client_cmd(0,"spk misccc/maytheforce")
            }
        }
    } 
    else
{   
    if 
(ict==1&&ite>1&&alone_ann==0&&(lmmode_bit & 4))
    {
        last=players_ct[0]
        client_cmd(last,"spk misccc/oneandonly")
    }

    else if (ite==1&&ict>1&&alone_ann==0&&(lmmode_bit & 4))
    {
        last=players_t[0]
        client_cmd(last,"spk misccc/oneandonly")
    }

    else
    
{
        return PLUGIN_CONTINUE
    
}
    alone_ann = last
    new name
[32]   
    get_user_name
(last,name,32)

    if (lmmode_bit & 1)
    {
        set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)

        if (lmmode_bit & 2)
        {
            show_hudmessage(0,messageshp[ random_num(0,MESSAGESHP-1) ],ite ,ict ,name,get_user_health(last))
        }

        else
        
{
            show_hudmessage(0,messagesnohp[ random_num(0,MESSAGESNOHP-1) ],ite ,ict ,name )
        }
    }

    if (lmmode_bit & 4)
    {
        client_cmd(last,"spk misccc/maytheforce")
    }
}
    return PLUGIN_CONTINUE   
}


public hs()
{
    new hsmode[4] 
    get_cvar_string
("hs_mode",hsmode,4) 
    new hsmode_bit 
= read_flags(hsmode)

    if (hsmode_bit & 1)
    {
    new killer_id = read_data(1)
    new victim_id = read_data(2)
    new victim_name[33]

    get_user_name(victim_id,victim_name,33)

    set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 3.0, 3.0, 0.15, 0.15, 1)
    show_hudmessage(killer_id,"::!FEJLOVES!::",victim_name)
    }

    if (hsmode_bit & 2)
    {
        client_cmd(0,"spk zorro_ultimate/headshot1")
            client_cmd(0,"spk zorro_ultimate/headshot2")
                client_cmd(0,"spk zorro_ultimate/headshot3")
                client_cmd(0,"spk zorro_ultimate/headshot4")
        }
}

public plugin_precache()
{
    precache_sound("zorro_ultimate/headshot1.wav")
    precache_sound("zorro_ultimate/headshot2.wav")
    precache_sound("zorro_ultimate/headshot3.wav")
        precache_sound("zorro_ultimate/headshot4.wav")
        return PLUGIN_CONTINUE 
}



public plugin_init()
{
    register_plugin("Hungarian Ultimate Sounds","1.5","Zohan^^")
    register_event("DeathMsg","hs","a","3=1")
    register_cvar("hs_mode","ab")
        return PLUGIN_CONTINUE
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
*/




Szerző:  nowa [2012.02.10. 21:18 ]
Hozzászólás témája:  Re: Olés Hud

CocaIne.^ írta:
Ilyen már van csak át kell írni.
Kód:
#include <amxmodx>

#define KNIFFMESSAGES 4
#define LEVELS 7
#define MESSAGESNOHP 4
#define MESSAGESHP 4

new kills[33] = {0,...};
new deaths[33] = {0,...};
new alone_ann = 0
new levels
[7] = {3, 5, 7, 9, 10, 13, 15};

new stksounds[7][] = {
"hun_ultimate/multikill",
"hun_ultimate/ultrakill",
"hun_ultimate/monsterkill",
"hun_ultimate/killingspree",
"hun_ultimate/rampage",
"hun_ultimate/holyshit",
"hun_ultimate/godlike"};

new stkmessages[7][] = {
"%s: Egy Bruta'lis a'llat!",
"HALA'L HALA'L HALA'L!",
"Ve'rz'o' csirkek %s Az isten",
"%s: Egy GYILKOLOGE'P",
"%s: Elpusztithatatlan",
"%s: AZ ARE'NA KIRA'LYA!",
"VE'R F'U'RD'O'"};


new kniffmessages[KNIFFMESSAGES][] = {
"'Utolso'nak lenni sze'gyen IGAZ?",
"'Utolso'nak lenni sze'gyen IGAZ?",
"'Utolso'nak lenni sze'gyen IGAZ?",
"'Utolso'nak lenni sze'gyen IGAZ?"}

new messagesnohp[MESSAGESNOHP][] = {
"%i terrorista vs %i CT^n%s: Mostma'r minden rajtad mu'lik",
"%i terrorista vs %i CT^n%s: Reme'lem van na'lad e'letment'o' csomag",
"%i terrorista vs %i CT^n%s: Minden csapat ta'rsadat kinyirta'k, sok szerencse't",
"%i terrorista vs %i CT^n%s: Te vagy az u'tolso'"}

new messageshp[MESSAGESHP][] = {
"%i terrorista vs %i CT^n%s (%i hp): Mostma'r minden rajtad mu'lik",
"%i terrorista vs %i CT^n%s (%i hp): Reme'lem van na'lad e'letment'o' csomag",
"%i terrorista vs %i CT^n%s (%i hp): Minden csapat ta'rsadat kinyirta'k, sok szerencse't",
"%i terrorista vs %i CT^n%s (%i hp): Te vagy az u'tolso'"}

get_streak()
{
    new streak[3]
    get_cvar_string("streak_mode",streak,2)
    return read_flags(streak)
}

public death_event(id)
{
    new streak = get_streak()

    if ((streak&1) || (streak&2))
    {
            new killer = read_data(1);
            new victim = read_data(2);

            kills[killer] += 1;
            kills[victim] = 0;
            deaths[killer] = 0;
            deaths[victim] += 1;

            for (new i = 0; i < LEVELS; i++)
        {
                if (kills[killer] == levels[i])
            {
                        announce(killer, i);
                        return PLUGIN_CONTINUE;
            }
        }
    }
    return PLUGIN_CONTINUE;
}

announce(killer, level)
{
    new streak = get_streak()

    if (streak&1)
    {
            new name[32];

           get_user_name(killer, name, 32);
        set_hudmessage(0, 100, 200, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2);
        show_hudmessage(0, stkmessages[level], name);
    }

    if (streak&2){
            client_cmd(0, "spk %s", stksounds[level]);
    }
}

public reset_hud(id)
{
    new streak = get_streak()

    if (streak&1)
    {

        if (kills[id] > levels[0])
        {
                client_print(id, print_chat, 
            
"* Te %d oltel ogy tovabb", kills[id]);

        }

        else if (deaths[id] > 1)
        {
            client_print(id, print_chat, 
            
"* Te meghaltal %dx sorozatban ovatosabban...", deaths[id]);
        }
    }
}

public client_connect(id)
{
    new streak = get_streak()

    if ((streak&1) || (streak&2))
    {
        kills[id] = 0;
        deaths[id] = 0;
    }
}

public knife_kill()
{
    new kniffmode[4] 
    get_cvar_string
("kniff_mode",kniffmode,4) 
    new kniffmode_bit 
= read_flags(kniffmode)

    if (kniffmode_bit & 1)
    {
        new killer_id = read_data(1)
        new victim_id = read_data(2)
        new killer_name[33], victim_name[33]

        get_user_name(killer_id,killer_name,33)
        get_user_name(victim_id,victim_name,33)


        set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
        show_hudmessage(0,kniffmessages[ random_num(0,KNIFFMESSAGES-1) ],killer_name,victim_name)
    }

    if (kniffmode_bit & 2)
    {
        client_cmd(0,"spk hun_ultimate/humiliation")
       }
}


public roundend_msg(id)

    alone_ann = 0

public death_msg
(id)
{

    new lmmode[8] 
    get_cvar_string
("lastman_mode",lmmode,8) 
    new lmmode_bit 
= read_flags(lmmode)

    new players_ct[32], players_t[32], ict, ite, last
    get_players
(players_ct,ict,"ae","CT")   
    get_players
(players_t,ite,"ae","TERRORIST")   

    if 
(ict==1&&ite==1)
    {
        new name1[32], name2[32]
        get_user_name(players_ct[0],name1,32)
        get_user_name(players_t[0],name2,32)
        set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)

        if (lmmode_bit & 1)
        {
            if (lmmode_bit & 2)
            {
                show_hudmessage(0,"%s (%i hp) vs. %s (%i hp)",name1,get_user_health(players_ct[0]),name2,get_user_health(players_t[0]))
            }

            else
            
{
                show_hudmessage(0,"%s vs. %s",name1,name2)
            }

            if (lmmode_bit & 4)
            {
                client_cmd(0,"spk misccc/maytheforce")
            }
        }
    } 
    else
{   
    if 
(ict==1&&ite>1&&alone_ann==0&&(lmmode_bit & 4))
    {
        last=players_ct[0]
        client_cmd(last,"spk misccc/oneandonly")
    }

    else if (ite==1&&ict>1&&alone_ann==0&&(lmmode_bit & 4))
    {
        last=players_t[0]
        client_cmd(last,"spk misccc/oneandonly")
    }

    else
    
{
        return PLUGIN_CONTINUE
    
}
    alone_ann = last
    new name
[32]   
    get_user_name
(last,name,32)

    if (lmmode_bit & 1)
    {
        set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)

        if (lmmode_bit & 2)
        {
            show_hudmessage(0,messageshp[ random_num(0,MESSAGESHP-1) ],ite ,ict ,name,get_user_health(last))
        }

        else
        
{
            show_hudmessage(0,messagesnohp[ random_num(0,MESSAGESNOHP-1) ],ite ,ict ,name )
        }
    }

    if (lmmode_bit & 4)
    {
        client_cmd(last,"spk misccc/maytheforce")
    }
}
    return PLUGIN_CONTINUE   
}


public hs()
{
    new hsmode[4] 
    get_cvar_string
("hs_mode",hsmode,4) 
    new hsmode_bit 
= read_flags(hsmode)

    if (hsmode_bit & 1)
    {
    new killer_id = read_data(1)
    new victim_id = read_data(2)
    new victim_name[33]

    get_user_name(victim_id,victim_name,33)

    set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 3.0, 3.0, 0.15, 0.15, 1)
    show_hudmessage(killer_id,"::!FEJLOVES!::",victim_name)
    }

    if (hsmode_bit & 2)
    {
        client_cmd(0,"spk zorro_ultimate/headshot1")
            client_cmd(0,"spk zorro_ultimate/headshot2")
                client_cmd(0,"spk zorro_ultimate/headshot3")
                client_cmd(0,"spk zorro_ultimate/headshot4")
        }
}

public plugin_precache()
{
    precache_sound("zorro_ultimate/headshot1.wav")
    precache_sound("zorro_ultimate/headshot2.wav")
    precache_sound("zorro_ultimate/headshot3.wav")
        precache_sound("zorro_ultimate/headshot4.wav")
        return PLUGIN_CONTINUE 
}



public plugin_init()
{
    register_plugin("Hungarian Ultimate Sounds","1.5","Zohan^^")
    register_event("DeathMsg","hs","a","3=1")
    register_cvar("hs_mode","ab")
        return PLUGIN_CONTINUE
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
*/





És tudnál nekem Linkelni vagy áttirni ? Lécci :D

Szerző:  IrOn [2012.02.10. 21:19 ]
Hozzászólás témája:  Re: Olés Hud

nowa írta:
CocaIne.^ írta:
Ilyen már van csak át kell írni.
Kód:
#include <amxmodx>

#define KNIFFMESSAGES 4
#define LEVELS 7
#define MESSAGESNOHP 4
#define MESSAGESHP 4

new kills[33] = {0,...};
new deaths[33] = {0,...};
new alone_ann = 0
new levels
[7] = {3, 5, 7, 9, 10, 13, 15};

new stksounds[7][] = {
"hun_ultimate/multikill",
"hun_ultimate/ultrakill",
"hun_ultimate/monsterkill",
"hun_ultimate/killingspree",
"hun_ultimate/rampage",
"hun_ultimate/holyshit",
"hun_ultimate/godlike"};

new stkmessages[7][] = {
"%s: Egy Bruta'lis a'llat!",
"HALA'L HALA'L HALA'L!",
"Ve'rz'o' csirkek %s Az isten",
"%s: Egy GYILKOLOGE'P",
"%s: Elpusztithatatlan",
"%s: AZ ARE'NA KIRA'LYA!",
"VE'R F'U'RD'O'"};


new kniffmessages[KNIFFMESSAGES][] = {
"'Utolso'nak lenni sze'gyen IGAZ?",
"'Utolso'nak lenni sze'gyen IGAZ?",
"'Utolso'nak lenni sze'gyen IGAZ?",
"'Utolso'nak lenni sze'gyen IGAZ?"}

new messagesnohp[MESSAGESNOHP][] = {
"%i terrorista vs %i CT^n%s: Mostma'r minden rajtad mu'lik",
"%i terrorista vs %i CT^n%s: Reme'lem van na'lad e'letment'o' csomag",
"%i terrorista vs %i CT^n%s: Minden csapat ta'rsadat kinyirta'k, sok szerencse't",
"%i terrorista vs %i CT^n%s: Te vagy az u'tolso'"}

new messageshp[MESSAGESHP][] = {
"%i terrorista vs %i CT^n%s (%i hp): Mostma'r minden rajtad mu'lik",
"%i terrorista vs %i CT^n%s (%i hp): Reme'lem van na'lad e'letment'o' csomag",
"%i terrorista vs %i CT^n%s (%i hp): Minden csapat ta'rsadat kinyirta'k, sok szerencse't",
"%i terrorista vs %i CT^n%s (%i hp): Te vagy az u'tolso'"}

get_streak()
{
    new streak[3]
    get_cvar_string("streak_mode",streak,2)
    return read_flags(streak)
}

public death_event(id)
{
    new streak = get_streak()

    if ((streak&1) || (streak&2))
    {
            new killer = read_data(1);
            new victim = read_data(2);

            kills[killer] += 1;
            kills[victim] = 0;
            deaths[killer] = 0;
            deaths[victim] += 1;

            for (new i = 0; i < LEVELS; i++)
        {
                if (kills[killer] == levels[i])
            {
                        announce(killer, i);
                        return PLUGIN_CONTINUE;
            }
        }
    }
    return PLUGIN_CONTINUE;
}

announce(killer, level)
{
    new streak = get_streak()

    if (streak&1)
    {
            new name[32];

           get_user_name(killer, name, 32);
        set_hudmessage(0, 100, 200, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2);
        show_hudmessage(0, stkmessages[level], name);
    }

    if (streak&2){
            client_cmd(0, "spk %s", stksounds[level]);
    }
}

public reset_hud(id)
{
    new streak = get_streak()

    if (streak&1)
    {

        if (kills[id] > levels[0])
        {
                client_print(id, print_chat, 
            
"* Te %d oltel ogy tovabb", kills[id]);

        }

        else if (deaths[id] > 1)
        {
            client_print(id, print_chat, 
            
"* Te meghaltal %dx sorozatban ovatosabban...", deaths[id]);
        }
    }
}

public client_connect(id)
{
    new streak = get_streak()

    if ((streak&1) || (streak&2))
    {
        kills[id] = 0;
        deaths[id] = 0;
    }
}

public knife_kill()
{
    new kniffmode[4] 
    get_cvar_string
("kniff_mode",kniffmode,4) 
    new kniffmode_bit 
= read_flags(kniffmode)

    if (kniffmode_bit & 1)
    {
        new killer_id = read_data(1)
        new victim_id = read_data(2)
        new killer_name[33], victim_name[33]

        get_user_name(killer_id,killer_name,33)
        get_user_name(victim_id,victim_name,33)


        set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
        show_hudmessage(0,kniffmessages[ random_num(0,KNIFFMESSAGES-1) ],killer_name,victim_name)
    }

    if (kniffmode_bit & 2)
    {
        client_cmd(0,"spk hun_ultimate/humiliation")
       }
}


public roundend_msg(id)

    alone_ann = 0

public death_msg
(id)
{

    new lmmode[8] 
    get_cvar_string
("lastman_mode",lmmode,8) 
    new lmmode_bit 
= read_flags(lmmode)

    new players_ct[32], players_t[32], ict, ite, last
    get_players
(players_ct,ict,"ae","CT")   
    get_players
(players_t,ite,"ae","TERRORIST")   

    if 
(ict==1&&ite==1)
    {
        new name1[32], name2[32]
        get_user_name(players_ct[0],name1,32)
        get_user_name(players_t[0],name2,32)
        set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)

        if (lmmode_bit & 1)
        {
            if (lmmode_bit & 2)
            {
                show_hudmessage(0,"%s (%i hp) vs. %s (%i hp)",name1,get_user_health(players_ct[0]),name2,get_user_health(players_t[0]))
            }

            else
            
{
                show_hudmessage(0,"%s vs. %s",name1,name2)
            }

            if (lmmode_bit & 4)
            {
                client_cmd(0,"spk misccc/maytheforce")
            }
        }
    } 
    else
{   
    if 
(ict==1&&ite>1&&alone_ann==0&&(lmmode_bit & 4))
    {
        last=players_ct[0]
        client_cmd(last,"spk misccc/oneandonly")
    }

    else if (ite==1&&ict>1&&alone_ann==0&&(lmmode_bit & 4))
    {
        last=players_t[0]
        client_cmd(last,"spk misccc/oneandonly")
    }

    else
    
{
        return PLUGIN_CONTINUE
    
}
    alone_ann = last
    new name
[32]   
    get_user_name
(last,name,32)

    if (lmmode_bit & 1)
    {
        set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)

        if (lmmode_bit & 2)
        {
            show_hudmessage(0,messageshp[ random_num(0,MESSAGESHP-1) ],ite ,ict ,name,get_user_health(last))
        }

        else
        
{
            show_hudmessage(0,messagesnohp[ random_num(0,MESSAGESNOHP-1) ],ite ,ict ,name )
        }
    }

    if (lmmode_bit & 4)
    {
        client_cmd(last,"spk misccc/maytheforce")
    }
}
    return PLUGIN_CONTINUE   
}


public hs()
{
    new hsmode[4] 
    get_cvar_string
("hs_mode",hsmode,4) 
    new hsmode_bit 
= read_flags(hsmode)

    if (hsmode_bit & 1)
    {
    new killer_id = read_data(1)
    new victim_id = read_data(2)
    new victim_name[33]

    get_user_name(victim_id,victim_name,33)

    set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 3.0, 3.0, 0.15, 0.15, 1)
    show_hudmessage(killer_id,"::!FEJLOVES!::",victim_name)
    }

    if (hsmode_bit & 2)
    {
        client_cmd(0,"spk zorro_ultimate/headshot1")
            client_cmd(0,"spk zorro_ultimate/headshot2")
                client_cmd(0,"spk zorro_ultimate/headshot3")
                client_cmd(0,"spk zorro_ultimate/headshot4")
        }
}

public plugin_precache()
{
    precache_sound("zorro_ultimate/headshot1.wav")
    precache_sound("zorro_ultimate/headshot2.wav")
    precache_sound("zorro_ultimate/headshot3.wav")
        precache_sound("zorro_ultimate/headshot4.wav")
        return PLUGIN_CONTINUE 
}



public plugin_init()
{
    register_plugin("Hungarian Ultimate Sounds","1.5","Zohan^^")
    register_event("DeathMsg","hs","a","3=1")
    register_cvar("hs_mode","ab")
        return PLUGIN_CONTINUE
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
*/



 


És tudnál nekem Linkelni vagy áttirni ? Lécci :D

nem azért de leírta sma-t

Szerző:  nowa [2012.02.10. 21:21 ]
Hozzászólás témája:  Re: Olés Hud

IrOn123 írta:
nowa írta:
CocaIne.^ írta:
Ilyen már van csak át kell írni.
Kód:
#include <amxmodx>

#define KNIFFMESSAGES 4
#define LEVELS 7
#define MESSAGESNOHP 4
#define MESSAGESHP 4

new kills[33] = {0,...};
new deaths[33] = {0,...};
new alone_ann = 0
new levels
[7] = {3, 5, 7, 9, 10, 13, 15};

new stksounds[7][] = {
"hun_ultimate/multikill",
"hun_ultimate/ultrakill",
"hun_ultimate/monsterkill",
"hun_ultimate/killingspree",
"hun_ultimate/rampage",
"hun_ultimate/holyshit",
"hun_ultimate/godlike"};

new stkmessages[7][] = {
"%s: Egy Bruta'lis a'llat!",
"HALA'L HALA'L HALA'L!",
"Ve'rz'o' csirkek %s Az isten",
"%s: Egy GYILKOLOGE'P",
"%s: Elpusztithatatlan",
"%s: AZ ARE'NA KIRA'LYA!",
"VE'R F'U'RD'O'"};


new kniffmessages[KNIFFMESSAGES][] = {
"'Utolso'nak lenni sze'gyen IGAZ?",
"'Utolso'nak lenni sze'gyen IGAZ?",
"'Utolso'nak lenni sze'gyen IGAZ?",
"'Utolso'nak lenni sze'gyen IGAZ?"}

new messagesnohp[MESSAGESNOHP][] = {
"%i terrorista vs %i CT^n%s: Mostma'r minden rajtad mu'lik",
"%i terrorista vs %i CT^n%s: Reme'lem van na'lad e'letment'o' csomag",
"%i terrorista vs %i CT^n%s: Minden csapat ta'rsadat kinyirta'k, sok szerencse't",
"%i terrorista vs %i CT^n%s: Te vagy az u'tolso'"}

new messageshp[MESSAGESHP][] = {
"%i terrorista vs %i CT^n%s (%i hp): Mostma'r minden rajtad mu'lik",
"%i terrorista vs %i CT^n%s (%i hp): Reme'lem van na'lad e'letment'o' csomag",
"%i terrorista vs %i CT^n%s (%i hp): Minden csapat ta'rsadat kinyirta'k, sok szerencse't",
"%i terrorista vs %i CT^n%s (%i hp): Te vagy az u'tolso'"}

get_streak()
{
    new streak[3]
    get_cvar_string("streak_mode",streak,2)
    return read_flags(streak)
}

public death_event(id)
{
    new streak = get_streak()

    if ((streak&1) || (streak&2))
    {
            new killer = read_data(1);
            new victim = read_data(2);

            kills[killer] += 1;
            kills[victim] = 0;
            deaths[killer] = 0;
            deaths[victim] += 1;

            for (new i = 0; i < LEVELS; i++)
        {
                if (kills[killer] == levels[i])
            {
                        announce(killer, i);
                        return PLUGIN_CONTINUE;
            }
        }
    }
    return PLUGIN_CONTINUE;
}

announce(killer, level)
{
    new streak = get_streak()

    if (streak&1)
    {
            new name[32];

           get_user_name(killer, name, 32);
        set_hudmessage(0, 100, 200, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2);
        show_hudmessage(0, stkmessages[level], name);
    }

    if (streak&2){
            client_cmd(0, "spk %s", stksounds[level]);
    }
}

public reset_hud(id)
{
    new streak = get_streak()

    if (streak&1)
    {

        if (kills[id] > levels[0])
        {
                client_print(id, print_chat, 
            
"* Te %d oltel ogy tovabb", kills[id]);

        }

        else if (deaths[id] > 1)
        {
            client_print(id, print_chat, 
            
"* Te meghaltal %dx sorozatban ovatosabban...", deaths[id]);
        }
    }
}

public client_connect(id)
{
    new streak = get_streak()

    if ((streak&1) || (streak&2))
    {
        kills[id] = 0;
        deaths[id] = 0;
    }
}

public knife_kill()
{
    new kniffmode[4] 
    get_cvar_string
("kniff_mode",kniffmode,4) 
    new kniffmode_bit 
= read_flags(kniffmode)

    if (kniffmode_bit & 1)
    {
        new killer_id = read_data(1)
        new victim_id = read_data(2)
        new killer_name[33], victim_name[33]

        get_user_name(killer_id,killer_name,33)
        get_user_name(victim_id,victim_name,33)


        set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
        show_hudmessage(0,kniffmessages[ random_num(0,KNIFFMESSAGES-1) ],killer_name,victim_name)
    }

    if (kniffmode_bit & 2)
    {
        client_cmd(0,"spk hun_ultimate/humiliation")
       }
}


public roundend_msg(id)

    alone_ann = 0

public death_msg
(id)
{

    new lmmode[8] 
    get_cvar_string
("lastman_mode",lmmode,8) 
    new lmmode_bit 
= read_flags(lmmode)

    new players_ct[32], players_t[32], ict, ite, last
    get_players
(players_ct,ict,"ae","CT")   
    get_players
(players_t,ite,"ae","TERRORIST")   

    if 
(ict==1&&ite==1)
    {
        new name1[32], name2[32]
        get_user_name(players_ct[0],name1,32)
        get_user_name(players_t[0],name2,32)
        set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)

        if (lmmode_bit & 1)
        {
            if (lmmode_bit & 2)
            {
                show_hudmessage(0,"%s (%i hp) vs. %s (%i hp)",name1,get_user_health(players_ct[0]),name2,get_user_health(players_t[0]))
            }

            else
            
{
                show_hudmessage(0,"%s vs. %s",name1,name2)
            }

            if (lmmode_bit & 4)
            {
                client_cmd(0,"spk misccc/maytheforce")
            }
        }
    } 
    else
{   
    if 
(ict==1&&ite>1&&alone_ann==0&&(lmmode_bit & 4))
    {
        last=players_ct[0]
        client_cmd(last,"spk misccc/oneandonly")
    }

    else if (ite==1&&ict>1&&alone_ann==0&&(lmmode_bit & 4))
    {
        last=players_t[0]
        client_cmd(last,"spk misccc/oneandonly")
    }

    else
    
{
        return PLUGIN_CONTINUE
    
}
    alone_ann = last
    new name
[32]   
    get_user_name
(last,name,32)

    if (lmmode_bit & 1)
    {
        set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)

        if (lmmode_bit & 2)
        {
            show_hudmessage(0,messageshp[ random_num(0,MESSAGESHP-1) ],ite ,ict ,name,get_user_health(last))
        }

        else
        
{
            show_hudmessage(0,messagesnohp[ random_num(0,MESSAGESNOHP-1) ],ite ,ict ,name )
        }
    }

    if (lmmode_bit & 4)
    {
        client_cmd(last,"spk misccc/maytheforce")
    }
}
    return PLUGIN_CONTINUE   
}


public hs()
{
    new hsmode[4] 
    get_cvar_string
("hs_mode",hsmode,4) 
    new hsmode_bit 
= read_flags(hsmode)

    if (hsmode_bit & 1)
    {
    new killer_id = read_data(1)
    new victim_id = read_data(2)
    new victim_name[33]

    get_user_name(victim_id,victim_name,33)

    set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 3.0, 3.0, 0.15, 0.15, 1)
    show_hudmessage(killer_id,"::!FEJLOVES!::",victim_name)
    }

    if (hsmode_bit & 2)
    {
        client_cmd(0,"spk zorro_ultimate/headshot1")
            client_cmd(0,"spk zorro_ultimate/headshot2")
                client_cmd(0,"spk zorro_ultimate/headshot3")
                client_cmd(0,"spk zorro_ultimate/headshot4")
        }
}

public plugin_precache()
{
    precache_sound("zorro_ultimate/headshot1.wav")
    precache_sound("zorro_ultimate/headshot2.wav")
    precache_sound("zorro_ultimate/headshot3.wav")
        precache_sound("zorro_ultimate/headshot4.wav")
        return PLUGIN_CONTINUE 
}



public plugin_init()
{
    register_plugin("Hungarian Ultimate Sounds","1.5","Zohan^^")
    register_event("DeathMsg","hs","a","3=1")
    register_cvar("hs_mode","ab")
        return PLUGIN_CONTINUE
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
*/



 


És tudnál nekem Linkelni vagy áttirni ? Lécci :D

nem azért de leírta sma-t

7
    get_cvar_string("streak_mode",streak,2)
    return read_flags(streak)
}

public death_event(id)
{
    new streak = get_streak()

    if ((streak 

Ez a fejlövés hangokba bentvan ;) ezt ismerem de nekem olyan kellene hogy csak 1 hang és 1 uzenet :D

Szerző:  CocaIne.^ [2012.02.10. 21:21 ]
Hozzászólás témája:  Re: Olés Hud

nowa írta:
CocaIne.^ írta:
Ilyen már van csak át kell írni.
Kód:
#include <amxmodx>

#define KNIFFMESSAGES 4
#define LEVELS 7
#define MESSAGESNOHP 4
#define MESSAGESHP 4

new kills[33] = {0,...};
new deaths[33] = {0,...};
new alone_ann = 0
new levels
[7] = {3, 5, 7, 9, 10, 13, 15};

new stksounds[7][] = {
"hun_ultimate/multikill",
"hun_ultimate/ultrakill",
"hun_ultimate/monsterkill",
"hun_ultimate/killingspree",
"hun_ultimate/rampage",
"hun_ultimate/holyshit",
"hun_ultimate/godlike"};

new stkmessages[7][] = {
"%s: Egy Bruta'lis a'llat!",
"HALA'L HALA'L HALA'L!",
"Ve'rz'o' csirkek %s Az isten",
"%s: Egy GYILKOLOGE'P",
"%s: Elpusztithatatlan",
"%s: AZ ARE'NA KIRA'LYA!",
"VE'R F'U'RD'O'"};


new kniffmessages[KNIFFMESSAGES][] = {
"'Utolso'nak lenni sze'gyen IGAZ?",
"'Utolso'nak lenni sze'gyen IGAZ?",
"'Utolso'nak lenni sze'gyen IGAZ?",
"'Utolso'nak lenni sze'gyen IGAZ?"}

new messagesnohp[MESSAGESNOHP][] = {
"%i terrorista vs %i CT^n%s: Mostma'r minden rajtad mu'lik",
"%i terrorista vs %i CT^n%s: Reme'lem van na'lad e'letment'o' csomag",
"%i terrorista vs %i CT^n%s: Minden csapat ta'rsadat kinyirta'k, sok szerencse't",
"%i terrorista vs %i CT^n%s: Te vagy az u'tolso'"}

new messageshp[MESSAGESHP][] = {
"%i terrorista vs %i CT^n%s (%i hp): Mostma'r minden rajtad mu'lik",
"%i terrorista vs %i CT^n%s (%i hp): Reme'lem van na'lad e'letment'o' csomag",
"%i terrorista vs %i CT^n%s (%i hp): Minden csapat ta'rsadat kinyirta'k, sok szerencse't",
"%i terrorista vs %i CT^n%s (%i hp): Te vagy az u'tolso'"}

get_streak()
{
    new streak[3]
    get_cvar_string("streak_mode",streak,2)
    return read_flags(streak)
}

public death_event(id)
{
    new streak = get_streak()

    if ((streak&1) || (streak&2))
    {
            new killer = read_data(1);
            new victim = read_data(2);

            kills[killer] += 1;
            kills[victim] = 0;
            deaths[killer] = 0;
            deaths[victim] += 1;

            for (new i = 0; i < LEVELS; i++)
        {
                if (kills[killer] == levels[i])
            {
                        announce(killer, i);
                        return PLUGIN_CONTINUE;
            }
        }
    }
    return PLUGIN_CONTINUE;
}

announce(killer, level)
{
    new streak = get_streak()

    if (streak&1)
    {
            new name[32];

           get_user_name(killer, name, 32);
        set_hudmessage(0, 100, 200, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2);
        show_hudmessage(0, stkmessages[level], name);
    }

    if (streak&2){
            client_cmd(0, "spk %s", stksounds[level]);
    }
}

public reset_hud(id)
{
    new streak = get_streak()

    if (streak&1)
    {

        if (kills[id] > levels[0])
        {
                client_print(id, print_chat, 
            
"* Te %d oltel ogy tovabb", kills[id]);

        }

        else if (deaths[id] > 1)
        {
            client_print(id, print_chat, 
            
"* Te meghaltal %dx sorozatban ovatosabban...", deaths[id]);
        }
    }
}

public client_connect(id)
{
    new streak = get_streak()

    if ((streak&1) || (streak&2))
    {
        kills[id] = 0;
        deaths[id] = 0;
    }
}

public knife_kill()
{
    new kniffmode[4] 
    get_cvar_string
("kniff_mode",kniffmode,4) 
    new kniffmode_bit 
= read_flags(kniffmode)

    if (kniffmode_bit & 1)
    {
        new killer_id = read_data(1)
        new victim_id = read_data(2)
        new killer_name[33], victim_name[33]

        get_user_name(killer_id,killer_name,33)
        get_user_name(victim_id,victim_name,33)


        set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)
        show_hudmessage(0,kniffmessages[ random_num(0,KNIFFMESSAGES-1) ],killer_name,victim_name)
    }

    if (kniffmode_bit & 2)
    {
        client_cmd(0,"spk hun_ultimate/humiliation")
       }
}


public roundend_msg(id)

    alone_ann = 0

public death_msg
(id)
{

    new lmmode[8] 
    get_cvar_string
("lastman_mode",lmmode,8) 
    new lmmode_bit 
= read_flags(lmmode)

    new players_ct[32], players_t[32], ict, ite, last
    get_players
(players_ct,ict,"ae","CT")   
    get_players
(players_t,ite,"ae","TERRORIST")   

    if 
(ict==1&&ite==1)
    {
        new name1[32], name2[32]
        get_user_name(players_ct[0],name1,32)
        get_user_name(players_t[0],name2,32)
        set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)

        if (lmmode_bit & 1)
        {
            if (lmmode_bit & 2)
            {
                show_hudmessage(0,"%s (%i hp) vs. %s (%i hp)",name1,get_user_health(players_ct[0]),name2,get_user_health(players_t[0]))
            }

            else
            
{
                show_hudmessage(0,"%s vs. %s",name1,name2)
            }

            if (lmmode_bit & 4)
            {
                client_cmd(0,"spk misccc/maytheforce")
            }
        }
    } 
    else
{   
    if 
(ict==1&&ite>1&&alone_ann==0&&(lmmode_bit & 4))
    {
        last=players_ct[0]
        client_cmd(last,"spk misccc/oneandonly")
    }

    else if (ite==1&&ict>1&&alone_ann==0&&(lmmode_bit & 4))
    {
        last=players_t[0]
        client_cmd(last,"spk misccc/oneandonly")
    }

    else
    
{
        return PLUGIN_CONTINUE
    
}
    alone_ann = last
    new name
[32]   
    get_user_name
(last,name,32)

    if (lmmode_bit & 1)
    {
        set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)

        if (lmmode_bit & 2)
        {
            show_hudmessage(0,messageshp[ random_num(0,MESSAGESHP-1) ],ite ,ict ,name,get_user_health(last))
        }

        else
        
{
            show_hudmessage(0,messagesnohp[ random_num(0,MESSAGESNOHP-1) ],ite ,ict ,name )
        }
    }

    if (lmmode_bit & 4)
    {
        client_cmd(last,"spk misccc/maytheforce")
    }
}
    return PLUGIN_CONTINUE   
}


public hs()
{
    new hsmode[4] 
    get_cvar_string
("hs_mode",hsmode,4) 
    new hsmode_bit 
= read_flags(hsmode)

    if (hsmode_bit & 1)
    {
    new killer_id = read_data(1)
    new victim_id = read_data(2)
    new victim_name[33]

    get_user_name(victim_id,victim_name,33)

    set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 3.0, 3.0, 0.15, 0.15, 1)
    show_hudmessage(killer_id,"::!FEJLOVES!::",victim_name)
    }

    if (hsmode_bit & 2)
    {
        client_cmd(0,"spk zorro_ultimate/headshot1")
            client_cmd(0,"spk zorro_ultimate/headshot2")
                client_cmd(0,"spk zorro_ultimate/headshot3")
                client_cmd(0,"spk zorro_ultimate/headshot4")
        }
}

public plugin_precache()
{
    precache_sound("zorro_ultimate/headshot1.wav")
    precache_sound("zorro_ultimate/headshot2.wav")
    precache_sound("zorro_ultimate/headshot3.wav")
        precache_sound("zorro_ultimate/headshot4.wav")
        return PLUGIN_CONTINUE 
}



public plugin_init()
{
    register_plugin("Hungarian Ultimate Sounds","1.5","Zohan^^")
    register_event("DeathMsg","hs","a","3=1")
    register_cvar("hs_mode","ab")
        return PLUGIN_CONTINUE
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
*/



 


És tudnál nekem Linkelni vagy áttirni ? Lécci :D

Majd megpróbálom átírni,de most fürdök xd

Szerző:  nowa [2012.02.10. 21:25 ]
Hozzászólás témája:  Re: Olés Hud

na szóval ! ebbe az sma be van 4 hang asszem es nem tudom hogy uzenet! nekem ebböl csak 1 kellene hogy
"AZ ARE'NA KIRA'LYA!" ez! érted meg az ehez való sound :D

Szerző:  CocaIne.^ [2012.02.10. 21:44 ]
Hozzászólás témája:  Re: Olés Hud

És akkor is azt játsza amikor fejbe lősz valakit? Mert ez asszem csak akkor játsza ha többször ölsz 1más után

Szerző:  nowa [2012.02.10. 21:56 ]
Hozzászólás témája:  Re: Olés Hud

CocaIne.^ írta:
És akkor is azt játsza amikor fejbe lősz valakit? Mert ez asszem csak akkor játsza ha többször ölsz 1más után

az ugy lenne a jóó :)

Szerző:  CocaIne.^ [2012.02.10. 21:59 ]
Hozzászólás témája:  Re: Olés Hud

ok.

Oldal: 1 / 2 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/