[rezolvat] score furien

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
[CSDM]Best
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 942
Joined: 26 Dec 2013, 15:39
Detinator Steam: Da
CS Status: Best Gaming
Detinator server CS: Da sunt :D
SteamID: GangstaCSGO
Location: La Moldoveni
Has thanked: 7 times
Been thanked: 22 times
Contact:

05 Feb 2014, 20:08

Nickname: [CSDM]Best
Numele pluginului cerut: furien-score.amxx
Descriere plugin cerut: Eu vreau sa fie culorile ca in imagine, va rog frumos
Alte informatii: Image
Last edited by #Vali on 05 Feb 2014, 23:09, edited 1 time in total.
Reason: Rezolvat
Image
Copyright © Gangsta - All rights reserved.
Yahoo Messenger: Best_Extream
Skype: vanea432
Image
Concurs steam http://blz.ro/forum/index.php?/topic/44 ... s-steam-1/ csgo cs 1.6 css cs0
Image
Image
IG-BOOST.org - Instagram Followers Best, Cheap, Reliable
Ake
Membru, skill +1
Membru, skill +1
Posts: 128
Joined: 19 Dec 2013, 17:30
Detinator Steam: Da
Has thanked: 88 times
Been thanked: 2 times

05 Feb 2014, 20:50

E furien score info al lui askhanar, doar culorile sunt modificate :P cauti si tu pe net
#Vali
Fost moderator
Fost moderator
Posts: 2624
Joined: 24 Jan 2012, 11:00
Detinator Steam: Da
SteamID: id/spryt3
Reputatie: Fost Moderator
Fost Scripter eXtreamCS.com
1.2 / 3
Location: root
Has thanked: 81 times
Been thanked: 149 times
Contact:

05 Feb 2014, 21:21

| Afiseaza codul
/* Plugin generated by AMXX-Studio */

	#include < amxmodx >
	#include < dhudmessage >
	
	#pragma semicolon 1

		// --| Credite lui CryWolf pentru 'layout' !!
	new const
		PLUGIN_NAME[ ] 		= "Furien Score & Round",
		PLUGIN_VERSION[ ] 	= "0.2.1";
	
	/* Copyright (c) 2013 Askhanar  @eXtreamCS.com
	
	www.eXtreamCS.com/forum
	www.amxmodx.org
	www.amxmodx.ro
	
	*/
	
	
	// --| Culorile in RRR GGG BBB ( poate fi luata si in paint ).
	// --| Aici sunt culorile de la mesajele: Furien  AntiFurien si Round
	
	#define	iNameRed	0
	#define	iNameGreen	255
	#define	iNameBlue	255
	
	// --| Culorile in RRR GGG BBB ( poate fi luata si in paint ).
	// --| Aici sunt culorile de la mesajele: numarul de castiguri si runde.
	
	#define	iScoreRed	255
	#define	iScoreGreen	0
	#define	iScoreBlue	0
	
	new const
		g_szTeamsMessage[ ] 	= "    |-  Furien           AntiFurien  -|    ",
		g_szScoreMessage[ ]	= "%02i                                                %02i",
		g_szRoundMessage[ ]	= "                  Round                     ",
		g_szRound[ ]		= "                    %02i                       ";
		
		
	enum _:iTeamWons
	{
		FURIEN,
		ANTIFURIEN
	}
	
	new g_iTeamWons[ iTeamWons ];
	new g_iRounds;
	
	new SyncHudTeamNames, SyncHudTeamScore;
			
				
public plugin_init( )
{
	
	register_plugin( PLUGIN_NAME, PLUGIN_VERSION, "Askhanar" );
	
	
	register_event( "HLTV", "ev_NewRound", "a", "1=0", "2=0" );
	register_event( "TextMsg", "ev_RoundRestart", "a", "2&#Game_C", "2&#Game_w" );
	
	register_event( "SendAudio", "ev_TerroristWin", "a", "2&%!MRAD_terwin" );
	register_event( "SendAudio", "ev_CtWin", "a", "2&%!MRAD_ctwin" );
	
	g_iRounds = 0;
	g_iTeamWons[ FURIEN ] = 0;
	g_iTeamWons[ ANTIFURIEN ] = 0;
	
	SyncHudTeamNames = CreateHudSyncObj( );
	SyncHudTeamScore = CreateHudSyncObj( );
	
	
	set_task( 1.0, "task_DisplayHudScore", _, _, _, "b", 0 );
	// Add your code here...
}


public ev_NewRound( )		g_iRounds++;
public ev_RoundRestart( )	{	g_iRounds = 0;	g_iTeamWons[ FURIEN ] = 0;	g_iTeamWons[ ANTIFURIEN ] = 0;	}
public ev_TerroristWin( )	g_iTeamWons[ FURIEN ]++;
public ev_CtWin( )	g_iTeamWons[ ANTIFURIEN ]++;

public task_DisplayHudScore( )
{
	static iPlayers[ 32 ];
	static iPlayersNum;
		
	get_players( iPlayers, iPlayersNum, "ch" );
	if( !iPlayersNum )
		return;
		
	static id, i;
	for( i = 0; i < iPlayersNum; i++ )
	{
		id = iPlayers[ i ];
		
		if( 1 <= get_user_team( id ) <= 3 )
		{
			set_hudmessage( iNameRed, iNameGreen, iNameBlue, -1.0, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 1.0, _, _, 2 );
			ShowSyncHudMsg( id, SyncHudTeamNames, g_szTeamsMessage );
			
			set_hudmessage( iScoreRed, iScoreGreen, iScoreBlue, -1.0, is_user_alive( id ) ? 0.01 : 0.16 , 0, _, 1.0, _, _, 3 );
			ShowSyncHudMsg( id, SyncHudTeamScore, g_szScoreMessage,  g_iTeamWons[ FURIEN ], g_iTeamWons[ ANTIFURIEN ]  );
			
			
			set_dhudmessage( iNameRed, iNameGreen, iNameBlue, -1.0, is_user_alive( id ) ? 0.03 : 0.18 , 0, _, 1.0, _, _ );
			show_dhudmessage( id, g_szRoundMessage );
			
			set_dhudmessage( iScoreRed, iScoreGreen, iScoreBlue, -1.0, is_user_alive( id ) ? 0.06 : 0.21 , 0, _, 1.0, _, _ );
			show_dhudmessage( id, g_szRound, g_iRounds );
		}
	
	}
}
User avatar
[CSDM]Best
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 942
Joined: 26 Dec 2013, 15:39
Detinator Steam: Da
CS Status: Best Gaming
Detinator server CS: Da sunt :D
SteamID: GangstaCSGO
Location: La Moldoveni
Has thanked: 7 times
Been thanked: 22 times
Contact:

05 Feb 2014, 23:02

e meniul ala dar culorile altele eu doresc culorile ca in imagine va rog
Last edited by Ulquiorra on 06 Feb 2014, 10:54, edited 2 times in total.
Reason: nu e meniu.. sunt 4 mesahe hud.. ce apar consecutiv
Image
Copyright © Gangsta - All rights reserved.
Yahoo Messenger: Best_Extream
Skype: vanea432
Image
Concurs steam http://blz.ro/forum/index.php?/topic/44 ... s-steam-1/ csgo cs 1.6 css cs0
Image
Image
User avatar
[CSDM]Best
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 942
Joined: 26 Dec 2013, 15:39
Detinator Steam: Da
CS Status: Best Gaming
Detinator server CS: Da sunt :D
SteamID: GangstaCSGO
Location: La Moldoveni
Has thanked: 7 times
Been thanked: 22 times
Contact:

05 Feb 2014, 23:08

rezolvat mersi
Image
Copyright © Gangsta - All rights reserved.
Yahoo Messenger: Best_Extream
Skype: vanea432
Image
Concurs steam http://blz.ro/forum/index.php?/topic/44 ... s-steam-1/ csgo cs 1.6 css cs0
Image
Image
User avatar
^ionutz^
Fost moderator
Fost moderator
Posts: 2048
Joined: 05 Oct 2013, 14:12
Detinator Steam: Da
CS Status: activitate scazuta !
SteamID: /id/ionutz_cs/
Reputatie: Fost moderator ajutator
Location: Galati
Has thanked: 46 times
Been thanked: 24 times
Contact:

06 Feb 2014, 07:49

Da-mi-l si mie :D
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests