[cerere] pugin chat verde + tag grad sau admin [rezolvat!]

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

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
csbogdancs
Membru, skill +1
Membru, skill +1
Posts: 125
Joined: 03 Jan 2014, 15:25
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 19 times
Contact:

03 Feb 2014, 00:58

  • Nickname:
bogdan
  • Numele pluginului cerut:
nu stiu stiu ce face...
  • Descriere plugin cerut:
decicand scrie un admin sa scrie [Fondator]bogdan:extreamcs.com
  • Alte informatii:
cam atat dar scrisul sa fie verde o sa revin cu edit cu o poza
edit :Image
Last edited by RedForce on 03 Feb 2014, 02:04, edited 2 times in total.
Reason: rezolvat!
RoyalServer 2
User avatar
RedForce
Fost moderator
Fost moderator
Posts: 1478
Joined: 17 Sep 2007, 18:20
Detinator Steam: Da
SteamID: redforcex
Reputatie: Fost moderator
Membru Club eXtreamCS (2 luni)
0.1/3
Location: Calea Moşilor, Bucureşti
Has thanked: 353 times
Been thanked: 135 times

03 Feb 2014, 01:03

csbogdancs
Membru, skill +1
Membru, skill +1
Posts: 125
Joined: 03 Jan 2014, 15:25
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 19 times
Contact:

03 Feb 2014, 01:05

cred ca ai gresit link,... vreau admin tag +scris verde vezi ca am pus acum poza
User avatar
RedForce
Fost moderator
Fost moderator
Posts: 1478
Joined: 17 Sep 2007, 18:20
Detinator Steam: Da
SteamID: redforcex
Reputatie: Fost moderator
Membru Club eXtreamCS (2 luni)
0.1/3
Location: Calea Moşilor, Bucureşti
Has thanked: 353 times
Been thanked: 135 times

03 Feb 2014, 01:09

csbogdancs wrote:
cred ca ai gresit link,... vreau admin tag +scris verde vezi ca am pus acum poza
Vrei doar la owneri să apară [Fondator] ? sau la fiecare admin în parte rang-ul respectiv?

Iar pentru culoarea numelui şi scrisului îţi recomand asta.
csbogdancs
Membru, skill +1
Membru, skill +1
Posts: 125
Joined: 03 Jan 2014, 15:25
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 19 times
Contact:

03 Feb 2014, 01:10

ma la fiecare gradul ...
edit:http://postimg.org/image/6lujoognx/ uite cum e acum eu vreau tagurile fonder.....
2*edit: http://postimg.org/image/uxhh1exrt/ aici ai gradele

sau daca nu gasesti damil pe asta daca stii fara grade... http://postimg.org/image/rlbm6gsov/
User avatar
RedForce
Fost moderator
Fost moderator
Posts: 1478
Joined: 17 Sep 2007, 18:20
Detinator Steam: Da
SteamID: redforcex
Reputatie: Fost moderator
Membru Club eXtreamCS (2 luni)
0.1/3
Location: Calea Moşilor, Bucureşti
Has thanked: 353 times
Been thanked: 135 times

03 Feb 2014, 01:17

csbogdancs wrote:ma la fiecare gradul ...
Păi şi ai încercat tu ce ţi-am dat acolo şi n-a mers? /:)
| Afiseaza codul
#include < amxmodx >
#include < amxmisc >

#define PLUGIN "CFG RangChat"
#define VERSION "1.0"
#define AUTHOR "aNNakin"

#define	GROUPS	6

enum Color
{
	NORMAL = 1,
	GREEN,
	TEAM_COLOR,
	GREY,
	RED,
	BLUE,
}

new TeamName[ ][ ] = 
{
	"",
	"TERRORIST",
	"CT",
	"SPECTATOR"
}

// - - - - - - - - - - -

#define	GROUPS	6

new const g_Flags[ GROUPS ][ ] =
{
	"abcdefghijklmnopqrstu",
	"bcdefghijklmnopqrst",
	"bcdefghijmnopqrst",
	"bcdefgijnopqrst",
	"bcijnopqrst",
	"b"
};

new const g_Groups[ GROUPS ][ ] =
{
	"Fondator",
	"God",
	"SemiGod",
	"Moderator",
	"Helper",
	"Slot"
};

// - - - - - - - - - - -

new g_FlagsValue[ GROUPS ];

new bool:g_IsConnected[ 33 ];
new SayText, TeamInfo, g_maxplayers;

public plugin_init ( )
{
	register_plugin ( PLUGIN, VERSION, AUTHOR );
	
	register_clcmd ( "say", "hook_say" );
	
	for ( new i; i < GROUPS; i++ )
		g_FlagsValue[ i ] = read_flags ( g_Flags[ i ] );
		
	SayText = get_user_msgid ( "SayText" );
	TeamInfo = get_user_msgid ( "TeamInfo" );
	g_maxplayers = get_maxplayers ( );
}

public client_putinserver ( e_Index ) g_IsConnected[ e_Index ] = true;
public client_disconnect ( e_Index ) g_IsConnected[ e_Index ] = false;

public hook_say ( e_Index )
{
	static s_Said[ 192 ];
	read_args ( s_Said, charsmax ( s_Said ) );
	
	if ( equal ( s_Said, "" ) )
		return PLUGIN_CONTINUE;
	remove_quotes ( s_Said );
	
	static s_Name[ 32 ], i;
	get_user_name ( e_Index, s_Name, 31 );
	
	for ( i = 0; i < GROUPS; i++ )
		if ( get_user_flags ( e_Index ) == g_FlagsValue[ i ] )
		{
			ColorChat ( 0, TEAM_COLOR, "^x01*^x04%s^x01*^x03%s^x01: %s", g_Groups[ i ], s_Name, s_Said );
			break;
		}
		
	return ( i < GROUPS ) ? PLUGIN_HANDLED : PLUGIN_CONTINUE;
}

public ColorChat ( id, Color:type, const msg[], { Float, Sql, Result, _ }:... )
{
	static message[ 256 ];

	switch ( type )
	{
		case NORMAL:
			message[ 0 ] = 0x01;
		case GREEN:
			message[ 0 ] = 0x04;
		default:
			message[ 0 ] = 0x03;
	}

	vformat ( message[ 1 ], 251, msg, 4 );
	message[ 192 ] = '^0';

	new team, ColorChange, index, MSG_Type;
	
	if ( id )
	{
		MSG_Type = MSG_ONE;
		index = id;
	}
	else
	{
		index = FindPlayer ( );
		MSG_Type = MSG_ALL;
	}
	
	team = get_user_team ( index );	
	ColorChange = ColorSelection ( index, MSG_Type, type );

	ShowColorMessage ( index, MSG_Type, message );
		
	if ( ColorChange )
		Team_Info ( index, MSG_Type, TeamName[ team ] );
}

ShowColorMessage ( id, type, message[] )
{
	message_begin ( type, SayText, _, id );
	write_byte ( id )		
	write_string ( message );
	message_end ( );	
}

Team_Info ( id, type, team[] )
{
	message_begin ( type, TeamInfo, _, id );
	write_byte ( id );
	write_string ( team );
	message_end ( );

	return 1;
}

ColorSelection ( index, type, Color:Type )
{
	switch ( Type )
	{
		case RED:
			return Team_Info ( index, type, TeamName[ 1 ] );
		case BLUE:
			return Team_Info ( index, type, TeamName[ 2 ] );
		case GREY:
			return Team_Info ( index, type, TeamName[ 0 ] );
	}
	return 0;
}

public FindPlayer ( )
{	
	for ( new i = 1; i <= g_maxplayers; i++ )
		if ( g_IsConnected[ i ] )
			return i;
	
	return -1;
}
{
"Fondator",
"God",
"SemiGod",
"Moderator",
"Helper",
"Slot"
};
modifici cum vrei să apară la fiecare în parte acolo unde am îngroşat.
{
"abcdefghijklmnopqrstu",
"bcdefghijklmnopqrst",
"bcdefghijmnopqrst",
"bcdefgijnopqrst",
"bcijnopqrst",
"b"
};
iar aici gradele pentru fiecare în parte.

Încearcă ce ţi-am dat apoi revii cu reply dacă nu merge.
csbogdancs
Membru, skill +1
Membru, skill +1
Posts: 125
Joined: 03 Jan 2014, 15:25
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 19 times
Contact:

03 Feb 2014, 01:18

acum am vazut si eu acum bag pluginul si vin cu un edit..
edit : http://postimg.org/image/7q0yxst4p/ scrie cu galben... vreau cu verde
User avatar
RedForce
Fost moderator
Fost moderator
Posts: 1478
Joined: 17 Sep 2007, 18:20
Detinator Steam: Da
SteamID: redforcex
Reputatie: Fost moderator
Membru Club eXtreamCS (2 luni)
0.1/3
Location: Calea Moşilor, Bucureşti
Has thanked: 353 times
Been thanked: 135 times

03 Feb 2014, 01:38

csbogdancs wrote:acum am vazut si eu acum bag pluginul si vin cu un edit..
edit : http://postimg.org/image/7q0yxst4p/ scrie cu galben... vreau cu verde
Iar pentru culoarea numelui şi scrisului îţi recomand asta.
bagă aia apoi bagi repede în amxx.cfg astea:

Code: Select all

sv_allchat 2
 ac_namecolor 0
 ac_msgcolor 1
 ac_hidestatus 0
 ac_teamchat 1
csbogdancs
Membru, skill +1
Membru, skill +1
Posts: 125
Joined: 03 Jan 2014, 15:25
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 19 times
Contact:

03 Feb 2014, 01:50

tot lafel e...
User avatar
RedForce
Fost moderator
Fost moderator
Posts: 1478
Joined: 17 Sep 2007, 18:20
Detinator Steam: Da
SteamID: redforcex
Reputatie: Fost moderator
Membru Club eXtreamCS (2 luni)
0.1/3
Location: Calea Moşilor, Bucureşti
Has thanked: 353 times
Been thanked: 135 times

03 Feb 2014, 01:57

csbogdancs wrote:tot lafel e...
Greşeala mea, scoate repede all_chat ăla şi caută în plugin-ul de mai sus asta:
ColorChat ( 0, TEAM_COLOR, "^x01*^x04%s^x01*^x03%s^x01: %s", g_Groups[ i ], s_Name, s_Said );
bagă acolo repede, 04 în loc de 01(unde am îngroşat), recompilează-l şi ar trebui să meargă brici. :)
csbogdancs
Membru, skill +1
Membru, skill +1
Posts: 125
Joined: 03 Jan 2014, 15:25
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 19 times
Contact:

03 Feb 2014, 02:03

multumesc :* :*:*:*:*:*:*:* de cand cautam asta...
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 29 guests