Raised This Month: $51 Target: $400
 12% 

[ES] Consulta


  
 
 
Thread Tools Display Modes
Author Message
alconnegro
Member
Join Date: Jun 2010
Old 07-29-2010 , 01:20   [ES] Consulta
#1

La hago rapida, existe algun plugin que te reprodusca musica dentro del cs me refiero a algo como Ejemplo: Tipean /reproducir

Y empiesa a reproducir musica pero de forma aleatoria de una lista:

1.- Cancion A
2.- Cancion B
3.- Cancion C
4.- Cancion D
5.- Cancion E

ETC, si existe porfavor postear link porque no lo encontre.

-----------

Otra existe algo que haga un sistema de votos para banear o kickear etc pero algo msa complado como por ejemplo se le hara la votacion a un usuario por molestar con microfono y un player tipea:

/denuncia "Usuario" "Razon"

Y si inicia la votacion para que el usuario sea baneado pero por ejemplo si el usuario empiesa a abusar de esto el server lo banee.


Thanks =)
alconnegro is offline
Lawer
Senior Member
Join Date: Jul 2010
Location: C:\WINDOWS\MyHouse
Old 07-29-2010 , 07:37   Re: [ES] Consulta
#2

Quote:
Originally Posted by alconnegro View Post
La hago rapida, existe algun plugin que te reprodusca musica dentro del cs me refiero a algo como Ejemplo: Tipean /reproducir

Y empiesa a reproducir musica pero de forma aleatoria de una lista:

1.- Cancion A
2.- Cancion B
3.- Cancion C
4.- Cancion D
5.- Cancion E

ETC, si existe porfavor postear link porque no lo encontre.

-----------

Otra existe algo que haga un sistema de votos para banear o kickear etc pero algo msa complado como por ejemplo se le hara la votacion a un usuario por molestar con microfono y un player tipea:

/denuncia "Usuario" "Razon"

Y si inicia la votacion para que el usuario sea baneado pero por ejemplo si el usuario empiesa a abusar de esto el server lo banee.


Thanks =)
Si buscas algo por "music" te va a salir todo, pero bueno...

Lo de la cancion 1,2,3,etc es preferible que uses el plugin de radio, ya que si no vas a tener que subir las musicas al servidor y de ahi pesa masomenos a de_dust2
Lawer is offline
Send a message via Skype™ to Lawer
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-29-2010 , 22:10   Re: [ES] Consulta
#3

PHP Code:
#include <amxmodx>

const MAX_SOUNDS // Edita el Nš de Sonidos que se contendran.

// No modifiques esto
enum _:SndTypes
{
    
SOUND_NAME 0,
    
SOUND_FILE
}

// Aqui edita la lista de Sonidos.
// El Formato es:  *** {"Nombre", "Ruta del Archivo"}, ***
// CUIDADO, la ultima linea no tiene que llevar coma.
new const MP3_SOUND_LIST[MAX_SOUNDS][SndTypes][128] =
{
    {
"Pluma Pluma Gay""micarpeta/sonido1.wav"},
    {
"Pluma Pluma Gay 2""micarpeta/sonido2.wav"},
    {
"Pluma Pluma Gay 3""micarpeta/sonido3.wav"},
    {
"Pluma Pluma Gay 4""micarpeta/sonido4.wav"},
    {
"Pluma Pluma Gay 5""micarpeta/sonido5.wav"// La ultima linea no lleva coma
}

new 
bool:g_bIsMP3[MAX_SOUNDS]

/*
    *** El formato del sonido tiene por defecto incluido la carpeta sounds, ejemplo: ***
    *** "misc/sound.wav", deberia estar guardado en la ruta: "cstrike/sound/misc/sound.wav" ***
*/

#define VERSION "0.1"
#define AUTHOR "meTaLiCroSS"

public plugin_init() 
{
    
register_plugin("Reproductor de Musica Local"VERSIONAUTHOR)
    
register_clcmd("say /reproducir""cmd_reproducir_sonido")
    
    new 
szCvar[32]
    
formatex(szCvarcharsmax(szCvar), "v%s by %s"VERSIONAUTHOR)
    
register_cvar("rml_version"szCvarFCVAR_SERVER|FCVAR_SPONLY)
}

public 
plugin_precache()
{
    static 
iszBuffer[128]
    for(
0MAX_SOUNDSi++)
    {
        
copy(szBuffercharsmax(szBuffer), MP3_SOUND_LIST[i][SOUND_FILE])
        
g_bIsMP3[i] = equal(szBuffer[strlen(szBuffer)-4], ".mp3") ? true false
        
        
if(g_bIsMP3[i])
        {
            
format(szBuffercharsmax(szBuffer), "sound/%s"szBuffer)
            
precache_generic(szBuffer)
        }
        else
        {
            
precache_generic(szBuffer)
        }
    }
}

public 
cmd_reproducir_sonido(id)
{
    
show_menu_reproducir(id0)
    return 
PLUGIN_CONTINUE
}

public 
show_menu_reproducir(idpage)
{
    new 
iMenuID menu_create("\rReproducir un Sonido""menu_reproducir")
    
    
menu_additem(iMenuID"Parar Sonidos Actuales""-1")
    
    static 
iszBuffer[7]
    
    for(
0MAX_SOUNDSi++)
    {
        
num_to_str(iszBuffercharsmax(szBuffer))
        
menu_additem(iMenuIDMP3_SOUND_LIST[i][SOUND_NAME], szBuffer)
    }
    
    
menu_display(idiMenuIDpage)
}

public 
menu_reproducir(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED;
    }
    
    
// Get Data
    
static szData[6], szName[64], iTempiTemp2iKey
    menu_item_getinfo
(menuitemiTempszDatacharsmax(szData), szNamecharsmax(szName), iTemp2)
    
    
iKey str_to_num(szData)

    switch(
iKey)
    {
        case -
1:
        {
            
client_cmd(id"mp3 stop; stopsound")
            
client_print(idprint_chat"[RML] Sonidos Detenidos")
        }
        default:
        {
            if(
g_bIsMP3[iKey])
                
client_cmd(id"mp3 play ^"sound/%s^""MP3_SOUND_LIST[iKey][SOUND_FILE])
            else
                
client_cmd(id"spk ^"%s^""MP3_SOUND_LIST[iKey][SOUND_FILE])
                
            
client_print(idprint_chat"[RML] Play al Sonido: %s"MP3_SOUND_LIST[iKey][SOUND_NAME])
        }
    }
    
    
// iTemp2 is the page
    
player_menu_info(idiTempiTempiTemp2)
    
show_menu_reproducir(idiTemp2)
    
menu_destroy(menu)
    
    return 
PLUGIN_HANDLED
    

No esta testeado D:
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
alconnegro
Member
Join Date: Jun 2010
Old 07-29-2010 , 22:18   Re: [ES] Consulta
#4

Quote:
Originally Posted by meTaLiCroSS View Post
PHP Code:
#include <amxmodx>

const MAX_SOUNDS // Edita el Nš de Sonidos que se contendran.

// No modifiques esto
enum _:SndTypes
{
    
SOUND_NAME 0,
    
SOUND_FILE
}

// Aqui edita la lista de Sonidos.
// El Formato es:  *** {"Nombre", "Ruta del Archivo"}, ***
// CUIDADO, la ultima linea no tiene que llevar coma.
new const MP3_SOUND_LIST[MAX_SOUNDS][SndTypes][128] =
{
    {
"Pluma Pluma Gay""micarpeta/sonido1.wav"},
    {
"Pluma Pluma Gay 2""micarpeta/sonido2.wav"},
    {
"Pluma Pluma Gay 3""micarpeta/sonido3.wav"},
    {
"Pluma Pluma Gay 4""micarpeta/sonido4.wav"},
    {
"Pluma Pluma Gay 5""micarpeta/sonido5.wav"// La ultima linea no lleva coma
}

new 
bool:g_bIsMP3[MAX_SOUNDS]

/*
    *** El formato del sonido tiene por defecto incluido la carpeta sounds, ejemplo: ***
    *** "misc/sound.wav", deberia estar guardado en la ruta: "cstrike/sound/misc/sound.wav" ***
*/

#define VERSION "0.1"
#define AUTHOR "meTaLiCroSS"

public plugin_init() 
{
    
register_plugin("Reproductor de Musica Local"VERSIONAUTHOR)
    
register_clcmd("say /reproducir""cmd_reproducir_sonido")
    
    new 
szCvar[32]
    
formatex(szCvarcharsmax(szCvar), "v%s by %s"VERSIONAUTHOR)
    
register_cvar("rml_version"szCvarFCVAR_SERVER|FCVAR_SPONLY)
}

public 
plugin_precache()
{
    static 
iszBuffer[128]
    for(
0MAX_SOUNDSi++)
    {
        
copy(szBuffercharsmax(szBuffer), MP3_SOUND_LIST[i][SOUND_FILE])
        
g_bIsMP3[i] = equal(szBuffer[strlen(szBuffer)-4], ".mp3") ? true false
        
        
if(g_bIsMP3[i])
        {
            
format(szBuffercharsmax(szBuffer), "sound/%s"szBuffer)
            
precache_generic(szBuffer)
        }
        else
        {
            
precache_generic(szBuffer)
        }
    }
}

public 
cmd_reproducir_sonido(id)
{
    
show_menu_reproducir(id0)
    return 
PLUGIN_CONTINUE
}

public 
show_menu_reproducir(idpage)
{
    new 
iMenuID menu_create("\rReproducir un Sonido""menu_reproducir")
    
    
menu_additem(iMenuID"Parar Sonidos Actuales""-1")
    
    static 
iszBuffer[7]
    
    for(
0MAX_SOUNDSi++)
    {
        
num_to_str(iszBuffercharsmax(szBuffer))
        
menu_additem(iMenuIDMP3_SOUND_LIST[i][SOUND_NAME], szBuffer)
    }
    
    
menu_display(idiMenuIDpage)
}

public 
menu_reproducir(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED;
    }
    
    
// Get Data
    
static szData[6], szName[64], iTempiTemp2iKey
    menu_item_getinfo
(menuitemiTempszDatacharsmax(szData), szNamecharsmax(szName), iTemp2)
    
    
iKey str_to_num(szData)

    switch(
iKey)
    {
        case -
1:
        {
            
client_cmd(id"mp3 stop; stopsound")
            
client_print(idprint_chat"[RML] Sonidos Detenidos")
        }
        default:
        {
            if(
g_bIsMP3[iKey])
                
client_cmd(id"mp3 play ^"sound/%s^""MP3_SOUND_LIST[iKey][SOUND_FILE])
            else
                
client_cmd(id"spk ^"%s^""MP3_SOUND_LIST[iKey][SOUND_FILE])
                
            
client_print(idprint_chat"[RML] Play al Sonido: %s"MP3_SOUND_LIST[iKey][SOUND_NAME])
        }
    }
    
    
// iTemp2 is the page
    
player_menu_info(idiTempiTempiTemp2)
    
show_menu_reproducir(idiTemp2)
    
menu_destroy(menu)
    
    return 
PLUGIN_HANDLED
    

No esta testeado D:

thanks lo testeare
__________________
[IMG]http://img718.**************/img718/7375/wtfzv.jpg[/IMG]
alconnegro is offline
PattyBiena
BANNED
Join Date: Jul 2010
Location: Argentina
Old 07-30-2010 , 18:01   Re: [ES] Consulta
#5

Quote:
Originally Posted by meTaLiCroSS View Post
PHP Code:
#include <amxmodx>

const MAX_SOUNDS // Edita el Nš de Sonidos que se contendran.

// No modifiques esto
enum _:SndTypes
{
    
SOUND_NAME 0,
    
SOUND_FILE
}

// Aqui edita la lista de Sonidos.
// El Formato es:  *** {"Nombre", "Ruta del Archivo"}, ***
// CUIDADO, la ultima linea no tiene que llevar coma.
new const MP3_SOUND_LIST[MAX_SOUNDS][SndTypes][128] =
{
    {
"Pluma Pluma Gay""micarpeta/sonido1.wav"},
    {
"Pluma Pluma Gay 2""micarpeta/sonido2.wav"},
    {
"Pluma Pluma Gay 3""micarpeta/sonido3.wav"},
    {
"Pluma Pluma Gay 4""micarpeta/sonido4.wav"},
    {
"Pluma Pluma Gay 5""micarpeta/sonido5.wav"// La ultima linea no lleva coma
}

new 
bool:g_bIsMP3[MAX_SOUNDS]

/*
    *** El formato del sonido tiene por defecto incluido la carpeta sounds, ejemplo: ***
    *** "misc/sound.wav", deberia estar guardado en la ruta: "cstrike/sound/misc/sound.wav" ***
*/

#define VERSION "0.1"
#define AUTHOR "meTaLiCroSS"

public plugin_init() 
{
    
register_plugin("Reproductor de Musica Local"VERSIONAUTHOR)
    
register_clcmd("say /reproducir""cmd_reproducir_sonido")
    
    new 
szCvar[32]
    
formatex(szCvarcharsmax(szCvar), "v%s by %s"VERSIONAUTHOR)
    
register_cvar("rml_version"szCvarFCVAR_SERVER|FCVAR_SPONLY)
}

public 
plugin_precache()
{
    static 
iszBuffer[128]
    for(
0MAX_SOUNDSi++)
    {
        
copy(szBuffercharsmax(szBuffer), MP3_SOUND_LIST[i][SOUND_FILE])
        
g_bIsMP3[i] = equal(szBuffer[strlen(szBuffer)-4], ".mp3") ? true false
        
        
if(g_bIsMP3[i])
        {
            
format(szBuffercharsmax(szBuffer), "sound/%s"szBuffer)
            
precache_generic(szBuffer)
        }
        else
        {
            
precache_generic(szBuffer)
        }
    }
}

public 
cmd_reproducir_sonido(id)
{
    
show_menu_reproducir(id0)
    return 
PLUGIN_CONTINUE
}

public 
show_menu_reproducir(idpage)
{
    new 
iMenuID menu_create("\rReproducir un Sonido""menu_reproducir")
    
    
menu_additem(iMenuID"Parar Sonidos Actuales""-1")
    
    static 
iszBuffer[7]
    
    for(
0MAX_SOUNDSi++)
    {
        
num_to_str(iszBuffercharsmax(szBuffer))
        
menu_additem(iMenuIDMP3_SOUND_LIST[i][SOUND_NAME], szBuffer)
    }
    
    
menu_display(idiMenuIDpage)
}

public 
menu_reproducir(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED;
    }
    
    
// Get Data
    
static szData[6], szName[64], iTempiTemp2iKey
    menu_item_getinfo
(menuitemiTempszDatacharsmax(szData), szNamecharsmax(szName), iTemp2)
    
    
iKey str_to_num(szData)

    switch(
iKey)
    {
        case -
1:
        {
            
client_cmd(id"mp3 stop; stopsound")
            
client_print(idprint_chat"[RML] Sonidos Detenidos")
        }
        default:
        {
            if(
g_bIsMP3[iKey])
                
client_cmd(id"mp3 play ^"sound/%s^""MP3_SOUND_LIST[iKey][SOUND_FILE])
            else
                
client_cmd(id"spk ^"%s^""MP3_SOUND_LIST[iKey][SOUND_FILE])
                
            
client_print(idprint_chat"[RML] Play al Sonido: %s"MP3_SOUND_LIST[iKey][SOUND_NAME])
        }
    }
    
    
// iTemp2 is the page
    
player_menu_info(idiTempiTempiTemp2)
    
show_menu_reproducir(idiTemp2)
    
menu_destroy(menu)
    
    return 
PLUGIN_HANDLED
    

No esta testeado D:
PHP Code:
menu_additem(iMenuID"Parar Sonidos Actuales""-1"
Que opcion seria -1?
PattyBiena is offline
!Morte
Veteran Member
Join Date: May 2010
Old 07-30-2010 , 18:13   Re: [ES] Consulta
#6

Quote:
Originally Posted by PattyBiena View Post
PHP Code:
menu_additem(iMenuID"Parar Sonidos Actuales""-1"
Que opcion seria -1?
Yo iba a preguntar lo mismo xd
__________________
First Zombie Class
[ZP] Zombie Class: Houndeye Zombie
Quote:
Originally Posted by lucas_7_94 View Post
tenes que saber pawn antes de intentar hacer algo digno.
!Morte is offline
Send a message via MSN to !Morte Send a message via Skype™ to !Morte
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 07-31-2010 , 03:16   Re: [ES] Consulta
#7

No seria ninguna opcion especial (me refiero a lo de "-1")... vos en ese parametro de menu_additem( ) podes ponerle el dato que quieras (incluso pueden ser strings)... es mas podrias ponerle a las opciones "a", "b", "c" y despues hacer switch(blabla) { case 'a': case 'b': case 'c': }
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Nahuz
Senior Member
Join Date: Nov 2008
Location: Argentina, Santa Fe, Ros
Old 07-31-2010 , 03:23   Re: [ES] Consulta
#8

Quote:
Originally Posted by alconnegro View Post
Otra existe algo que haga un sistema de votos para banear o kickear etc pero algo msa complado como por ejemplo se le hara la votacion a un usuario por molestar con microfono y un player tipea:

/denuncia "Usuario" "Razon"

Y si inicia la votacion para que el usuario sea baneado pero por ejemplo si el usuario empiesa a abusar de esto el server lo banee.


Thanks =)
http://www.amxmodx.org/compiler.php?...hor=&go=search
Nahuz is offline
Send a message via MSN to Nahuz Send a message via Skype™ to Nahuz
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-31-2010 , 08:58   Re: [ES] Consulta
#9

Quote:
Originally Posted by PattyBiena View Post
PHP Code:
menu_additem(iMenuID"Parar Sonidos Actuales""-1"
Que opcion seria -1?

Code:
    switch(iKey)     {
        case -1:
        {             client_cmd(id, "mp3 stop; stopsound")             client_print(id, print_chat, "[RML] Sonidos Detenidos")         }         default:         {             if(g_bIsMP3[iKey])                 client_cmd(id, "mp3 play ^"sound/%s^"", MP3_SOUND_LIST[iKey][SOUND_FILE])             else                 client_cmd(id, "spk ^"%s^"", MP3_SOUND_LIST[iKey][SOUND_FILE])                             client_print(id, print_chat, "[RML] Play al Sonido: %s", MP3_SOUND_LIST[iKey][SOUND_NAME])         }     }
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross

Last edited by meTaLiCroSS; 07-31-2010 at 09:01.
meTaLiCroSS 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 02:27.


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