It is currently 21 Nov 2018 02:50



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 5 posts ] 
 [Cerere plugin] Round round 
Author Message
Membru, skill +1
Membru, skill +1
User avatar

Joined: 03 Jun 2017 18:56
Posts: 335
Location: str. îngustă, nr. sub fustă.
Detinator Steam: Da
CS Status: Brb, am obosit, e grea butelia.
Detinator server CS: FUN.LALEAGANE.RO
SteamID: jetski_fun
Fond eXtream: 0
Salutare, am nevoie de un plugin de roundsound pentru finalul rundei cu suport .mp3 NU .wav
P.s: Daca se poate sa opreasca si sunetele clasice de la finalul rundei "Ct/t win"
Mersii !

_________________
ImageImage


Image


09 Jun 2018 16:39
Profile multumesc WWW
Moderator
Moderator
User avatar

Joined: 10 Jul 2013 21:26
Posts: 2033
Location: Constanta
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Moderator
Nume anterior: Do[N]e ;3
Fond eXtream: 0
pluginuri-extream/round-begun-end-sounds-t219046.html

_________________


09 Jun 2018 22:23
Profile multumesc
Membru, skill +1
Membru, skill +1
User avatar

Joined: 03 Jun 2017 18:56
Posts: 335
Location: str. îngustă, nr. sub fustă.
Detinator Steam: Da
CS Status: Brb, am obosit, e grea butelia.
Detinator server CS: FUN.LALEAGANE.RO
SteamID: jetski_fun
Fond eXtream: 0
Do[N]e ;3 wrote:
pluginuri-extream/round-begun-end-sounds-t219046.html

Nu poti sa-l compilezi.. Altceva?

_________________
ImageImage


Image


10 Jun 2018 16:17
Profile multumesc WWW
Jan Darmu'
Jan Darmu'
User avatar

Joined: 25 Aug 2014 21:31
Posts: 6026
Location: Ploiesti
Detinator Steam: Da
CS Status: All i ever wanted was a Rolly Rolly
SteamID: Jandarmeria
Reputatie: Fost Membru Club eXtreamCS ( o luna )
Fost Moderator ajutator
Fost Super Moderator
eXtream Mod
Fost Intermediar
Nume anterior : Christmas,
A k c 3 n 7
Fond eXtream: 0
| Afiseaza codul
#include < amxmodx >

#define NUMAR_SUNETE_T 3
#define NUMAR_SUNETE_CT 3

new const Christmas_Sounds_T[NUMAR_SUNETE_T][] = {

// "xmas/xmas_te1.mp3",
// "xmas/xmas_te2.mp3",
"xmas/xmas_te3.mp3",
"xmas/xmas_te4.mp3",
"xmas/xmas_te5.mp3"
}

new const Christmas_Sounds_CT[NUMAR_SUNETE_CT][] = {

// "xmas/xmas_ct1.mp3",
// "xmas/xmas_ct2.mp3",
// "xmas/xmas_ct3.mp3",
"xmas/xmas_ct4.mp3",
"xmas/xmas_ct5.mp3",
"xmas/xmas_ct6.mp3"
}

public plugin_init() {

register_plugin("[XMAS] RoundSounds","1.1","A k c 3 n 7");
register_message( get_user_msgid( "SendAudio" ),"message_sendaudio" );
register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin");
register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin");
}

public t_win( id ) {

client_cmd(id,"mp3 play ^"sound/%s^"", (Christmas_Sounds_CT[random(NUMAR_SUNETE_CT)]));
}

public ct_win( id ) {

client_cmd(id,"mp3 play ^"sound/%s^"", (Christmas_Sounds_CT[random(NUMAR_SUNETE_CT)]));
}


public plugin_precache() {

for(new i = 0; i < NUMAR_SUNETE_T; i ++)
precache_sound(Christmas_Sounds_T[i]);

for(new i = 0; i < NUMAR_SUNETE_CT; i ++)
precache_sound(Christmas_Sounds_CT[i]);
}

public message_sendaudio( msg_id, msg_dest, msg_entity ) {

static message[10];
get_msg_arg_string( 2, message, sizeof message - 1 );

switch( message[7] )
{
case 'c', 't', 'r' : return PLUGIN_HANDLED;
}

return PLUGIN_CONTINUE;
}

_________________
ImageImage

Lista intermediari
Nu ezita sa ma contactezi la 112 pentru interventii speciale: S.I.A.S
REGULI GENERALE
REGULILE SECTIUNII ANUNTURI



10 Jun 2018 17:17
Profile multumesc
Membru, skill +1
Membru, skill +1
User avatar

Joined: 03 Jun 2017 18:56
Posts: 335
Location: str. îngustă, nr. sub fustă.
Detinator Steam: Da
CS Status: Brb, am obosit, e grea butelia.
Detinator server CS: FUN.LALEAGANE.RO
SteamID: jetski_fun
Fond eXtream: 0
Sorinel wrote:
| Afiseaza codul
#include < amxmodx >

#define NUMAR_SUNETE_T 3
#define NUMAR_SUNETE_CT 3

new const Christmas_Sounds_T[NUMAR_SUNETE_T][] = {

// "xmas/xmas_te1.mp3",
// "xmas/xmas_te2.mp3",
"xmas/xmas_te3.mp3",
"xmas/xmas_te4.mp3",
"xmas/xmas_te5.mp3"
}

new const Christmas_Sounds_CT[NUMAR_SUNETE_CT][] = {

// "xmas/xmas_ct1.mp3",
// "xmas/xmas_ct2.mp3",
// "xmas/xmas_ct3.mp3",
"xmas/xmas_ct4.mp3",
"xmas/xmas_ct5.mp3",
"xmas/xmas_ct6.mp3"
}

public plugin_init() {

register_plugin("[XMAS] RoundSounds","1.1","A k c 3 n 7");
register_message( get_user_msgid( "SendAudio" ),"message_sendaudio" );
register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin");
register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin");
}

public t_win( id ) {

client_cmd(id,"mp3 play ^"sound/%s^"", (Christmas_Sounds_CT[random(NUMAR_SUNETE_CT)]));
}

public ct_win( id ) {

client_cmd(id,"mp3 play ^"sound/%s^"", (Christmas_Sounds_CT[random(NUMAR_SUNETE_CT)]));
}


public plugin_precache() {

for(new i = 0; i < NUMAR_SUNETE_T; i ++)
precache_sound(Christmas_Sounds_T[i]);

for(new i = 0; i < NUMAR_SUNETE_CT; i ++)
precache_sound(Christmas_Sounds_CT[i]);
}

public message_sendaudio( msg_id, msg_dest, msg_entity ) {

static message[10];
get_msg_arg_string( 2, message, sizeof message - 1 );

switch( message[7] )
{
case 'c', 't', 'r' : return PLUGIN_HANDLED;
}

return PLUGIN_CONTINUE;
}

Merge, dar poti sa adaugi te rog o comanda de exemplu /stopsound prin care sa poti opri/reporni sunetele?
Edit : Ai idee de ce dupa un anumit timp nu se mai aud sunetele?

_________________
ImageImage


Image


10 Jun 2018 18:36
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: Google [Bot] and 76 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group