Lead Team

Pluginuri facute de utilizatorii forumului eXtream.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

smileye
Fost moderator
Fost moderator
Posts: 4662
Joined: 12 Jun 2012, 14:18
Detinator Steam: Da
Reputatie: Fost moderator
Has thanked: 258 times
Been thanked: 38 times
Contact:

25 Oct 2013, 19:38

Askhanar wrote:sunt sunete facute pe
http://www.ivona.com/en/ ( alegi Romanian, Carmen ).
Kronos cred ca se refera la codul asta:

Code: Select all

"spk ^"terro conduce_cu %s la gol1(s47) %s^""
eXtreamSHOP
User avatar
KronoS eXtream
Fost administrator
Fost administrator
Posts: 4378
Joined: 02 Apr 2009, 18:18
Detinator Steam: Da
Reputatie: Fost administrator
Fost detinator Zombie-Land.eXtream.Ro
Contribuitor
Fost Scripter eXtreamCS
Dezvoltator al listei de seriozitate eXtreamCS
Location: Bucharest
Has thanked: 544 times
Been thanked: 821 times
Contact:

25 Oct 2013, 19:50

smileye wrote:
Askhanar wrote:sunt sunete facute pe
http://www.ivona.com/en/ ( alegi Romanian, Carmen ).
Kronos cred ca se refera la codul asta:

Code: Select all

"spk ^"terro conduce_cu %s la gol1(s47) %s^""
Exact
Last edited by Ulquiorra on 25 Oct 2013, 23:01, edited 1 time in total.
Reason: pt fiecare cuvant pus acolo .. am si un sunet.. facut pe site ala..
Nu efectuez tranzactii pe mess, skype etc. Aveti grija la indivizii care se dau drept mine!
Nu mai ofer suport asa ca nu imi mai trimiteti mesaje in legatura cu asta!


Zombie Plague Shade 1.2-debug1 [with Item Limiter] (12 September 2015) - Bombardier Branch
User avatar
aNNNdReY
Membru, skill +1
Membru, skill +1
Posts: 428
Joined: 07 Sep 2012, 23:45
Detinator Steam: Da
SteamID: ravyvevo
Has thanked: 65 times
Been thanked: 18 times

25 Oct 2013, 21:57

Uite:

Code: Select all

new const g_szSounds[ ][ ] =
	{
		
		"terro.wav",
		"counter.wav",
		"conduce_cu.wav",
		"la.wav",
		"este.wav",
		"egalitate.wav",
		"gol1.wav"		//(s47)
	};
smileye
Fost moderator
Fost moderator
Posts: 4662
Joined: 12 Jun 2012, 14:18
Detinator Steam: Da
Reputatie: Fost moderator
Has thanked: 258 times
Been thanked: 38 times
Contact:

26 Oct 2013, 09:44

Nu ar trebui putin mai aranjat pluginul de la inceput pana la public plugin_precache( ) ?

Si inca ceva, te intreb ca sa stiu cat de cat, ce face acest cod?

Code: Select all

replace_all( szTScore, sizeof( szTScore ) -1, " ", "" );
replace_all( szCTScore, sizeof( szCTScore ) -1, " ", "" );
User avatar
shut.theart
Membru, skill +3
Membru, skill +3
Posts: 1218
Joined: 10 Aug 2012, 12:04
Detinator Steam: Da
Has thanked: 52 times
Been thanked: 20 times
Contact:

26 Oct 2013, 13:48

Askhanar wrote:sunt sunete facute pe
http://www.ivona.com/en/ ( alegi Romanian, Carmen ).
Bine.. si cum downloadez sunetul?
Last edited by Ulquiorra on 26 Oct 2013, 19:39, edited 1 time in total.
Reason: sub butonul Play! este un link ( Get Voice ) dai pe el.

User avatar
Adventx
Membru, skill +4
Membru, skill +4
Posts: 1787
Joined: 17 Sep 2013, 20:44
Detinator Steam: Da
Reputatie: Fost moderator ajutator
Has thanked: 125 times
Been thanked: 141 times
Contact:

26 Oct 2013, 13:52

poti te rog sa setezi directoria ca sa adaug soundurile in sound/misc
User avatar
Ulquiorra
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2056
Joined: 25 Jul 2010, 16:29
Detinator Steam: Da
CS Status: A mai trecut o zi asteptand una mai buna
Detinator server CS: Retras.
SteamID: STEAM_0:1:318247XX
Reputatie: Scripter eXtreamCS
Nick anterior: sPuf ?, a^ml), Loca Tapioca, Askhanar
Fost Moderator ajutator
Location: Braila, Romania.
Has thanked: 214 times
Been thanked: 1131 times
Contact:

26 Oct 2013, 19:40

@smileye: codul ala sterge spatiul( " " ) din un string.
@adventx: revin cu edit..

EDIT:
Lead Team ( cu sunetele in sound/misc ) | Afiseaza codul
/* Plugin generated by AMXX-Studio */

	#include < amxmodx >
	
	#pragma semicolon 1
	
	#define	MAX_SCORE	59
	#define	TASKID_CHECK	1227
	
	new const
		PLUGIN_NAME[ ] 		= "Lead Team",
		PLUGIN_VERSION[ ] 	= "0.1.5";		
	
	new const g_szSounds[ ][ ] =
	{
		
		"misc/terro.wav",
		"misc/counter.wav",
		"misc/conduce_cu.wav",
		"misc/la.wav",
		"misc/este.wav",
		"misc/egalitate.wav",
		"misc/gol1.wav"		//(s47)
	};
	
	

	enum _:iTeamWons
	{
		TERO,
		CT
	}
	
	new g_iTeamWons[ iTeamWons ];
	
public plugin_precache( )
{	
	
	new szNumber[ 32 ];
	
	for( new i = 0; i < MAX_SCORE; i++ )
	{
		num_to_word( i, szNumber, sizeof( szNumber ) -1 );
		format( szNumber, sizeof( szNumber ) -1, "misc/%s.wav", szNumber );
		
		replace_all( szNumber, sizeof( szNumber ) -1, " ", "" );
		precache_sound( szNumber );
	}

	
	for( new i = 0; i < sizeof( g_szSounds ); i++ )
		precache_sound( g_szSounds[ i ] );
		
}
				
public plugin_init( )
{
	
	register_plugin( PLUGIN_NAME, PLUGIN_VERSION, "Rap^^ & Askhanar" );
	
	register_event( "SendAudio", "ev_TerroristWin", "a", "2&%!MRAD_terwin" );
	register_event( "SendAudio", "ev_CtWin", "a", "2&%!MRAD_ctwin" );
	
	
	// Add your code here...
}

public ev_TerroristWin( )	AddScoreToTeamAndDoStuff( TERO );
public ev_CtWin( )		AddScoreToTeamAndDoStuff( CT );

public task_CheckScoreAndPlaySound( )
	CheckScoreAndPlaySound( g_iTeamWons[ TERO ], g_iTeamWons[ CT ] );

AddScoreToTeamAndDoStuff( const iTeam )
{
	
	g_iTeamWons[ iTeam ]++;
	client_cmd( 0, "stopsound" );
	
	if( !task_exists( TASKID_CHECK )	 )
		set_task( 1.0, "task_CheckScoreAndPlaySound", TASKID_CHECK );
		
}

CheckScoreAndPlaySound( const iTeroScore, const iCTScore )
{
	
	if( iTeroScore <= MAX_SCORE && iCTScore <= MAX_SCORE )
	{
		static szTScore[ 32 ], szCTScore[ 32 ], szSound[ 128 ];
		
		
		num_to_word( g_iTeamWons[ TERO ], szTScore, sizeof( szTScore ) -1 );
		num_to_word( g_iTeamWons[ CT ], szCTScore, sizeof( szCTScore ) -1 );
		
		replace_all( szTScore, sizeof( szTScore ) -1, " ", "" );
		replace_all( szCTScore, sizeof( szCTScore ) -1, " ", "" );
		
		if( iTeroScore > iCTScore )
		{
			formatex( szSound, sizeof( szSound ) -1, "spk ^"misc/terro conduce_cu %s la gol1(s47) %s^"", szTScore, szCTScore );
		}
		
		else if( iTeroScore < iCTScore )
		{
			formatex( szSound, sizeof( szSound ) -1, "spk ^"misc/counter conduce_cu %s la gol1(s47) %s^"", szCTScore, szTScore );
		}
		
		else
		{
			formatex( szSound, sizeof( szSound ) -1, "spk ^"misc/este egalitate %s la gol1(s47) %s^"", szTScore, szCTScore );
		}
	
		client_cmd(0, szSound );

	}
	
}
Last edited by Ulquiorra on 26 Oct 2013, 19:42, edited 1 time in total.
Reason: am adaugat plgn
""Copilarie, iarta-ma c-am vrut sa fiu om mare.. ""
smileye
Fost moderator
Fost moderator
Posts: 4662
Joined: 12 Jun 2012, 14:18
Detinator Steam: Da
Reputatie: Fost moderator
Has thanked: 258 times
Been thanked: 38 times
Contact:

26 Oct 2013, 19:50

Askhanar wrote:@smileye: codul ala sterge spatiul( " " ) din un string.
@adventx: revin cu edit..

EDIT:
Lead Team ( cu sunetele in sound/misc ) | Afiseaza codul
/* Plugin generated by AMXX-Studio */

	#include < amxmodx >
	
	#pragma semicolon 1
	
	#define	MAX_SCORE	59
	#define	TASKID_CHECK	1227
	
	new const
		PLUGIN_NAME[ ] 		= "Lead Team",
		PLUGIN_VERSION[ ] 	= "0.1.5";		
	
	new const g_szSounds[ ][ ] =
	{
		
		"misc/terro.wav",
		"misc/counter.wav",
		"misc/conduce_cu.wav",
		"misc/la.wav",
		"misc/este.wav",
		"misc/egalitate.wav",
		"misc/gol1.wav"		//(s47)
	};
	
	

	enum _:iTeamWons
	{
		TERO,
		CT
	}
	
	new g_iTeamWons[ iTeamWons ];
	
public plugin_precache( )
{	
	
	new szNumber[ 32 ];
	
	for( new i = 0; i < MAX_SCORE; i++ )
	{
		num_to_word( i, szNumber, sizeof( szNumber ) -1 );
		format( szNumber, sizeof( szNumber ) -1, "misc/%s.wav", szNumber );
		
		replace_all( szNumber, sizeof( szNumber ) -1, " ", "" );
		precache_sound( szNumber );
	}

	
	for( new i = 0; i < sizeof( g_szSounds ); i++ )
		precache_sound( g_szSounds[ i ] );
		
}
				
public plugin_init( )
{
	
	register_plugin( PLUGIN_NAME, PLUGIN_VERSION, "Rap^^ & Askhanar" );
	
	register_event( "SendAudio", "ev_TerroristWin", "a", "2&%!MRAD_terwin" );
	register_event( "SendAudio", "ev_CtWin", "a", "2&%!MRAD_ctwin" );
	
	
	// Add your code here...
}

public ev_TerroristWin( )	AddScoreToTeamAndDoStuff( TERO );
public ev_CtWin( )		AddScoreToTeamAndDoStuff( CT );

public task_CheckScoreAndPlaySound( )
	CheckScoreAndPlaySound( g_iTeamWons[ TERO ], g_iTeamWons[ CT ] );

AddScoreToTeamAndDoStuff( const iTeam )
{
	
	g_iTeamWons[ iTeam ]++;
	client_cmd( 0, "stopsound" );
	
	if( !task_exists( TASKID_CHECK )	 )
		set_task( 1.0, "task_CheckScoreAndPlaySound", TASKID_CHECK );
		
}

CheckScoreAndPlaySound( const iTeroScore, const iCTScore )
{
	
	if( iTeroScore <= MAX_SCORE && iCTScore <= MAX_SCORE )
	{
		static szTScore[ 32 ], szCTScore[ 32 ], szSound[ 128 ];
		
		
		num_to_word( g_iTeamWons[ TERO ], szTScore, sizeof( szTScore ) -1 );
		num_to_word( g_iTeamWons[ CT ], szCTScore, sizeof( szCTScore ) -1 );
		
		replace_all( szTScore, sizeof( szTScore ) -1, " ", "" );
		replace_all( szCTScore, sizeof( szCTScore ) -1, " ", "" );
		
		if( iTeroScore > iCTScore )
		{
			formatex( szSound, sizeof( szSound ) -1, "spk ^"misc/terro conduce_cu %s la gol1(s47) %s^"", szTScore, szCTScore );
		}
		
		else if( iTeroScore < iCTScore )
		{
			formatex( szSound, sizeof( szSound ) -1, "spk ^"misc/counter conduce_cu %s la gol1(s47) %s^"", szCTScore, szTScore );
		}
		
		else
		{
			formatex( szSound, sizeof( szSound ) -1, "spk ^"misc/este egalitate %s la gol1(s47) %s^"", szTScore, szCTScore );
		}
	
		client_cmd(0, szSound );

	}
	
}
Mai am niste idei pe mai tarziu, dar va trebui poate chiar de schimbat numele pluginului.
Eu ma voi ocupa strict de sunete.
User avatar
Ulquiorra
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2056
Joined: 25 Jul 2010, 16:29
Detinator Steam: Da
CS Status: A mai trecut o zi asteptand una mai buna
Detinator server CS: Retras.
SteamID: STEAM_0:1:318247XX
Reputatie: Scripter eXtreamCS
Nick anterior: sPuf ?, a^ml), Loca Tapioca, Askhanar
Fost Moderator ajutator
Location: Braila, Romania.
Has thanked: 214 times
Been thanked: 1131 times
Contact:

26 Oct 2013, 21:32

ok, asteps sa vad.. nu stiu daca o sa mai am tim pde pc vreo saptamana.
""Copilarie, iarta-ma c-am vrut sa fiu om mare.. ""
RoCoFeLu
Membru, skill +1
Membru, skill +1
Posts: 285
Joined: 21 Oct 2009, 02:51
Detinator Steam: Nu
Has thanked: 56 times
Been thanked: 6 times

27 Oct 2013, 12:44

Ask de curiozitate cum ai inregistrat-o frate pe Carmen (vocea feminina) ca si eu vreau asta dar nu stiu cum s-o inregistrez :*

Edit: Am aflat! Pentru cei care mai cauta...http://www.ivona.com/en/ !
Multumim Ask pentru plugin.
Last edited by Ulquiorra on 27 Oct 2013, 20:44, edited 1 time in total.
Reason: am pus si eu link`ul mai sus in topic..
LordOfNothing
Membru, skill +1
Membru, skill +1
Posts: 387
Joined: 19 Jul 2013, 14:51
Detinator Steam: Nu
Reputatie: Restrictie PM
Has thanked: 11 times
Been thanked: 34 times

03 Nov 2013, 10:42

Pentru a downloanda vocea dai pe GET VOICE
teNNeke.
Membru, skill +1
Membru, skill +1
Posts: 318
Joined: 01 Sep 2013, 16:59
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 36 times
Been thanked: 9 times
Contact:

07 Nov 2013, 17:05

LordOfNothing wrote:Pentru a downloanda vocea dai pe GET VOICE
Nu cred ca merge pe GET VOICE, eu am incercat si nu merge.
Incarcati sa salvati cu Camtasia.
Post Reply

Return to “Pluginuri eXtream”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests