RoundSound (Sunete la sfarsit de runda)(Functionabil)

Pluginuri pentru modul AmxModX.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

LordOfNothing
Membru, skill +1
Membru, skill +1
Posts: 387
Joined: 19 Jul 2013, 15:51
Detinator Steam: Nu
Reputatie: Restrictie PM
Has thanked: 11 times
Been thanked: 35 times

31 Oct 2013, 09:32

Codat oribil , e inutil . nul recomand

Acesta nu e un plugin sa fie postat e mai mult un raspuns la o "cerere plugin"

va rog > cos
RoyalServer
munir
Membru eXtream
Membru eXtream
Posts: 3193
Joined: 30 Aug 2012, 22:16
Detinator Steam: Da
CS Status: Fost scripter
Detinator server CS: Nu
SteamID: -
Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
Location: Bucuresti
Has thanked: 342 times
Been thanked: 571 times
Contact:

31 Oct 2013, 09:34

LordOfNothing wrote:Codat oribil , e inutil . nul recomand

Acesta nu e un plugin sa fie postat e mai mult un raspuns la o "cerere plugin"

va rog > cos
Asta e spusa de un 'maestru'? Nu vad ceva aiurea in cod, poate 2/3 update-uri minore.
Retras
LordOfNothing
Membru, skill +1
Membru, skill +1
Posts: 387
Joined: 19 Jul 2013, 15:51
Detinator Steam: Nu
Reputatie: Restrictie PM
Has thanked: 11 times
Been thanked: 35 times

31 Oct 2013, 09:54

falseq wrote:
LordOfNothing wrote:Codat oribil , e inutil . nul recomand

Acesta nu e un plugin sa fie postat e mai mult un raspuns la o "cerere plugin"

va rog > cos
Asta e spusa de un 'maestru'? Nu vad ceva aiurea in cod, poate 2/3 update-uri minore.

nu la asta m-am referit si nu am spus mai sus cas mestru era vorba de cod frate X(
m-am referit ca e un plugin mic si nu trebuie postat pentur cateva linii de cod + ca exista o suta de plugine ca acestea
User avatar
CryWolf
Administrator
Administrator
Posts: 6505
Joined: 07 Aug 2008, 16:33
Detinator Steam: Da
Reputatie: Administrator
Fost Scripter
Manager CS2.eXtream.Ro
Fost Detinator ZM.eXtream.Ro
Fost manager CS.eXtream.Ro
Fost manager CSGO.eXtream.Ro
Fost manager global
Location: Botosani
Discord: crywolf1989
Has thanked: 202 times
Been thanked: 850 times
Contact:

31 Oct 2013, 15:09

La al meu te referi Lord ?
NU IMI MAI DA-TI PM CU CERERE AJUTOR/SAMD, FOLOSITI FORUMUL, CITESC MAJORITATEA TOPICURILOR.
www.dark-arena.com , SERVERE CS / CS2 / L4D AU REVENIT ONLINE.
www.diasporaiptv.ro - SERVICII PREMIUM IPTV

Image

Image
User avatar
LOLpgl
Membru, skill +3
Membru, skill +3
Posts: 1127
Joined: 16 Dec 2013, 21:01
Detinator Steam: Da
SteamID: ionutcruso
Location: Rm.Valcea
Has thanked: 19 times
Been thanked: 15 times

01 Dec 2014, 13:46

Folositor!
User avatar
danutzzu
Membru, skill 0
Membru, skill 0
Posts: 3
Joined: 16 Nov 2017, 16:26
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: 89.34.25.41:27015
SteamID: STEAM_1:0:1417550205
Fond eXtream: 0
Location: bacau
Contact:

27 Nov 2017, 20:38

mie nu imi merge ,am facut totul exact cum ai zis ,nu se aude nimic la sfarshit :weary: :(
User avatar
A k c 3 n 7
Super moderator
Super moderator
Posts: 5138
Joined: 25 Aug 2014, 21:31
Detinator Steam: Da
CS Status: who dares wins
SteamID: Jandarmeria
Reputatie: Super moderator
Moderatorul anului 2023
Fost Membru Club eXtreamCS ( o luna )
Fost eXtream Mod
Fost Intermediar
Nume anterior: Sorinel
Fond eXtream: 0
Location: Unknown
Discord: remusakcent
Has thanked: 4 times
Been thanked: 46 times

27 Nov 2017, 21:48

| 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.0","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() {
  
      PlaySoundToClients (Christmas_Sounds_T[random(NUMAR_SUNETE_T)]);
}

public ct_win() {
 
      PlaySoundToClients (Christmas_Sounds_CT[random(NUMAR_SUNETE_CT)]);
}

public plugin_precache() {

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

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

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;
   }   
  
PlaySoundToClients ( const sound [ ] ) {

        if ( equal ( sound [ strlen ( sound ) -4 ], ".mp3" ) )
                client_cmd ( 0, "mp3 play ^"sound/%s^"", sound );
        else
                client_cmd ( 0, "spk ^"%s^"", sound );
}
User avatar
LondoN eXtream
Membru eXtream
Membru eXtream
Posts: 2755
Joined: 10 Oct 2014, 06:21
Detinator Steam: Da
SteamID: /id/london_extreamcs
Reputatie: Fost scripter eXtreamCS
Fost moderator ajutator
Membru Club eXtreamCS (6 luni)
Fond eXtream: 0
Location: Roman, Neamț
Has thanked: 3 times
Been thanked: 12 times

04 Dec 2017, 15:21

Sounds.sma | Afiseaza codul
#include < amxmodx >
#include < amxmisc >

public plugin_precache ( )
{
	new Sunete [ 32 ];
	for ( new i; i < 6; i++ )
	{
		formatex ( Sunete, charsmax ( Sunete ), "EndRound/sunet%d.wav", i+1 );
		precache_sound ( Sunete );
	}
}

public plugin_init ( )	register_message ( get_user_msgid ( "TextMsg" ), "Msg_Bomb" );
public Msg_Bomb ( msg_id, msg_dest, id ) {
	static szMsg [ 64 ];
	get_msg_arg_string ( 2, szMsg, charsmax ( szMsg ) )
	if ( equal ( szMsg , "#Bomb_Explode" ) )
		client_cmd ( 0, "spk ^"EndRound/sunet%d^"", random_num ( 1, 3 ) );
	else if ( equal ( szMsg, "#Bomb_Defused" ) )
		client_cmd ( 0, "spk ^"EndRound/sunet%d^"", random_num ( 3, 6 ) );

	return PLUGIN_CONTINUE;
}
Cel mai simplu posibil.
Post Reply

Return to “AmxModX”

  • Information
  • Who is online

    Users browsing this forum: Yandex [Bot] and 20 guests