Raised This Month: $32 Target: $400
 8% 

[Duda] Añadir sonidos


  
 
 
Thread Tools Display Modes
Author Message
KuvZz
Member
Join Date: Sep 2013
Location: Spain
Old 09-16-2013 , 18:45   [Duda] Añadir sonidos
#1

Buenas. Me gustaría saber como añadir sonidos a eventos como por ejemplo cuando un enemigo muere o cuando se coloca la bomba. Si alguien pudiese decirme de algún plugin o algún tutorial, estaría agradecido. He probado con el plugin "event sounds" pero no puedo modificar los sonidos. Gracias
KuvZz is offline
chetah
Senior Member
Join Date: Jan 2013
Location: BangBros
Old 09-16-2013 , 19:39   Re: [Duda] Añadir sonidos
#2

Ve como se hace el ultimate sound o cuando plantan la C4, o si quieres te dejo en el evento de muerte ?
se utiliza que cuando mata con X arma puedes ponerle un hud y un sonido..
__________________
Minecraft Mod: | %15
"Tomorrowland <3"
chetah is offline
KuvZz
Member
Join Date: Sep 2013
Location: Spain
Old 09-16-2013 , 19:50   Re: [Duda] Añadir sonidos
#3

Gracias voy a mirar eso, y si me puedes dejar el evento de la muerte estaría perfecto.
KuvZz is offline
xGreat
Senior Member
Join Date: Jul 2012
Location: Chilean
Old 09-17-2013 , 10:49   Re: [Duda] Añadir sonidos
#4

Hace mucho que no toco pawn, no se si estará bien, pero prueba lo.

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>

#define PLUGIN "Sonidos al morir"
#define VERSION "1.0"
#define AUTHOR "xGreat"

new const Sound[] = "sound/misc/muerte_ct.mp3"
new const Sound2[] = "sound/misc/muerte_t.mp3"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Killed"player""fw_KilledPlayer")
}

public 
plugin_precache()

    
precache_generic(Sound)
    
precache_generic(Sound2)
}

public 
fw_KilledPlayer(victimattacker)
{
    if(
cs_get_user_team(attacker) == CS_TEAM_CT)
    {
        
client_cmd(attacker"spk %s"Sound)
    }
    if(
cs_get_user_team(attacker) == CS_TEAM_T)
    {
        
client_cmd(attacker"spk %s"Sound2)
    }
    
    if(
cs_get_user_team(victim) == CS_TEAM_CT)
    {
        
client_cmd(victim"spk %s"Sound)
    }
    if(
cs_get_user_team(victim) == CS_TEAM_T)
    {
        
client_cmd(victim"spk %s"Sound2)
    }

__________________
Mi 255
WwW.HnsBJz.Tk = MI FORO

xGreat is offline
Send a message via MSN to xGreat
KuvZz
Member
Join Date: Sep 2013
Location: Spain
Old 09-17-2013 , 11:43   Re: [Duda] Añadir sonidos
#5

He puesto dos sonidos que había en esa carpeta para probar, el de la vaca y el de la oveja. El plugin compila pero no suena, ¿será por el formato del audio?
__________________
KuvZz is offline
chetah
Senior Member
Join Date: Jan 2013
Location: BangBros
Old 09-17-2013 , 12:34   Re: [Duda] Añadir sonidos
#6

https://forums.alliedmods.net/showpo...97&postcount=2
__________________
Minecraft Mod: | %15
"Tomorrowland <3"
chetah is offline
KuvZz
Member
Join Date: Sep 2013
Location: Spain
Old 09-17-2013 , 12:42   Re: [Duda] Añadir sonidos
#7

Muchas gracias
__________________
KuvZz is offline
xGreat
Senior Member
Join Date: Jul 2012
Location: Chilean
Old 09-17-2013 , 13:46   Re: [Duda] Añadir sonidos
#8

El formato de mi plugin es en MP3
__________________
Mi 255
WwW.HnsBJz.Tk = MI FORO

xGreat is offline
Send a message via MSN to xGreat
chetah
Senior Member
Join Date: Jan 2013
Location: BangBros
Old 09-17-2013 , 14:29   Re: [Duda] Añadir sonidos
#9

Lol
Es solo cambiar esto en el mio
PHP Code:
static const Sound[] = "misc/soloasd.wav"
-------->
PHP Code:
static const Sound[] = "misc/soloasd.mp3"
off: no faltan los que comentan weas
__________________
Minecraft Mod: | %15
"Tomorrowland <3"
chetah is offline
MexPower
Veteran Member
Join Date: Nov 2012
Old 09-17-2013 , 15:35   Re: [Duda] Añadir sonidos
#10

Quote:
Originally Posted by chetah View Post
Lol
Es solo cambiar esto en el mio
PHP Code:
static const Sound[] = "misc/soloasd.wav"
-------->
PHP Code:
static const Sound[] = "misc/soloasd.mp3"
off: no faltan los que comentan weas
y el client_cmd, y la forma de precachearlo, ademas que pedo usas static globalmente
__________________
Allied Modders En Español
MexPower is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode