Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.

  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

Advenced Ultimate Sounds


  • Zamknięty Temat jest zamknięty
5 odpowiedzi w tym temacie

#1 Sevecio

    Zaawansowany

  • Użytkownik

Reputacja: 6
Nowy

  • Postów:125
  • GG:
  • Lokalizacja:Bełchatów
Offline

Napisano 17.10.2008 20:03

Siemka, mam prosbe czy moglby ktos mi spolszczyc i zmienic kolor napisow podczas wytwarzania sie dzwieku w tym pluginie?? Kolor jest ustawiony na rozowy a napisy sa po angielsku a chcialbym zeby byly po polsku (bez bledow) i w kolorze czerwonym lub zielonym...
Wiem ze ktos juz na forum wrzucal taki plugin spolszoczny jednak tamten ma zbyt wiele bledow ktore sa zauwazalne na serwerze podczas gry...
Z gory dzięki...
Za pomoc dam "Pomógł"!

Plik SMA:
/* Ultimate KillStreak Advanced

 
  ! Available Sounds for enemy kills, headshot kills, knife kills , first blood kills , double kill , round counter.
 
1) 10 sounds for enemy kills :
- At 3 kills -> play TripleKill sound
- 4 -> play MultiKill sound (it's not basically multikill sound)
- 6 -> play UltraKill sound (it's not basically ultrakill sound)
- 8  -> play KillingSpree sound (it's not basically killingspree sound)
- 10 -> play MegaKill sound
- 12 -> play Holy Shit sound
- 14 -> play Ludicrouskill sound
- 15 -> play rampage sound 
- 16 -> play Unstoppable Sound (it's not basically unstoppable sound)
- 18 -> play Monster Kill sound (it's not basically monster kill sound)


2) 2 Sounds for Headshot (random play)
3) 2 Sounds for Knife Kill (random play)
4) 2 Sounds for First Blood (random play)
5) 3 Sounds for Round Counter Events (random play)
6) 1 Sound for Grenade Kill Events
7) 4 Sounds for Suicide Events
8) 2 Sounds for Double Kill Events



* CVARs:

- ut_killstreak_advanced (default 3) - enable/disable kill report, hudmessages
1 = Only HudMessages
2 = Only Sounds
3 = Sounds and HudMessages
 Another number disable this event


- ut_killstreak_hs (default 1) -> enable/disable headshot events
   Includes 2 sounds, hudmessages
   
- ut_killstreak_knife (default 1) -> enable/disable knife kill events
    Includes 2 sounds, hudmessages
    
- ut_firstblood (default 1) -> enable/disable first blood events
    Includes 2 sounds, hudmessages
    
- ut_nade_events (default 1) -> enable/disable Grenade kill events
    Includes 1 sounds, hudmessages
    
- ut_suicide_events (default 1) -> enable/disable Suicide Events
    Includes 4 sounds, hudmessages
    
- ut_doublekill_events (default 1) -> enable/disable Double Kill Events
    Includes 2 sounds, hudmessage

- ut_roundcout_sounds (default 1) -> enable/disable Round Counter Sounds 
    Includes 3 sounds, hudmessage
    

* [UPDATE] 0.6 - > 0.7 (10/02/2007)
- Changed the ul_killstreak_advanced cvar (read on head plugin at "CVARS"
- Chaged the cord of hudmessages, to be to center
- Now on killstreak announce, messages will be with random colors
    
    
* [UPDATE] 0.5 -> 0.6
- Fixed bugs
- Added Round Counter Cvar:
ut_roundcout_sounds



* [UPDATE] 0.4 -> 0.5
- Added Double Kill Events
Cvar : ut_doublekill_events (default 1)
Sounds : 2 sounds (random play)
Messages : 1 Hud Message
 This is only if you kill 2 players with a bullet

* [UPDATE] 0.3 -> 0.4
- Added Grenade Kill Events -> 
Cvar : ut_nade_events (default 1)
Sounds : 1 sound
Messages : 4 hud messages (random display)

- Added Suicide Events 
Cvar : ut_suicide_events (default 1)
Sounds : 4 (random play)
Messages : 2 hud messages (random display)


* [UPDATE] 0.2 -> 0.3
- Added First Blood Events:
Cvar : ut_firstblood (default 1)
Sounds : 2 sounds (random play)
Messages : 3 hud messages (random display)

- Added Round Counter Events:
Sounds : 3 sounds (random play)
Messages : 1 hud message



* [UPDATE] 0.1 -> 0.2
- Added new 4 headshot kill messages
- Added new 3 knife kill messages
    This messages will displayed at random
    

* Install:
1) Enable Plugin
2) Copy "ultimate_sounds" folder in to your "cstrikesound" folder
3) Restart server


* Credits:
- xxAvalancheXx for double kill codes
- jim_yang for some sugestion and grenade events codes
- bo0m! for help me with an register event function 
- Duca for Streak Mode Example

* Have a nice day now

*/




#include <amxmodx>
#include <amxmisc>

#define PLUGIN_NAME "Ultimate KillStreak Advanced"
#define PLUGIN_VERSION "0.7"
#define PLUGIN_AUTHOR "SAMURAI" 


new kills[33] = {0,...};
new deaths[33] = {0,...};
new firstblood
new kill[33][24];

#define LEVELS 10
#define hsounds 2
#define knsounds 2
#define fbsounds 2
#define prpsounds 3
#define suicidesounds 4
#define maxdbsounds 2
#define TASK_CLEAR_KILL    100

new hsenable
new knifeenable
new firstbloodenable
new nadecvar
new suicidecvar
new cvardouble
new rnstartcvar
new killstreaktype


new levels[10] = {3, 4, 6, 8, 10, 12,14,15,16,18};

new sounds[10][] = 
{
"mito/ultimatesounds/triplekill_ultimate", 
"mito/ultimatesounds/multikill_ultimate", 
"mito/ultimatesounds/ultrakill_ultimate",
"mito/ultimatesounds/killingspree_ultimate", 
"mito/ultimatesounds/megakill_ultimate", 
"mito/ultimatesounds/holyshit_ultimate",
"mito/ultimatesounds/ludicrouskill_ultimate",
"mito/ultimatesounds/rampage_ultimate",
"mito/ultimatesounds/unstoppable_ultimate",
"mito/ultimatesounds/monsterkill_ultimate"
};

new messages[10][] = 
{
"%s: Triple Kill !", 
"%s: Multi Kill !",
"%s: Ultra Kill !", 
"%s: Killing Spree !",
"%s: Mega Kill !",
"%s: Holy Shit !",
"%s: Ludicrous Kill !", 
"%s: Rampage !",
"%s: Unstoppable !", 
"%s: M o n s t e R  K i L L ! ! !"
};

new hslist[hsounds][] = 
{
"mito/ultimatesounds/headshot1_ultimate",
"mito/ultimatesounds/headshot2_ultimate"
}

new fblist[fbsounds][]=
{
"mito/ultimatesounds/firstblood1_ultimate",
"mito/ultimatesounds/firstblood2_ultimate"
}

new preplist[prpsounds][]=
{
"mito/ultimatesounds/prepare1_ultimate",
"mito/ultimatesounds/prepare2_ultimate",
"mito/ultimatesounds/prepare3_ultimate"
}


new fbmessages[3][]=
{
"%s : First Blood !",
"%s Drew First Blood !!!", 
"%s First Shot on tha Mark !"
}

new hsmessages[4][]=
{
"%s removed %s head !!",
"%s had a superb aim with %s !",
"%s Made a superb headshot to %s!",
"%s down %s with a superb headshot !"
}

new knlist[knsounds][]=
{
"mito/ultimatesounds/knife1_ultimate",
"mito/ultimatesounds/knife2_ultimate"
}

new knmessages[3][]=
{
"%s sliced and diced %s",
"%s pulled out knife and gutted %s",	
"%s knifed %s"
}

new nademessages[3][]=
{
"%s got a big explosion for %s",
"%s made a precision throw to %s",
"%s is good grenadier ! i think he back from the war ..."
}

new suicidemess[2][]=
{
"%s knows how the kill command works!",
"%s prefer to kill himself...rather than die on battle land"
}

new suicidelist[suicidesounds][]=
{
"mito/ultimatesounds/suicide1_ultimate",
"mito/ultimatesounds/suicide2_ultimate",
"mito/ultimatesounds/suicide3_ultimate",
"mito/ultimatesounds/suicide4_ultimate"
}

new doublelist[maxdbsounds][]=
{
"mito/ultimatesounds/doublekill1_ultimate",
"mito/ultimatesounds/doublekill2_ultimate"
}

is_mode_set(bits) {
    new mode[9];
    get_cvar_string("ut_killstreak_advanced", mode, 8);
    return read_flags(mode) & bits;
}

public plugin_init() {
    register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
    killstreaktype = register_cvar("ut_killstreak_advanced", "3");
    register_event("ResetHUD", "reset_hud", "b");
    register_event("HLTV","rnstart","a", "1=0", "2=0");
    register_event("DeathMsg", "event_death", "a");
    hsenable = register_cvar("ut_killstreak_hs","1");
    knifeenable = register_cvar("ut_killstreak_knife","1");
    firstbloodenable = register_cvar("ut_firstblood","1");
    nadecvar = register_cvar("ut_nade_events","1");
    suicidecvar = register_cvar("ut_suicide_events","1");
    cvardouble = register_cvar("ut_doublekill_events","1");
    rnstartcvar = register_cvar("ut_roundcout_sounds","1");

    return PLUGIN_CONTINUE;
}


public event_death(id) {
    new killer = read_data(1);
    new victim = read_data(2);
    new headshot = read_data(3);
    new weapon[24], vicname[32], killname[32]
    read_data(4,weapon,23)
    get_user_name(victim,vicname,31)
    get_user_name(killer,killname,31)
    
   
 
    if(headshot == 1 && get_pcvar_num(hsenable) ==1) 
    { 
	set_hudmessage(0, 0, 255, -1.0, 0.30, 0, 6.0, 6.0)
	show_hudmessage(0, (hsmessages[random_num(0,3)]), killname, vicname)
	new i
	i = random_num(0,hsounds-1)
	client_cmd(0,"spk %s",hslist[i])
    } 

    
    if(weapon[0] == 'k'  && get_pcvar_num(knifeenable) ==1)
    { 
    	set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0)
    	show_hudmessage(0, (knmessages[random_num(0,2)]), killname, vicname)
        new r
	r = random_num(0,knsounds-1)
	client_cmd(0,"spk %s",knlist[r])   
    } 
    
    
    if(firstblood && killer!=victim && killer>0 && get_pcvar_num(firstbloodenable) ==1) 
    {	   	
        set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0)
	show_hudmessage(0, (fbmessages[random_num(0,2)]), killname)
	new t
	t = random_num(0,fbsounds-1)
	client_cmd(0,"spk %s",fblist[t])
	firstblood = 0
     }
     
     
    if(weapon[1] == 'r' && get_pcvar_num(nadecvar) ==1)
     {
     	set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0)
	show_hudmessage(0,(nademessages[random_num(0,2)]),killname,vicname)
	client_cmd(0,"spk mito/ultimatesounds/nade_ultimate")
     }

     
    if(killer == victim && get_pcvar_num(suicidecvar) ==1) 
    { 
     	set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0)
	show_hudmessage(0,(suicidemess[random_num(0,1)]), vicname)
	new z
	z = random_num(0,suicidesounds-1)
	client_cmd(0,"spk %s",suicidelist[z])
      
    } 
    
    
    if(kill[killer][0] && equal(kill[killer],weapon) && get_pcvar_num(cvardouble) == 1)
    {
        set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0)
	show_hudmessage(0,"Wow %s made a double kill", killname)
        kill[killer][0] = 0;
        new q
        q= random_num(0,maxdbsounds-1)
        client_cmd(0,"spk %s",doublelist[q])
    }
    
    else
    {
        kill[killer] = weapon;
        set_task(0.1,"clear_kill",TASK_CLEAR_KILL+killer);
    }
       
	
    
    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 name[33]
    new r = random(256)
    new g = random(256)
    new b = random(256)

    get_user_name(killer, name, 32);
    set_hudmessage(r,g,b, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2);

    if( (get_pcvar_num(killstreaktype) <= 0 ) || get_pcvar_num(killstreaktype) > 3)
    return PLUGIN_HANDLED;
    
    
    
    if(get_pcvar_num(killstreaktype) == 1)
    {
    	show_hudmessage(0, messages[level], name);
    }
    	
    if(get_pcvar_num(killstreaktype) == 2)
    {
	client_cmd(0, "spk %s", sounds[level]);
    }

    if(get_pcvar_num(killstreaktype) == 3)
    {
	show_hudmessage(0, messages[level], name);
	client_cmd(0, "spk %s", sounds[level]);
    }
	
    return PLUGIN_CONTINUE;
	
}


public reset_hud(id) 
{
    firstblood = 1 
    if (is_mode_set(16)) {
      if (kills[id] > levels[0]) {
        client_print(id, print_chat, 
                     "* You are on a killstreak with %d kills.", kills[id]);
      } else if (deaths[id] > 1) {
        client_print(id, print_chat, 
                     "* Take care, you are on a deathstreak with %d deaths in a row.", deaths[id]);

        }
    }
}

public rnstart(id)
{
    if(get_pcvar_num(rnstartcvar) == 1)
    {
    firstblood = 1   
    set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0)
    show_hudmessage(0, "Prepare To Fight!")
    new q
    q = random_num(0,prpsounds-1)
    client_cmd(0,"spk %s",preplist[q])
    }
}

public client_connect(id) {
    kills[id] = 0;
    deaths[id] = 0;
}

public clear_kill(taskid)
 {
    new id = taskid-TASK_CLEAR_KILL;
    kill[id][0] = 0;
 }

public plugin_precache()
{
precache_sound("mito/ultimatesounds/triplekill_ultimate.wav")
precache_sound("mito/ultimatesounds/multikill_ultimate.wav")
precache_sound("mito/ultimatesounds/ultrakill_ultimate.wav")
precache_sound("mito/ultimatesounds/killingspree_ultimate.wav")
precache_sound("mito/ultimatesounds/megakill_ultimate.wav")
precache_sound("mito/ultimatesounds/holyshit_ultimate.wav")
precache_sound("mito/ultimatesounds/ludicrouskill_ultimate.wav")
precache_sound("mito/ultimatesounds/rampage_ultimate.wav")
precache_sound("mito/ultimatesounds/unstoppable_ultimate.wav")
precache_sound("mito/ultimatesounds/monsterkill_ultimate.wav")
precache_sound("mito/ultimatesounds/headshot1_ultimate.wav")
precache_sound("mito/ultimatesounds/headshot2_ultimate.wav")
precache_sound("mito/ultimatesounds/knife1_ultimate.wav")
precache_sound("mito/ultimatesounds/knife2_ultimate.wav")
precache_sound("mito/ultimatesounds/firstblood1_ultimate.wav")
precache_sound("mito/ultimatesounds/firstblood2_ultimate.wav")
precache_sound("mito/ultimatesounds/prepare1_ultimate.wav")
precache_sound("mito/ultimatesounds/prepare2_ultimate.wav")
precache_sound("mito/ultimatesounds/prepare3_ultimate.wav")
precache_sound("mito/ultimatesounds/nade_ultimate.wav")
precache_sound("mito/ultimatesounds/suicide1_ultimate.wav")
precache_sound("mito/ultimatesounds/suicide2_ultimate.wav")
precache_sound("mito/ultimatesounds/suicide3_ultimate.wav")
precache_sound("mito/ultimatesounds/suicide4_ultimate.wav")
precache_sound("mito/ultimatesounds/doublekill1_ultimate.wav")
precache_sound("mito/ultimatesounds/doublekill2_ultimate.wav")
}
	 
	
	

  • +
  • -
  • 0

#2 zer0.

    Godlike

  • Przyjaciel

Reputacja: 428
Wszechobecny

  • Postów:2116
  • Steam:steam
  • Lokalizacja:Kw
Offline

Napisano 18.10.2008 09:38

Spolszczenie bez 'changelog' . Oparlem sie na tlumaczeniu 'Huba'
/* Ultimate KillStreak Advanced

 
  ! Available Sounds for enemy kills, headshot kills, knife kills , first blood kills , double kill , round counter.
 
1) 10 Dźwięków dla ilości zabijanych wrogów:
- Za 3 zabicia -> dźwięk TripleKill
- 4 -> dźwięk MultiKill
- 6 -> dźwięk UltraKill
- 8 -> dźwięk KillingSpree
- 10 -> dźwięk MegaKill
- 12 -> dźwięk Holy Shit
- 14 -> dźwięk Ludicrouskill
- 15 -> dźwięk Rampage
- 16 -> dźwięk Unstoppable
- 18 -> dźwięk Monster Kill 

2) 2 dźwięki dla Zabicia Strzałem w Głowę (losowo odtwarzane)
3) 2 dźwięki dla Zabicia Nożem (losowo odtwarzane)
4) 2 dźwięki dla Pierwszej Krwi (losowo odtwarzane)
5) 3 dźwięki dla Licznika Rund (losowo odtwarzane)
6) 1 dźwięki dla Zabicia Granatem
7) 4 dźwięki dla Samobójstwa (losowo odtwarzane)
8) 2 dźwięki dla Zabicia 2 na raz (losowo odtwarzane) 


* CVARs:

- ut_killstreak_advanced (default 3) - włącza/wyłącza kill report, hudmessages
1 = Tylko wiadomości w hudzie
2 = Tylko dzwięki
3 = Dzwięki i wiadomości w hudzie
Każda inna liczba wyłącza plugin

- ut_killstreak_hs (domyślnie 1) -> włącza/wyłącza 2 dźwięki
 wraz wiadomością w hudzie o Zabiciu Strzałem w Głowę

- ut_killstreak_knife (domyślnie 1) -> włącza/wyłącza 2 dźwięki
 wraz wiadomością w hudzie o Zabiciu nożem

- ut_firstblood (domyślnie 1) -> włącza/wyłącza 2 dźwięki
 wraz wiadomością w hudzie o Pierwszej Krwi

- ut_nade_events (domyślnie 1) -> włącza/wyłącza 2 dźwięki
 wraz wiadomością w hudzie o Zabiciu Granatem

- ut_suicide_events (domyślnie 1) -> włącza/wyłącza 2 dźwięki
 wraz wiadomością w hudzie o Samobójstwie

- ut_doublekill_events (domyślnie 1) -> włącza/wyłącza 2 dźwięki
 wraz wiadomością w hudzie o Podwójnym Zabiciu

- ut_roundcout_sounds (domyślnie 1) -> włącza/wyłącza Licznik rund
wraz z 3 dźwiękami na początku rundy,wiadomością w hudzie

   

* [UPDATE] 0.6 - > 0.7 (10/02/2007)
- Changed the ul_killstreak_advanced cvar (read on head plugin at "CVARS"
- Chaged the cord of hudmessages, to be to center
- Now on killstreak announce, messages will be with random colors
   
   
* [UPDATE] 0.5 -> 0.6
- Fixed bugs
- Added Round Counter Cvar:
ut_roundcout_sounds



* [UPDATE] 0.4 -> 0.5
- Added Double Kill Events
Cvar : ut_doublekill_events (default 1)
Sounds : 2 sounds (random play)
Messages : 1 Hud Message
 This is only if you kill 2 players with a bullet

* [UPDATE] 0.3 -> 0.4
- Added Grenade Kill Events ->
Cvar : ut_nade_events (default 1)
Sounds : 1 sound
Messages : 4 hud messages (random display)

- Added Suicide Events
Cvar : ut_suicide_events (default 1)
Sounds : 4 (random play)
Messages : 2 hud messages (random display)


* [UPDATE] 0.2 -> 0.3
- Added First Blood Events:
Cvar : ut_firstblood (default 1)
Sounds : 2 sounds (random play)
Messages : 3 hud messages (random display)

- Added Round Counter Events:
Sounds : 3 sounds (random play)
Messages : 1 hud message



* [UPDATE] 0.1 -> 0.2
- Added new 4 headshot kill messages
- Added new 3 knife kill messages
    This messages will displayed at random
   

* Install:
1) Wgraj plugin
2) Skopiuj folder "ultimate_sounds" do "cstrikesound" 
3) Zrestartuj Serwer


* Credits:
- xxAvalancheXx for double kill codes
- jim_yang for some sugestion and grenade events codes
- bo0m! for help me with an register event function
- Duca for Streak Mode Example

* Have a nice day now

*/




#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Ultimate KillStreak Advanced"
#define VERSION "0.8"
#define AUTHOR "SAMURAI"


/*#define TASK_CLEAR_KILL    100*/
#define LEVELS 10
/*new kill[33][24];*/
new kills[33] = {0,...};
new deaths[33] = {0,...};

new hsenable, knifeenable, firstbloodenable, nadecvar, suicidecvar, /*cvardouble,*/ rnstartcvar, killstreaktype;
new firstblood;

new hsmessages[][] =
{
	"%s zalozyl sie o glowe z %s i wygral !!",
	"Przez %s %s stracil glowe !",
	"%s zrobil trzecie oko dla %s!",
	"%s pozbyl sie %s i jego glowy!"
};
new hslist[][] =
{
	"mito/ultimate_sounds/headshot1_ultimate",
	"mito/ultimate_sounds/headshot2_ultimate"
};


new knmessages[][] =
{
	"Psychol %s wbil noz dla %s prosto w serce!",
	"%s dzgnol nozem %s",	
	"%s operowal %s niestety pacjent zmarl!"
};
new knlist[][] =
{
	"mito/ultimate_sounds/knife1_ultimate",
	"mito/ultimate_sounds/knife2_ultimate"
};


new fbmessages[][] =
{
	"%s to ja będę pierwszy!!",
	"%s moj pierwszy frag w tej rundzie!!", 
	"To %s spowodowal pierwszy krwotok w tej rundzie!"
};
new fblist[][] =
{
	"mito/ultimate_sounds/firstblood1_ultimate",
	"mito/ultimate_sounds/firstblood2_ultimate"
};


new nademessages[][] =
{
	"%s rzucil co nieco dla %s !",
	"%s zrobil wybuchowy prezent dla %s !",
	"%s jest dobrym granadierem!"
};


new suicidemess[][] =
{
	"%s sam sie zabil ahahahha!",
	"%s jest idioto!"
};
new suicidelist[][] =
{
	"mito/ultimate_sounds/suicide1_ultimate",
	"mito/ultimate_sounds/suicide2_ultimate",
	"mito/ultimate_sounds/suicide3_ultimate",
	"mito/ultimate_sounds/suicide4_ultimate"
};


new doublelist[][] =
{
	"mito/ultimate_sounds/doublekill1_ultimate",
	"mito/ultimate_sounds/doublekill2_ultimate"
}


new levels[10] = {3, 4, 6, 8, 10, 12,14,15,16,18};
new sounds[10][] = 
{
	"mito/ultimate_sounds/triplekill_ultimate", 
	"mito/ultimate_sounds/multikill_ultimate", 
	"mito/ultimate_sounds/ultrakill_ultimate",
	"mito/ultimate_sounds/killingspree_ultimate", 
	"mito/ultimate_sounds/megakill_ultimate", 
	"mito/ultimate_sounds/holyshit_ultimate",
	"mito/ultimate_sounds/ludicrouskill_ultimate",
	"mito/ultimate_sounds/rampage_ultimate",
	"mito/ultimate_sounds/unstoppable_ultimate",
	"mito/ultimate_sounds/monsterkill_ultimate"
};
new messages[10][] = 
{
	"%s: Duble kill!", 
	"%s: Multi Kill !",
	"%s: Ultra Kill !", 
	"%s: Killing Spree !",
	"%s: Mega Kill !",
	"%s: Holy Shit !",
	"%s: Ludicrous Kill !", 
	"%s: Rampage !",
	"%s: Unstoppable !", 
	"%s: M o n s t e R  K i L L ! ! !"
};


new preplist[][] =
{
	"mito/ultimate_sounds/prepare1_ultimate",
	"mito/ultimate_sounds/prepare2_ultimate",
	"mito/ultimate_sounds/prepare3_ultimate"
};


// remaked double kill
new Float:g_doubleKill;
new g_doubleKillId;
new gdbcvar;

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_event("ResetHUD", "reset_hud", "b");
	register_event("HLTV","rnstart","a", "1=0", "2=0");
	killstreaktype = register_cvar("ut_killstreak_advanced", "3");
	hsenable = register_cvar("ut_killstreak_hs","1");
	knifeenable = register_cvar("ut_killstreak_knife","1");
	firstbloodenable = register_cvar("ut_firstblood","1");
	nadecvar = register_cvar("ut_nade_events","1");
	suicidecvar = register_cvar("ut_suicide_events","1");
	/*cvardouble = register_cvar("ut_doublekill_events","1");*/
	gdbcvar = register_cvar("ut_doublekill_events","1");
	rnstartcvar = register_cvar("ut_roundcout_sounds","1");

}


public client_death(killer,victim,weapon,hitplace,TK)
{
	if(!killer || !victim)
		return;
	
	static kname[32], vname[32];
	get_user_name(killer,kname,31);
	get_user_name(victim,vname,31);
	
	if(hitplace == HIT_HEAD && get_pcvar_num(hsenable) == 1 )
	{
		set_hudmessage(0, 0, 255, -1.0, 0.30, 0, 6.0, 6.0);
		show_hudmessage(0, hsmessages[random(sizeof hsmessages)], kname, vname);
		client_cmd(0,"spk %s",hslist[random(sizeof hslist)]);
	}
	
	if(weapon == CSW_KNIFE && get_pcvar_num(knifeenable) == 1 )
	{
		set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0);
		show_hudmessage(0, knmessages[random(sizeof knmessages)], kname, vname);
		client_cmd(0,"spk %s",knlist[random(sizeof knlist)]);   
	}
	
	if(firstblood && killer != victim && get_pcvar_num(firstbloodenable) ==1) 
	{
		set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0);
		show_hudmessage(0, fbmessages[random(sizeof fbmessages)], kname);
		client_cmd(0,"spk %s",fblist[random(sizeof fblist)]);
	}
	
	if(weapon == CSW_HEGRENADE && get_pcvar_num(nadecvar) == 1)
	{
		set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0);
		show_hudmessage(0,nademessages[random(sizeof nademessages)],kname,vname);
		client_cmd(0,"spk ultimate_sounds/nade_ultimate");
	}
	
	if(killer == victim && get_pcvar_num(suicidecvar) ==1) 
	{
		set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0);
		show_hudmessage(0,suicidemess[random(sizeof suicidemess)], vname);
		client_cmd(0,"spk %s",suicidelist[random(sizeof suicidelist)]);
	}
	
	
	/*if(kill[killer][0] && equal(kill[killer],weapon) && killer != victim && get_pcvar_num(cvardouble) == 1)
	{
		set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0);
		show_hudmessage(0,"Wow %s made a double kill", kname);
		kill[killer][0] = 0;
		client_cmd(0,"spk %s",doublelist[random(sizeof doublelist)]);
	}
	else
	{
		kill[killer] = weapon;
		set_task(0.1,"clear_kill",TASK_CLEAR_KILL+killer);
	}*/
	
	// REMAKED DOUBLE KILL <img src='http://amxx.pl/public/style_emoticons/<#EMO_DIR#>/mouthshut.gif' class='bbc_emoticon' alt=':X' />
	if(killer != victim && killer && get_pcvar_num(gdbcvar) == 1)
	{
		new Float:nowtime = get_gametime();
		if (g_doubleKill == nowtime && g_doubleKillId == killer)
		{
			set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0);
			show_hudmessage(0,"Wow %s made a double kill", kname);
			
			// play the funcking soundz
			client_cmd(0,"spk %s",doublelist[random(sizeof doublelist)]);
		}
		g_doubleKill = nowtime;
		g_doubleKillId = killer;
	}
			

		
	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;
		}
	}
	
		
}
		

announce(killer, level) 
{
	
	static name[33];
	new r = random(256);
	new g = random(256);
	new b = random(256);

	get_user_name(killer, name, 32);
	
	set_hudmessage(r,g,b, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2);

	if( (get_pcvar_num(killstreaktype) <= 0 ) || get_pcvar_num(killstreaktype) > 3)
		return 0;
    
	switch(get_pcvar_num(killstreaktype))
	{
		case 1: 
		{	
			show_hudmessage(0, messages[level], name);
			return 0;
		}
		
		case 2:
		{
			client_cmd(0, "spk %s", sounds[level]);
			return 0;
		}
		
		case 3:
		{
			show_hudmessage(0, messages[level], name);
			client_cmd(0, "spk %s", sounds[level]);
			return 0;
		}
	}
			
	return 0;
	
}


public reset_hud(id) 
{
	firstblood = 1; 
	if (is_mode_set(16)) 
		if (kills[id] > levels[0]) 
			client_print(id, print_chat, "* Zabiles %d bez smierci!", kills[id]);
		else if (deaths[id] > 1) 
			client_print(id, print_chat, "* Uwazaj zgineles %d rundy pod rzad!", deaths[id]);

    
}

public rnstart(id)
{
	if(get_pcvar_num(rnstartcvar) == 1)
	{
		firstblood = 1;   
		set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0);
		show_hudmessage(0, "Prepare To Fight!");

		client_cmd(0,"spk %s",preplist[random(sizeof preplist)]);
	}
}

public client_connect(id) 
{
	kills[id] = 0;
	deaths[id] = 0;
}

/*public clear_kill(taskid)
{
	new id = taskid-TASK_CLEAR_KILL;
	kill[id][0] = 0;
}*/

is_mode_set(bits) 
{
	new mode[9];
	get_cvar_string("ut_killstreak_advanced", mode, 8);
	return read_flags(mode) & bits;
}

public plugin_precache()
{
	precache_sound("mito/ultimate_sounds/triplekill_ultimate.wav");
	precache_sound("mito/ultimate_sounds/multikill_ultimate.wav");
	precache_sound("mito/ultimate_sounds/ultrakill_ultimate.wav");
	precache_sound("mito/ultimate_sounds/killingspree_ultimate.wav");
	precache_sound("mito/ultimate_sounds/megakill_ultimate.wav");
	precache_sound("mito/ultimate_sounds/holyshit_ultimate.wav");
	precache_sound("mito/ultimate_sounds/ludicrouskill_ultimate.wav");
	precache_sound("mito/ultimate_sounds/rampage_ultimate.wav");
	precache_sound("mito/ultimate_sounds/unstoppable_ultimate.wav");
	precache_sound("mito/ultimate_sounds/monsterkill_ultimate.wav");
	precache_sound("mito/ultimate_sounds/headshot1_ultimate.wav");
	precache_sound("mito/ultimate_sounds/headshot2_ultimate.wav");
	precache_sound("mito/ultimate_sounds/knife1_ultimate.wav");
	precache_sound("mito/ultimate_sounds/knife2_ultimate.wav");
	precache_sound("mito/ultimate_sounds/firstblood1_ultimate.wav");
	precache_sound("mito/ultimate_sounds/firstblood2_ultimate.wav");
	precache_sound("mito/ultimate_sounds/prepare1_ultimate.wav");
	precache_sound("mito/ultimate_sounds/prepare2_ultimate.wav");
	precache_sound("mito/ultimate_sounds/prepare3_ultimate.wav");
	precache_sound("mito/ultimate_sounds/nade_ultimate.wav");
	precache_sound("mito/ultimate_sounds/suicide1_ultimate.wav");
	precache_sound("mito/ultimate_sounds/suicide2_ultimate.wav");
	precache_sound("mito/ultimate_sounds/suicide3_ultimate.wav");
	precache_sound("mito/ultimate_sounds/suicide4_ultimate.wav");
	precache_sound("mito/ultimate_sounds/doublekill1_ultimate.wav");
	precache_sound("mito/ultimate_sounds/doublekill2_ultimate.wav");
}


[ Dodano: 18-10-2008, 10:51 ]
Czyt. Komentarz załącznika

Załączone pliki


  • +
  • -
  • 0

#3 Sevecio

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: 6
Nowy

  • Postów:125
  • GG:
  • Lokalizacja:Bełchatów
Offline

Napisano 18.10.2008 11:10

Za spolszczenie dzięki ale czy da sie zmienic kolor tych napisow na czerwony lub zielony ?? bo rozowy to takie troche niezbyt fajny...
  • +
  • -
  • 0

#4 mgr inż. Pavulon

    C35H60Br2N2O4

  • Przyjaciel

Reputacja: 1725
Godlike

  • Postów:6881
  • Steam:steam
  • Imię:Konrad
  • Lokalizacja:Koniecpol
Offline

Napisano 18.10.2008 12:22

za kolor odpowiadają pierwsze trzy liczby w set_hudmessage tj

set_hudmessage(255, 0, 255 ...

Możesz je ustawić na takie chcesz, zapisane są jako set_hudmessage(RRR, GGG, BBB ...
wstawiając w RRR - kolor czerwony, GGG - zielony, BBB - niebieski. A wartości od 0 - 255
  • +
  • -
  • 0

#5 Sevecio

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: 6
Nowy

  • Postów:125
  • GG:
  • Lokalizacja:Bełchatów
Offline

Napisano 18.10.2008 13:55

dzięki za pomoc...
  • +
  • -
  • 0

#6 mgr inż. Pavulon

    C35H60Br2N2O4

  • Przyjaciel

Reputacja: 1725
Godlike

  • Postów:6881
  • Steam:steam
  • Imię:Konrad
  • Lokalizacja:Koniecpol
Offline

Napisano 18.10.2008 14:06

Jak już dziękujecie to naciśnijcie Dołączona grafika to nie boli :P
  • +
  • -
  • 0




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych