Últimos assuntos
» [Duvida] Weapon Modelspor leocorreia Hoje à(s) 3:22 am
» CONFIRA 1 DOS MELHORES SERVIDOR ZOMBIE PLAGUE DO BRASIL
por Leozinho Ontem à(s) 9:17 pm
» [APESENTAÇÃO] waLLzyk
por waLLzyk Ontem à(s) 8:55 pm
» NEW Nemesis ALIEN
por waLLzyk Ontem à(s) 8:47 pm
» .:::|TheHunters|:::. 4Fun Team 1# @EnergiaGames.com
por leocorreia Ontem à(s) 12:44 am
» Server 4FUN super configurado sons,e etc.
por leocorreia Ontem à(s) 12:39 am
» Façam uma lista de Tutorias que vcs queiram
por leocorreia Ontem à(s) 12:18 am
» [PEDIDO] Plugins Variados.
por leocorreia Ontem à(s) 12:12 am
» [ e'Games ] - Zombie Plague 2013 - Evento valendo VIP
por ralfmacedo 24/5/2013, 9:08 pm
» Counter-Strike Long Horn 2013 \o/
por wilian159 24/5/2013, 9:02 pm
Frases filosóficas Zplague:
....
Os membros mais ativos da semana
| waLLzyk | ||||
| dexter200000 | ||||
| wilian159 | ||||
| leocorreia | ||||
| [P]erfec[T] [S]cr[@]s[H] | ||||
| rotam | ||||
| Luankc | ||||
| Vini;* | ||||
| SPANKER ' | ||||
| Leozinho |
Zumbis Online
Tópicos similares
Convidado
Todas as Regras do fórum se aplicam aqui
tome cuidado antes de postar
Ajuda com sons: Head Shot, MultKill....
Página 1 de 1 • Compartilhe •
Ajuda com sons: Head Shot, MultKill....
Olaá pessoall.., eu tenho zombie addons 4.6 e ja fiz varias modificações, e queria por uns sons quando o Zm morrer de Head Shot e tipo mult kill.... So q o problema é q n sei editar isso eu vi q é um plugin mais n achei ele
Obs: se vc forem passar o plugin favor passar sma pois eu quero editalo com meus sons
Obg Agradeço desde jah
Obs: se vc forem passar o plugin favor passar sma pois eu quero editalo com meus sons
Obg Agradeço desde jah

bebe^- Moderador

- Nick: bebe^ *u*
Número de Mensagens: 539
Ammo Packs: 401
Honra: 12
Data de inscrição: 28/04/2012
Re: Ajuda com sons: Head Shot, MultKill....
To be continued...Fiquei sem internet

Olá VIVO

Saiba postar suas dúvidas!

AnDroidEL- Moderador

- Nick: AnDroidEL
Número de Mensagens: 1914
Zzzzzzzzz...
Ammo Packs: 2284
Honra: 46
Data de inscrição: 07/10/2011

Re: Ajuda com sons: Head Shot, MultKill....
mas por exemplo eu n tenho q aciona ele tipo models tem um aquivo q tem os lugares onde os arquivos estao eu n tenho q faze isso com os sons?
Ajudei REP+

bebe^- Moderador

- Nick: bebe^ *u*
Número de Mensagens: 539
Ammo Packs: 401
Honra: 12
Data de inscrição: 28/04/2012
Re: Ajuda com sons: Head Shot, MultKill....
cara n ajudou em nda so mudo uma coisa quando so eu fiko vivo passa umas msg lah q é eu contra varios etc... mais o sons q eu queria q pegasse n pego gostaria de ajuda
Ajudei REP+

bebe^- Moderador

- Nick: bebe^ *u*
Número de Mensagens: 539
Ammo Packs: 401
Honra: 12
Data de inscrição: 28/04/2012
Re: Ajuda com sons: Head Shot, MultKill....
Você colocou o plugin e os sons nos lugares certos?
To be continued...Fiquei sem internet

Olá VIVO

Saiba postar suas dúvidas!

AnDroidEL- Moderador

- Nick: AnDroidEL
Número de Mensagens: 1914
Zzzzzzzzz...
Ammo Packs: 2284
Honra: 46
Data de inscrição: 07/10/2011

Re: Ajuda com sons: Head Shot, MultKill....
colokei oq eu to tentando ti dize é q eu n quero akeles sons tendeu eu quero outros pk meu addons e zm eu so quero q vc explique como eu troko os sons
OBG
OBG
Ajudei REP+

bebe^- Moderador

- Nick: bebe^ *u*
Número de Mensagens: 539
Ammo Packs: 401
Honra: 12
Data de inscrição: 28/04/2012
Re: Ajuda com sons: Head Shot, MultKill....
Leia atentamente ao que eu falei.
Procure isto na SMA:
Este local serve para indicar onde os sons serão postos, dado a isso: misc/nome_do_arquivo. Em nome_do_arquivo você pode trocar por um nome de outro som, como mostrado no código acima. Depois disso você terá que mudar o nome do arquivo de som, ficando igual ao do que você colocou na SMA.
--------------------------------------
Procure isto na SMA:
new stkmessages[10][] =
Percebe-se que ela está na ordem que nem as do 1º código citado no post. Sendo o %s o nome do jogador que fará a ação, e do lado o nome da ação que foi feita. Você troca isso pelo nome do arquivo de som que você escolheu, isso aparecerá tanto na tela como você poder ouvir o que vai falar.
Procure isto na SMA:
Dentro do código, procure:
A função desta parte set_hudmessage é indicar o local de onde vai aparecer aquelas mensagens de evento. Essa parte é meio complicado, então vou lhe passar este tópico:
Este tutorial lhe ensinará a como mudar as posição da mensagem que aparece na tela.
Recomendo mudar também a posição dos outros, para não ficar uma bagunça. Procurando estes códigos:
Dentro de CADA UM desses códigos, procure set_hudmessage, e dentro dos parênteses, deixe igual aos números que você escolheu naquele anterior.
Procure isto na SMA:
Dentro dela, há isso:
Vermelho: Mude para o mesmo nome do arquivo de som que você adicionou na pasta misc. Depois, adicione o tipo de formato de som, sendo que SÓ PODERÁ SER ACEITA os tipos de arquivo de som: MP3 e WAV.
------------------------------------
Percebe que tem algumas coisas faltando: Dentro do código do public plugin_precache() , você vê que possui 4 sons a mais do que as dos outros 2 primeiros códigos citados acima, se quiser remover ou adicionar aqueles que possui ou que não possui, a vontade é sua.
Resultou?
Procure isto na SMA:
- Código:
new stksounds[10][] =
{
"misc/multikill",
"misc/megakill",
"misc/ultrakill",
"misc/monsterkill",
"misc/killingspree",
"misc/wickedsick",
"misc/rampage",
"misc/ludacrisskill",
"misc/godlike",
"misc/holyshit"
}
Este local serve para indicar onde os sons serão postos, dado a isso: misc/nome_do_arquivo. Em nome_do_arquivo você pode trocar por um nome de outro som, como mostrado no código acima. Depois disso você terá que mudar o nome do arquivo de som, ficando igual ao do que você colocou na SMA.
--------------------------------------
Procure isto na SMA:
new stkmessages[10][] =
- Código:
{
"%s: Multi-Kill!",
"%s: Mega-Kill!",
"%s: Ultra-Kill!",
"%s: Monster-Kill!",
"%s: Killing Spree!",
"%s: Wicked Sick!",
"%s: Rampage!",
"%s: Ludacriss-Kill",
"%s: Godlike!",
"%s: Holy Shit!"
}
Percebe-se que ela está na ordem que nem as do 1º código citado no post. Sendo o %s o nome do jogador que fará a ação, e do lado o nome da ação que foi feita. Você troca isso pelo nome do arquivo de som que você escolheu, isso aparecerá tanto na tela como você poder ouvir o que vai falar.
Procure isto na SMA:
- Código:
announce(killer, level)
Dentro do código, procure:
- Código:
set_hudmessage(0, 100, 200, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2);
A função desta parte set_hudmessage é indicar o local de onde vai aparecer aquelas mensagens de evento. Essa parte é meio complicado, então vou lhe passar este tópico:
Este tutorial lhe ensinará a como mudar as posição da mensagem que aparece na tela.
Recomendo mudar também a posição dos outros, para não ficar uma bagunça. Procurando estes códigos:
- Código:
public knife_kill()
public roundend_msg(id)
public hs()
Dentro de CADA UM desses códigos, procure set_hudmessage, e dentro dos parênteses, deixe igual aos números que você escolheu naquele anterior.
Procure isto na SMA:
- Código:
public plugin_precache()
Dentro dela, há isso:
{
precache_sound("misc/monsterkill.wav")
precache_sound("misc/godlike.wav")
precache_sound("misc/headshot.wav")
precache_sound("misc/humiliation.wav")
precache_sound("misc/killingspree.wav")
precache_sound("misc/multikill.wav")
precache_sound("misc/ultrakill.wav")
precache_sound("misc/maytheforce.wav")
precache_sound("misc/oneandonly.wav")
precache_sound("misc/rampage.wav")
precache_sound("misc/holyshit.wav")
precache_sound("misc/megakill.wav")
precache_sound("misc/wickedsick.wav")
precache_sound("misc/ludacrisskill.wav")
return PLUGIN_CONTINUE
}
Vermelho: Mude para o mesmo nome do arquivo de som que você adicionou na pasta misc. Depois, adicione o tipo de formato de som, sendo que SÓ PODERÁ SER ACEITA os tipos de arquivo de som: MP3 e WAV.
------------------------------------
Percebe que tem algumas coisas faltando: Dentro do código do public plugin_precache() , você vê que possui 4 sons a mais do que as dos outros 2 primeiros códigos citados acima, se quiser remover ou adicionar aqueles que possui ou que não possui, a vontade é sua.
Resultou?
To be continued...Fiquei sem internet

Olá VIVO

Saiba postar suas dúvidas!

AnDroidEL- Moderador

- Nick: AnDroidEL
Número de Mensagens: 1914
Zzzzzzzzz...
Ammo Packs: 2284
Honra: 46
Data de inscrição: 07/10/2011

Re: Ajuda com sons: Head Shot, MultKill....
/********************************************************************************
* AMX Mod X script.
*
* Ultimate Sounds (Ultimate_Sounds.sma)
* Copyright (C) 2006-2008 Bmann_420 / Dizzy / Hoboman
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*
*********************************************************************************
*
* AMXX Ultimate Sounds Vers. 1.7
* Last Update: 1/26/2007
*
* by Dizzy / Bmann_420 & Hoboman
* Link: http://forums.alliedmods.net/showthread.php?t=7342
*
*
*********************************************************************************
*
* ///////////////////////////////////////////////////
* // AMXMOD[X] //
* // ::Ultimate sounds:: //
* // Origional: by Hephaistos //
* // Ported by: Dizzy //
* // Edited by: Hoboman, bmann_420 //
* // //
* // cvar: //
* // streak_mode < flags > //
* // "a" - messages //
* // "b" - sounds //
* // //
* // knife_mode < flags > //
* // "a" - messages //
* // "b" - sounds //
* // //
* // hs_mode < flags > //
* // "a" - messages //
* // "b" - sounds //
* // //
* // lastman_mode < flags > //
* // "a" - messages //
* // "b" - hp //
* // "c" - sounds //
* ///////////////////////////////////////////////////
*
*********************************************************************************
*/
// Plugin Info
new const PLUGIN[] = "Ultimate Sounds"
new const VERSION[] = "1.8"
new const AUTHOR[] = "Dizzy / Bmann_420"
// Includes
#include
//Defines
#define KNIFEMESSAGES 5
#define MESSAGESNOHP 5
#define MESSAGESHP 5
#define LEVELS 10
//Pcvars
new streak_mode, knife_mode, hs_mode, lastman_mode
new gmsgHudSync
new kills[33] = {0,...};
new deaths[33] = {0,...};
new alone_ann = 0
new levels[10] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
//Streak Sounds
new stksounds[10][] =
{
"misc/mkflawless",
"misc/mklastplace",
"misc/mksupurb",
"misc/mkonfire",
"misc/mkstdanger"
"misc/mkwelldone",
"misc/mkmask",
"misc/mktoasty",
"misc/mkheadshot",
"misc/mkchchchch"
}
new stkmessages[10][] =
{
"%s: Multi-Kill!",
"%s: Mega-Kill!",
"%s: Ultra-Kill!",
"%s: Monster-Kill!",
"%s: Killing Spree!",
"%s: Wicked Sick!",
"%s: Rampage!",
"%s: Ludacriss-Kill",
"%s: Godlike!",
"%s: Holy Shit!"
}
new knifemessages[KNIFEMESSAGES][] =
{
"KNIFE_MSG_1",
"KNIFE_MSG_2",
"KNIFE_MSG_3",
"KNIFE_MSG_4",
"KNIFE_MSG_5"
}
new messagesnohp[MESSAGESNOHP][] =
{
"NOHP_MSG_1",
"NOHP_MSG_2",
"NOHP_MSG_3",
"NOHP_MSG_4",
"NOHP_MSG_5"
}
new messageshp[MESSAGESHP][] =
{
"HP_MSG_1",
"HP_MSG_2",
"HP_MSG_3",
"HP_MSG_4",
"HP_MSG_5"
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_cvar("ultimate_sounds",VERSION,FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
register_dictionary("ultimate_sounds.txt")
register_event("DeathMsg","hs","a","3=1")
register_event("DeathMsg","knife_kill","a","4&kni")
register_event("ResetHUD", "reset_hud", "b");
register_event("DeathMsg", "death_event", "a", "1>0");
register_event("DeathMsg","death_msg","a")
register_event("SendAudio","roundend_msg","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
register_event("TextMsg","roundend_msg","a","2Game_C","2Game_w")
lastman_mode = register_cvar("lastman_mode","abc")
streak_mode = register_cvar("streak_mode","ab")
knife_mode = register_cvar("knife_mode","ab")
hs_mode = register_cvar("hs_mode","ab")
gmsgHudSync = CreateHudSyncObj()
return PLUGIN_CONTINUE
}
get_streak()
{
new streak[3]
get_pcvar_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);
if (0 < killer <= get_maxplayers())
return PLUGIN_CONTINUE;
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);
ShowSyncHudMsg(0, gmsgHudSync, stkmessages[level], name);
}
if (streak&2){
for(new i=1;i<=get_maxplayers();i++)
if(is_user_connected(i)==1 )
client_cmd(i, "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,"%L", id, "KILL_STREAK", kills[id]);
}
else if (deaths[id] > 1)
{
client_print(id, print_chat,"%L", id, "DEATH_STREAK", 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 knifemode[4]
get_pcvar_string(knife_mode,knifemode,4)
new knifemode_bit = read_flags(knifemode)
if (knifemode_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)
ShowSyncHudMsg(0, gmsgHudSync, "%L", LANG_PLAYER, knifemessages[ random_num(0,KNIFEMESSAGES-1) ],killer_name,victim_name)
}
if (knifemode_bit & 2)
{
for(new i=1;i<=get_maxplayers();i++)
if( is_user_connected(i) == 1 )
client_cmd(i,"spk misc/humiliation")
}
}
public roundend_msg(id)
alone_ann = 0
public death_msg(id)
{
new lmmode[8]
get_pcvar_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)
{
ShowSyncHudMsg(0, gmsgHudSync, "%s (%i hp) vs. %s (%i hp)",name1,get_user_health(players_ct[0]),name2,get_user_health(players_t[0]))
}
else
{
ShowSyncHudMsg(0, gmsgHudSync, "%s vs. %s",name1,name2)
}
if (lmmode_bit & 4)
{
for(new i=1;i<=get_maxplayers();i++)
if( is_user_connected(i) == 1 )
client_cmd(i,"spk misc/maytheforce")
}
}
}
else
{
if (ict==1&&ite>1&&alone_ann==0&&(lmmode_bit & 4))
{
last=players_ct[0]
client_cmd(last,"spk misc/oneandonly")
}
else if (ite==1&&ict>1&&alone_ann==0&&(lmmode_bit & 4))
{
last=players_t[0]
client_cmd(last,"spk misc/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)
{
ShowSyncHudMsg(0, gmsgHudSync, "%L", LANG_PLAYER, messageshp[ random_num(0,MESSAGESHP-1) ],ite ,ict ,name,get_user_health(last))
}
else
{
ShowSyncHudMsg(0, gmsgHudSync, "%L", LANG_PLAYER, messagesnohp[ random_num(0,MESSAGESNOHP-1) ],ite ,ict ,name )
}
}
}
return PLUGIN_CONTINUE
}
public hs()
{
new hsmode[4]
get_pcvar_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)
ShowSyncHudMsg(killer_id, gmsgHudSync, "::HEADSHOT::^nYou Owned %s !!",victim_name)
}
if (hsmode_bit & 2)
{
for(new i=1;i<=get_maxplayers();i++)
if( is_user_connected(i)==1 )
client_cmd(i,"spk misc/headshot")
}
}
public plugin_precache()
{
precache_sound("misc/mkflawless.wav")
precache_sound("misc/mklastplace.wav")
precache_sound("misc/mksupurb.wav")
precache_sound("misc/mkonfire.wav")
precache_sound("misc/mkstdanger.wav")
precache_sound("misc/mkwelldone.wav")
precache_sound("misc/mkmask.wav")
precache_sound("misc/mkheadshot.wav")
precache_sound("misc/mktoasty.wav")
precache_sound("misc/mkchchchch.wav")
precache_sound("misc/holyshit.wav")
precache_sound("misc/megakill.wav")
precache_sound("misc/wickedsick.wav")
precache_sound("misc/ludacrisskill.wav")
return PLUGIN_CONTINUE
}
olha ai eu n to conseguindo compilar mais fiz do jeito q ta no seu post
* AMX Mod X script.
*
* Ultimate Sounds (Ultimate_Sounds.sma)
* Copyright (C) 2006-2008 Bmann_420 / Dizzy / Hoboman
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*
*********************************************************************************
*
* AMXX Ultimate Sounds Vers. 1.7
* Last Update: 1/26/2007
*
* by Dizzy / Bmann_420 & Hoboman
* Link: http://forums.alliedmods.net/showthread.php?t=7342
*
*
*********************************************************************************
*
* ///////////////////////////////////////////////////
* // AMXMOD[X] //
* // ::Ultimate sounds:: //
* // Origional: by Hephaistos //
* // Ported by: Dizzy //
* // Edited by: Hoboman, bmann_420 //
* // //
* // cvar: //
* // streak_mode < flags > //
* // "a" - messages //
* // "b" - sounds //
* // //
* // knife_mode < flags > //
* // "a" - messages //
* // "b" - sounds //
* // //
* // hs_mode < flags > //
* // "a" - messages //
* // "b" - sounds //
* // //
* // lastman_mode < flags > //
* // "a" - messages //
* // "b" - hp //
* // "c" - sounds //
* ///////////////////////////////////////////////////
*
*********************************************************************************
*/
// Plugin Info
new const PLUGIN[] = "Ultimate Sounds"
new const VERSION[] = "1.8"
new const AUTHOR[] = "Dizzy / Bmann_420"
// Includes
#include
//Defines
#define KNIFEMESSAGES 5
#define MESSAGESNOHP 5
#define MESSAGESHP 5
#define LEVELS 10
//Pcvars
new streak_mode, knife_mode, hs_mode, lastman_mode
new gmsgHudSync
new kills[33] = {0,...};
new deaths[33] = {0,...};
new alone_ann = 0
new levels[10] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
//Streak Sounds
new stksounds[10][] =
{
"misc/mkflawless",
"misc/mklastplace",
"misc/mksupurb",
"misc/mkonfire",
"misc/mkstdanger"
"misc/mkwelldone",
"misc/mkmask",
"misc/mktoasty",
"misc/mkheadshot",
"misc/mkchchchch"
}
new stkmessages[10][] =
{
"%s: Multi-Kill!",
"%s: Mega-Kill!",
"%s: Ultra-Kill!",
"%s: Monster-Kill!",
"%s: Killing Spree!",
"%s: Wicked Sick!",
"%s: Rampage!",
"%s: Ludacriss-Kill",
"%s: Godlike!",
"%s: Holy Shit!"
}
new knifemessages[KNIFEMESSAGES][] =
{
"KNIFE_MSG_1",
"KNIFE_MSG_2",
"KNIFE_MSG_3",
"KNIFE_MSG_4",
"KNIFE_MSG_5"
}
new messagesnohp[MESSAGESNOHP][] =
{
"NOHP_MSG_1",
"NOHP_MSG_2",
"NOHP_MSG_3",
"NOHP_MSG_4",
"NOHP_MSG_5"
}
new messageshp[MESSAGESHP][] =
{
"HP_MSG_1",
"HP_MSG_2",
"HP_MSG_3",
"HP_MSG_4",
"HP_MSG_5"
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_cvar("ultimate_sounds",VERSION,FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
register_dictionary("ultimate_sounds.txt")
register_event("DeathMsg","hs","a","3=1")
register_event("DeathMsg","knife_kill","a","4&kni")
register_event("ResetHUD", "reset_hud", "b");
register_event("DeathMsg", "death_event", "a", "1>0");
register_event("DeathMsg","death_msg","a")
register_event("SendAudio","roundend_msg","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
register_event("TextMsg","roundend_msg","a","2Game_C","2Game_w")
lastman_mode = register_cvar("lastman_mode","abc")
streak_mode = register_cvar("streak_mode","ab")
knife_mode = register_cvar("knife_mode","ab")
hs_mode = register_cvar("hs_mode","ab")
gmsgHudSync = CreateHudSyncObj()
return PLUGIN_CONTINUE
}
get_streak()
{
new streak[3]
get_pcvar_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);
if (0 < killer <= get_maxplayers())
return PLUGIN_CONTINUE;
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);
ShowSyncHudMsg(0, gmsgHudSync, stkmessages[level], name);
}
if (streak&2){
for(new i=1;i<=get_maxplayers();i++)
if(is_user_connected(i)==1 )
client_cmd(i, "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,"%L", id, "KILL_STREAK", kills[id]);
}
else if (deaths[id] > 1)
{
client_print(id, print_chat,"%L", id, "DEATH_STREAK", 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 knifemode[4]
get_pcvar_string(knife_mode,knifemode,4)
new knifemode_bit = read_flags(knifemode)
if (knifemode_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)
ShowSyncHudMsg(0, gmsgHudSync, "%L", LANG_PLAYER, knifemessages[ random_num(0,KNIFEMESSAGES-1) ],killer_name,victim_name)
}
if (knifemode_bit & 2)
{
for(new i=1;i<=get_maxplayers();i++)
if( is_user_connected(i) == 1 )
client_cmd(i,"spk misc/humiliation")
}
}
public roundend_msg(id)
alone_ann = 0
public death_msg(id)
{
new lmmode[8]
get_pcvar_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)
{
ShowSyncHudMsg(0, gmsgHudSync, "%s (%i hp) vs. %s (%i hp)",name1,get_user_health(players_ct[0]),name2,get_user_health(players_t[0]))
}
else
{
ShowSyncHudMsg(0, gmsgHudSync, "%s vs. %s",name1,name2)
}
if (lmmode_bit & 4)
{
for(new i=1;i<=get_maxplayers();i++)
if( is_user_connected(i) == 1 )
client_cmd(i,"spk misc/maytheforce")
}
}
}
else
{
if (ict==1&&ite>1&&alone_ann==0&&(lmmode_bit & 4))
{
last=players_ct[0]
client_cmd(last,"spk misc/oneandonly")
}
else if (ite==1&&ict>1&&alone_ann==0&&(lmmode_bit & 4))
{
last=players_t[0]
client_cmd(last,"spk misc/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)
{
ShowSyncHudMsg(0, gmsgHudSync, "%L", LANG_PLAYER, messageshp[ random_num(0,MESSAGESHP-1) ],ite ,ict ,name,get_user_health(last))
}
else
{
ShowSyncHudMsg(0, gmsgHudSync, "%L", LANG_PLAYER, messagesnohp[ random_num(0,MESSAGESNOHP-1) ],ite ,ict ,name )
}
}
}
return PLUGIN_CONTINUE
}
public hs()
{
new hsmode[4]
get_pcvar_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)
ShowSyncHudMsg(killer_id, gmsgHudSync, "::HEADSHOT::^nYou Owned %s !!",victim_name)
}
if (hsmode_bit & 2)
{
for(new i=1;i<=get_maxplayers();i++)
if( is_user_connected(i)==1 )
client_cmd(i,"spk misc/headshot")
}
}
public plugin_precache()
{
precache_sound("misc/mkflawless.wav")
precache_sound("misc/mklastplace.wav")
precache_sound("misc/mksupurb.wav")
precache_sound("misc/mkonfire.wav")
precache_sound("misc/mkstdanger.wav")
precache_sound("misc/mkwelldone.wav")
precache_sound("misc/mkmask.wav")
precache_sound("misc/mkheadshot.wav")
precache_sound("misc/mktoasty.wav")
precache_sound("misc/mkchchchch.wav")
precache_sound("misc/holyshit.wav")
precache_sound("misc/megakill.wav")
precache_sound("misc/wickedsick.wav")
precache_sound("misc/ludacrisskill.wav")
return PLUGIN_CONTINUE
}
olha ai eu n to conseguindo compilar mais fiz do jeito q ta no seu post
Ajudei REP+

bebe^- Moderador

- Nick: bebe^ *u*
Número de Mensagens: 539
Ammo Packs: 401
Honra: 12
Data de inscrição: 28/04/2012
Re: Ajuda com sons: Head Shot, MultKill....
- Spoiler:
- Código:
/********************************************************************************
* AMX Mod X script.
*
* Ultimate Sounds (Ultimate_Sounds.sma)
* Copyright (C) 2006-2008 Bmann_420 / Dizzy / Hoboman
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*
*********************************************************************************
*
* AMXX Ultimate Sounds Vers. 1.7
* Last Update: 1/26/2007
*
* by Dizzy / Bmann_420 & Hoboman
* Link: http://forums.alliedmods.net/showthread.php?t=7342
*
*
*********************************************************************************
*
* ///////////////////////////////////////////////////
* // AMXMOD[X] //
* // ::Ultimate sounds:: //
* // Origional: by Hephaistos //
* // Ported by: Dizzy //
* // Edited by: Hoboman, bmann_420 //
* // //
* // cvar: //
* // streak_mode < flags > //
* // "a" - messages //
* // "b" - sounds //
* // //
* // knife_mode < flags > //
* // "a" - messages //
* // "b" - sounds //
* // //
* // hs_mode < flags > //
* // "a" - messages //
* // "b" - sounds //
* // //
* // lastman_mode < flags > //
* // "a" - messages //
* // "b" - hp //
* // "c" - sounds //
* ///////////////////////////////////////////////////
*
*********************************************************************************
*/
// Plugin Info
new const PLUGIN[] = "Ultimate Sounds"
new const VERSION[] = "1.8"
new const AUTHOR[] = "Dizzy / Bmann_420"
// Includes
#include <amxmodx>
//Defines
#define KNIFEMESSAGES 5
#define MESSAGESNOHP 5
#define MESSAGESHP 5
#define LEVELS 10
//Pcvars
new streak_mode, knife_mode, hs_mode, lastman_mode
new gmsgHudSync
new kills[33] = {0,...};
new deaths[33] = {0,...};
new alone_ann = 0
new levels[10] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
//Streak Sounds
new stksounds[10][] =
{
"misc/mkflawless",
"misc/mklastplace",
"misc/mksupurb",
"misc/mkonfire",
"misc/mkstdanger"
"misc/mkwelldone",
"misc/mkmask",
"misc/mktoasty",
"misc/mkheadshot",
"misc/mkchchchch"
}
new stkmessages[10][] =
{
"%s: Multi-Kill!",
"%s: Mega-Kill!",
"%s: Ultra-Kill!",
"%s: Monster-Kill!",
"%s: Killing Spree!",
"%s: Wicked Sick!",
"%s: Rampage!",
"%s: Ludacriss-Kill",
"%s: Godlike!",
"%s: Holy Shit!"
}
new knifemessages[KNIFEMESSAGES][] =
{
"KNIFE_MSG_1",
"KNIFE_MSG_2",
"KNIFE_MSG_3",
"KNIFE_MSG_4",
"KNIFE_MSG_5"
}
new messagesnohp[MESSAGESNOHP][] =
{
"NOHP_MSG_1",
"NOHP_MSG_2",
"NOHP_MSG_3",
"NOHP_MSG_4",
"NOHP_MSG_5"
}
new messageshp[MESSAGESHP][] =
{
"HP_MSG_1",
"HP_MSG_2",
"HP_MSG_3",
"HP_MSG_4",
"HP_MSG_5"
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_cvar("ultimate_sounds",VERSION,FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
register_dictionary("ultimate_sounds.txt")
register_event("DeathMsg","hs","a","3=1")
register_event("DeathMsg","knife_kill","a","4&kni")
register_event("ResetHUD", "reset_hud", "b");
register_event("DeathMsg", "death_event", "a", "1>0");
register_event("DeathMsg","death_msg","a")
register_event("SendAudio","roundend_msg","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
register_event("TextMsg","roundend_msg","a","2Game_C","2Game_w")
lastman_mode = register_cvar("lastman_mode","abc")
streak_mode = register_cvar("streak_mode","ab")
knife_mode = register_cvar("knife_mode","ab")
hs_mode = register_cvar("hs_mode","ab")
gmsgHudSync = CreateHudSyncObj()
return PLUGIN_CONTINUE
}
get_streak()
{
new streak[3]
get_pcvar_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);
if (0 < killer <= get_maxplayers())
return PLUGIN_CONTINUE;
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);
ShowSyncHudMsg(0, gmsgHudSync, stkmessages[level], name);
}
if (streak&2){
for(new i=1;i<=get_maxplayers();i++)
if(is_user_connected(i)==1 )
client_cmd(i, "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,"%L", id, "KILL_STREAK", kills[id]);
}
else if (deaths[id] > 1)
{
client_print(id, print_chat,"%L", id, "DEATH_STREAK", 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 knifemode[4]
get_pcvar_string(knife_mode,knifemode,4)
new knifemode_bit = read_flags(knifemode)
if (knifemode_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)
ShowSyncHudMsg(0, gmsgHudSync, "%L", LANG_PLAYER, knifemessages[ random_num(0,KNIFEMESSAGES-1) ],killer_name,victim_name)
}
if (knifemode_bit & 2)
{
for(new i=1;i<=get_maxplayers();i++)
if( is_user_connected(i) == 1 )
client_cmd(i,"spk misc/humiliation")
}
}
public roundend_msg(id)
alone_ann = 0
public death_msg(id)
{
new lmmode[8]
get_pcvar_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)
{
ShowSyncHudMsg(0, gmsgHudSync, "%s (%i hp) vs. %s (%i hp)",name1,get_user_health(players_ct[0]),name2,get_user_health(players_t[0]))
}
else
{
ShowSyncHudMsg(0, gmsgHudSync, "%s vs. %s",name1,name2)
}
if (lmmode_bit & 4)
{
for(new i=1;i<=get_maxplayers();i++)
if( is_user_connected(i) == 1 )
client_cmd(i,"spk misc/maytheforce")
}
}
}
else
{
if (ict==1&&ite>1&&alone_ann==0&&(lmmode_bit & 4))
{
last=players_ct[0]
client_cmd(last,"spk misc/oneandonly")
}
else if (ite==1&&ict>1&&alone_ann==0&&(lmmode_bit & 4))
{
last=players_t[0]
client_cmd(last,"spk misc/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)
{
ShowSyncHudMsg(0, gmsgHudSync, "%L", LANG_PLAYER, messageshp[ random_num(0,MESSAGESHP-1) ],ite ,ict ,name,get_user_health(last))
}
else
{
ShowSyncHudMsg(0, gmsgHudSync, "%L", LANG_PLAYER, messagesnohp[ random_num(0,MESSAGESNOHP-1) ],ite ,ict ,name )
}
}
}
return PLUGIN_CONTINUE
}
public hs()
{
new hsmode[4]
get_pcvar_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)
ShowSyncHudMsg(killer_id, gmsgHudSync, "::HEADSHOT::^nYou Owned %s !!",victim_name)
}
if (hsmode_bit & 2)
{
for(new i=1;i<=get_maxplayers();i++)
if( is_user_connected(i)==1 )
client_cmd(i,"spk misc/headshot")
}
}
public plugin_precache()
{
precache_sound("misc/mkflawless.wav")
precache_sound("misc/mklastplace.wav")
precache_sound("misc/mksupurb.wav")
precache_sound("misc/mkonfire.wav")
precache_sound("misc/mkstdanger.wav")
precache_sound("misc/mkwelldone.wav")
precache_sound("misc/mkmask.wav")
precache_sound("misc/mkheadshot.wav")
precache_sound("misc/mktoasty.wav")
precache_sound("misc/mkchchchch.wav")
precache_sound("misc/holyshit.wav")
precache_sound("misc/megakill.wav")
precache_sound("misc/wickedsick.wav")
precache_sound("misc/ludacrisskill.wav")
return PLUGIN_CONTINUE
}
Coloque o erro que deu aí na hora de compilar. PS: Coloquei isso em cima como código só para resumir e selecionar mais fácil o conteúdo. E ainda adicionei a #include que faltava.
To be continued...Fiquei sem internet

Olá VIVO

Saiba postar suas dúvidas!

AnDroidEL- Moderador

- Nick: AnDroidEL
Número de Mensagens: 1914
Zzzzzzzzz...
Ammo Packs: 2284
Honra: 46
Data de inscrição: 07/10/2011

Re: Ajuda com sons: Head Shot, MultKill....
deu dois erros vo posta aki
antes tava dando so um
esses aki: error 001: expected token: "}" , but found "-string-"
error 010 invalid function or declaration
ME DESCULPA FIKA INCOMODANDO MAIS N SEI MEXE COM SCRIPT AINDA
SE PUDER AJUDA AGRADEÇO
antes tava dando so um
esses aki: error 001: expected token: "}" , but found "-string-"
error 010 invalid function or declaration
ME DESCULPA FIKA INCOMODANDO MAIS N SEI MEXE COM SCRIPT AINDA
SE PUDER AJUDA AGRADEÇO
Ajudei REP+

bebe^- Moderador

- Nick: bebe^ *u*
Número de Mensagens: 539
Ammo Packs: 401
Honra: 12
Data de inscrição: 28/04/2012
Re: Ajuda com sons: Head Shot, MultKill....
Eu estava tentando identificar a parte que estava dando erro, só que como fiquei confuso nem deu... '--
A quem possa resolver isso, sendo realmente um scripter. Espere algum aparecer que possa te ajudar. =)
É urgente assim que você precisa?
A quem possa resolver isso, sendo realmente um scripter. Espere algum aparecer que possa te ajudar. =)
É urgente assim que você precisa?
To be continued...Fiquei sem internet

Olá VIVO

Saiba postar suas dúvidas!

AnDroidEL- Moderador

- Nick: AnDroidEL
Número de Mensagens: 1914
Zzzzzzzzz...
Ammo Packs: 2284
Honra: 46
Data de inscrição: 07/10/2011

Re: Ajuda com sons: Head Shot, MultKill....
corrigi o que o droid postou
- Código:
/********************************************************************************
* AMX Mod X script.
*
* Ultimate Sounds (Ultimate_Sounds.sma)
* Copyright (C) 2006-2008 Bmann_420 / Dizzy / Hoboman
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*
*********************************************************************************
*
* AMXX Ultimate Sounds Vers. 1.7
* Last Update: 1/26/2007
*
* by Dizzy / Bmann_420 & Hoboman
* Link: http://forums.alliedmods.net/showthread.php?t=7342
*
*
*********************************************************************************
*
* ///////////////////////////////////////////////////
* // AMXMOD[X] //
* // ::Ultimate sounds:: //
* // Origional: by Hephaistos //
* // Ported by: Dizzy //
* // Edited by: Hoboman, bmann_420 //
* // //
* // cvar: //
* // streak_mode < flags > //
* // "a" - messages //
* // "b" - sounds //
* // //
* // knife_mode < flags > //
* // "a" - messages //
* // "b" - sounds //
* // //
* // hs_mode < flags > //
* // "a" - messages //
* // "b" - sounds //
* // //
* // lastman_mode < flags > //
* // "a" - messages //
* // "b" - hp //
* // "c" - sounds //
* ///////////////////////////////////////////////////
*
*********************************************************************************
*/
// Plugin Info
new const PLUGIN[] = "Ultimate Sounds"
new const VERSION[] = "1.8"
new const AUTHOR[] = "Dizzy / Bmann_420"
// Includes
#include <amxmodx>
//Defines
#define KNIFEMESSAGES 5
#define MESSAGESNOHP 5
#define MESSAGESHP 5
#define LEVELS 10
//Pcvars
new streak_mode, knife_mode, hs_mode, lastman_mode
new gmsgHudSync
new kills[33] = {0,...};
new deaths[33] = {0,...};
new alone_ann = 0
new levels[10] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
//Streak Sounds
new stksounds[10][] =
{
"misc/mkflawless",
"misc/mklastplace",
"misc/mksupurb",
"misc/mkonfire",
"misc/mkstdanger",
"misc/mkwelldone",
"misc/mkmask",
"misc/mktoasty",
"misc/mkheadshot",
"misc/mkchchchch"
}
new stkmessages[10][] =
{
"%s: Multi-Kill!",
"%s: Mega-Kill!",
"%s: Ultra-Kill!",
"%s: Monster-Kill!",
"%s: Killing Spree!",
"%s: Wicked Sick!",
"%s: Rampage!",
"%s: Ludacriss-Kill",
"%s: Godlike!",
"%s: Holy Shit!"
}
new knifemessages[KNIFEMESSAGES][] =
{
"KNIFE_MSG_1",
"KNIFE_MSG_2",
"KNIFE_MSG_3",
"KNIFE_MSG_4",
"KNIFE_MSG_5"
}
new messagesnohp[MESSAGESNOHP][] =
{
"NOHP_MSG_1",
"NOHP_MSG_2",
"NOHP_MSG_3",
"NOHP_MSG_4",
"NOHP_MSG_5"
}
new messageshp[MESSAGESHP][] =
{
"HP_MSG_1",
"HP_MSG_2",
"HP_MSG_3",
"HP_MSG_4",
"HP_MSG_5"
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_cvar("ultimate_sounds",VERSION,FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
register_dictionary("ultimate_sounds.txt")
register_event("DeathMsg","hs","a","3=1")
register_event("DeathMsg","knife_kill","a","4&kni")
register_event("ResetHUD", "reset_hud", "b");
register_event("DeathMsg", "death_event", "a", "1>0");
register_event("DeathMsg","death_msg","a")
register_event("SendAudio","roundend_msg","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
register_event("TextMsg","roundend_msg","a","2Game_C","2Game_w")
lastman_mode = register_cvar("lastman_mode","abc")
streak_mode = register_cvar("streak_mode","ab")
knife_mode = register_cvar("knife_mode","ab")
hs_mode = register_cvar("hs_mode","ab")
gmsgHudSync = CreateHudSyncObj()
return PLUGIN_CONTINUE
}
get_streak()
{
new streak[3]
get_pcvar_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);
if (0 < killer <= get_maxplayers())
return PLUGIN_CONTINUE;
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);
ShowSyncHudMsg(0, gmsgHudSync, stkmessages[level], name);
}
if (streak&2){
for(new i=1;i<=get_maxplayers();i++)
if(is_user_connected(i)==1 )
client_cmd(i, "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,"%L", id, "KILL_STREAK", kills[id]);
}
else if (deaths[id] > 1)
{
client_print(id, print_chat,"%L", id, "DEATH_STREAK", 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 knifemode[4]
get_pcvar_string(knife_mode,knifemode,4)
new knifemode_bit = read_flags(knifemode)
if (knifemode_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)
ShowSyncHudMsg(0, gmsgHudSync, "%L", LANG_PLAYER, knifemessages[ random_num(0,KNIFEMESSAGES-1) ],killer_name,victim_name)
}
if (knifemode_bit & 2)
{
for(new i=1;i<=get_maxplayers();i++)
if( is_user_connected(i) == 1 )
client_cmd(i,"spk misc/humiliation")
}
}
public roundend_msg(id)
alone_ann = 0
public death_msg(id)
{
new lmmode[8]
get_pcvar_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)
{
ShowSyncHudMsg(0, gmsgHudSync, "%s (%i hp) vs. %s (%i hp)",name1,get_user_health(players_ct[0]),name2,get_user_health(players_t[0]))
}
else
{
ShowSyncHudMsg(0, gmsgHudSync, "%s vs. %s",name1,name2)
}
if (lmmode_bit & 4)
{
for(new i=1;i<=get_maxplayers();i++)
if( is_user_connected(i) == 1 )
client_cmd(i,"spk misc/maytheforce")
}
}
}
else
{
if (ict==1&&ite>1&&alone_ann==0&&(lmmode_bit & 4))
{
last=players_ct[0]
client_cmd(last,"spk misc/oneandonly")
}
else if (ite==1&&ict>1&&alone_ann==0&&(lmmode_bit & 4))
{
last=players_t[0]
client_cmd(last,"spk misc/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)
{
ShowSyncHudMsg(0, gmsgHudSync, "%L", LANG_PLAYER, messageshp[ random_num(0,MESSAGESHP-1) ],ite ,ict ,name,get_user_health(last))
}
else
{
ShowSyncHudMsg(0, gmsgHudSync, "%L", LANG_PLAYER, messagesnohp[ random_num(0,MESSAGESNOHP-1) ],ite ,ict ,name )
}
}
}
return PLUGIN_CONTINUE
}
public hs()
{
new hsmode[4]
get_pcvar_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)
ShowSyncHudMsg(killer_id, gmsgHudSync, "::HEADSHOT::^nYou Owned %s !!",victim_name)
}
if (hsmode_bit & 2)
{
for(new i=1;i<=get_maxplayers();i++)
if( is_user_connected(i)==1 )
client_cmd(i,"spk misc/headshot")
}
}
public plugin_precache()
{
precache_sound("misc/mkflawless.wav")
precache_sound("misc/mklastplace.wav")
precache_sound("misc/mksupurb.wav")
precache_sound("misc/mkonfire.wav")
precache_sound("misc/mkstdanger.wav")
precache_sound("misc/mkwelldone.wav")
precache_sound("misc/mkmask.wav")
precache_sound("misc/mkheadshot.wav")
precache_sound("misc/mktoasty.wav")
precache_sound("misc/mkchchchch.wav")
precache_sound("misc/holyshit.wav")
precache_sound("misc/megakill.wav")
precache_sound("misc/wickedsick.wav")
precache_sound("misc/ludacrisskill.wav")
return PLUGIN_CONTINUE
}
"Os idiotas é que deixam o mundo mais interessante"
- Spoiler:

Junin- Administrador

- Nick: jr_acn
Número de Mensagens: 1897
Depressivo
Ammo Packs: 360
Honra: 143
Data de inscrição: 12/03/2009

Re: Ajuda com sons: Head Shot, MultKill....
Estranho é que pelo site do AMX Mod X, o plugin está dando erro.
To be continued...Fiquei sem internet

Olá VIVO

Saiba postar suas dúvidas!

AnDroidEL- Moderador

- Nick: AnDroidEL
Número de Mensagens: 1914
Zzzzzzzzz...
Ammo Packs: 2284
Honra: 46
Data de inscrição: 07/10/2011

Re: Ajuda com sons: Head Shot, MultKill....
opaaa aki compilo legal vlw galera
Ajudei REP+

bebe^- Moderador

- Nick: bebe^ *u*
Número de Mensagens: 539
Ammo Packs: 401
Honra: 12
Data de inscrição: 28/04/2012
Re: Ajuda com sons: Head Shot, MultKill....
Qual compilador usa-se aqui?
To be continued...Fiquei sem internet

Olá VIVO

Saiba postar suas dúvidas!

AnDroidEL- Moderador

- Nick: AnDroidEL
Número de Mensagens: 1914
Zzzzzzzzz...
Ammo Packs: 2284
Honra: 46
Data de inscrição: 07/10/2011

Tópicos similares» [SONS] Mateeus_HollywooD Xingando /L
» Manual Sons of Anarchy (By: Jax_Teller)
» Ajuda AIKAJP
» itens de avatar me ajuda
» [Ajuda] Não consigo entrar no Tree nuts
» Manual Sons of Anarchy (By: Jax_Teller)
» Ajuda AIKAJP
» itens de avatar me ajuda
» [Ajuda] Não consigo entrar no Tree nuts
Página 1 de 1
Permissão deste fórum:
Você não pode responder aos tópicos neste fórum

Tópicos e mensagens
