01/06/2019, 12:41 AM
(Última modificación: 01/06/2019, 01:51 AM por rosario. Edited 2 times in total.)
Buenas estoy usando un plugins de conect_sound, pero el problema es que cuando coloco nombre de la carpeta nombre del sonido compilo el plugins cambio de mapa y no los descarga sale así
Error: server failed to transmit file 'sound/FDZ_Conectar/Welcome.wav'
Error: server failed to transmit file 'sound/FDZ_Conectar/Desconectar.wa
la verdad no entiendo el porque, si lo estoy agregando bien..
Dejare código de sma
Error: server failed to transmit file 'sound/FDZ_Conectar/Welcome.wav'
Error: server failed to transmit file 'sound/FDZ_Conectar/Desconectar.wa
la verdad no entiendo el porque, si lo estoy agregando bien..
Dejare código de sma
Código PHP:
#include <amxmodx>
#include <csstats>
#define PLUGIN "Conect_Sound"
#define VERSION "1.0"
#define AUTHOR "author"
new Nombre[33];
new const CONEC_SOUND[] = { "FDZ_Conectar/Welcome.wav" };
new const DES_SOUND[] = { "FDZ_Conectar/Desconectar.wav" };
public plugin_precache() {
register_plugin(PLUGIN, VERSION, AUTHOR)
precache_sound(CONEC_SOUND)
precache_sound(DES_SOUND)
}
public client_putinserver(id)
{
set_task(2.0, "Conectado", id)
}
public client_disconnected(id)
{
get_user_name(id, Nombre, charsmax(Nombre))
client_cmd(0, "spk %s", DES_SOUND)
PrintText(0, "!g[!t FDZ!g ]!y El jugador !g%s!g se ha desconectado!t.", Nombre)
remove_task(id)
}
public Conectado(id)
{
new stats[8], body[8];
new rank = get_user_stats(id, stats, body)
new rank2 = get_statsnum()
get_user_name(id, Nombre, charsmax(Nombre))
client_cmd(0, "spk %s", CONEC_SOUND)
PrintText(id, "!g[!t FDZ!g ]!y El jugador !t%s!y se ha conectado!g,!y rank !t(!g %d!y /!g %d!t )", Nombre, rank, rank2)
}
/*******************************
STOCK CHAT COLORS CHEMA
*******************************/
stock PrintText ( const iIndex, const Text [ ], any:... ) {
new szText [ 192 ];
vformat ( szText, sizeof ( szText ), Text, 3 );
replace_all ( szText, sizeof ( szText ), "!y", "^1" );
replace_all ( szText, sizeof ( szText ), "!g", "^4" );
replace_all ( szText, sizeof ( szText ), "!t", "^3" );
static iLen = sizeof ( szText );
replace_all ( szText, iLen, "á", "á" );
replace_all ( szText, iLen, "Á", "Ã" );
replace_all ( szText, iLen, "é", "é" );
replace_all ( szText, iLen, "É", "É" );
replace_all ( szText, iLen, "í", "Ã*" );
replace_all ( szText, iLen, "Í", "Ã" );
replace_all ( szText, iLen, "ó", "ó" );
replace_all ( szText, iLen, "Ó", "Ó" );
replace_all ( szText, iLen, "ú", "ú" );
replace_all ( szText, iLen, "Ú", "Ú" );
replace_all ( szText, iLen, "ñ", "ñ" );
replace_all ( szText, iLen, "Ñ", "Ñ" );
message_begin ( iIndex ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, get_user_msgid ( "SayText" ), .player = iIndex );
write_byte ( iIndex ? iIndex : 33 );
write_string ( szText );
message_end ( );
}
»» RENTA TU SERVIDOR EN EVOLUTIÓN-HOST ««
Si deseas contactarme para comprar tu servidor de counter-strike puedes enviar un M.P