[Cerere]Plugin

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
gReeNNNN
Membru, skill 0
Membru, skill 0
Posts: 5
Joined: 21 Nov 2012, 21:31
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: Da
SteamID: gaby_asu92
Has thanked: 1 time
Contact:

05 Jan 2013, 01:27

Salut
As dori si eu daca se poate pluginul acela care arata cand intra si cand iese un vip de pe server
arata asa : http://postimage.org/image/s2u1uc6kr/
RoyalServer 2
User avatar
Fantasy1
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 4836
Joined: 05 Jul 2012, 01:26
Detinator Steam: Da
Reputatie: Membru Club eXtreamCS (1 Mar)
Utilizator neserios (TEPAR!)
Has thanked: 278 times
Been thanked: 217 times
Contact:

05 Jan 2013, 02:57

Poftim
| Afiseaza codul
#include < amxmodx >
#include < K1d0x_C_Color >

public plugin_init()
{
   register_plugin("Player Connect","1.0","Deidara");
}

public client_putinserver(id)
{
   set_task ( 10.0, "msg", id );
}

public msg(id)
{
   new name[32];
   get_user_name(id,name,31);

   if(get_user_flags(id) & ADMIN_IMMUNITY) {
      K1d0x_C_Color(0, "!v[VIP] !eVIP-ul %s a intrat pe server.",name);
   } else {
      K1d0x_C_Color(id, "!v[WELCOME] !eBine ai venit pe server %s",name);
   }
}
CLICK AICI pentru FORUM
- Un Forum Care Nu Poate Fi Spart -
- Un Forum Care Nu Modifica Topicurile Cu Tepari -
- Vrei Indexare In Google? Posteaza Tzeparii La Noi -

- Daca ai nevoie sa te ajut cu un addons/plugin etc se plateste, nu ajut cu nimic pe GRATIS -
gReeNNNN
Membru, skill 0
Membru, skill 0
Posts: 5
Joined: 21 Nov 2012, 21:31
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: Da
SteamID: gaby_asu92
Has thanked: 1 time
Contact:

05 Jan 2013, 11:47

Imi da eroare la compilare

fatal error 100: cannot read from file: "K1d0x_C_Color"

Compilation aborted.
1 Error.
Done.

si vreau sa zica si cand iese un vip de pe server :)
User avatar
Hades Ownage
Membru eXtream
Membru eXtream
Posts: 3182
Joined: 22 Oct 2008, 10:12
Detinator Steam: Da
Detinator server CS: jb.clutch.ro
SteamID: hades-source
Reputatie: Fost Super Moderator
Fost Scripter eXtreamCS
Nume anterior: hadesownage
Location: Iasi
Has thanked: 324 times
Been thanked: 406 times

05 Jan 2013, 12:43

Pune include`ul acesta in scripting/include si dupa compliaza`l (local, nu pe net)
gReeNNNN
Membru, skill 0
Membru, skill 0
Posts: 5
Joined: 21 Nov 2012, 21:31
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: Da
SteamID: gaby_asu92
Has thanked: 1 time
Contact:

05 Jan 2013, 13:35

User avatar
Rap^
Membru, skill +2
Membru, skill +2
Posts: 621
Joined: 01 Oct 2011, 00:25
Detinator Steam: Da
Reputatie: Fost Scripter eXtreamCS
Fost Super moderator
Location: Bucuresti
Has thanked: 16 times
Been thanked: 156 times

06 Jan 2013, 16:39

| Afiseaza codul
#include <amxmodx>

#pragma semicolon 1

static const PLUGIN[ ]	= "VIP Connect/Disconnect";
static const VERSION[ ]	= "1.0";
static const AUTHOR[ ]	= "Rap";

new const TAG[ ]		= "[VIP]";

enum Color
{
	NORMAL = 1,
	GREEN,
	RED,
	BLUE
};
new TeamName[ ][ ] =
{
	"",
	"TERRORIST",
	"CT",
	"SPECTATOR"
};

new g_iMaxPlayers;
new g_iMsgSayText;
new g_iMsgTeamInfo;


public plugin_init( )
{
	register_plugin(PLUGIN, VERSION, AUTHOR);
	
	g_iMsgSayText	= get_user_msgid( "SayText" );
	g_iMsgTeamInfo	= get_user_msgid( "TeamInfo" );
	
	g_iMaxPlayers	= get_maxplayers( );
}
public client_putinserver(id)
{
	if( get_user_flags(id) & read_flags("o") )
	{
		ColorChat(0, RED, "%s^4 VIP^1-ul^3 %s^1 a intrat pe server.", TAG, get_name(id));
	}
}
public client_disconnect(id)
{
	if( get_user_flags(id) & read_flags("o") )
	{
		ColorChat(0, RED, "%s^4 VIP^1-ul^3 %s^1 a iesit de pe server.", TAG, get_name(id));
	}
}
ColorChat(id, Color:type, const szMessage[ ], {Float,Sql,Result,_}:...)
{
	if( !get_playersnum( ) ) return;
	
	new message[256];
	
	switch( type )
	{
		case NORMAL: message[0] = 0x01;
		case GREEN: message[0] = 0x04;
		default: message[0] = 0x03;
	}
	vformat(message[1], 251, szMessage, 4);
	
	message[192] = '^0';
	
	replace_all(message, 191, "\YEL", "^1");
	replace_all(message, 191, "\GRN", "^4");
	replace_all(message, 191, "\TEM", "^3");
	
	new iTeam, ColorChange, index, MSG_Type;
	
	if( id )
	{
		MSG_Type = MSG_ONE_UNRELIABLE;
		index = id;
	}
	else
	{
		index = CC_FindPlayer( );
		MSG_Type = MSG_BROADCAST;
	}
	iTeam = get_user_team(index);
	ColorChange = CC_ColorSelection(index, MSG_Type, type);

	CC_ShowColorMessage(index, MSG_Type, message);
	
	if(ColorChange)
		CC_Team_Info(index, MSG_Type, TeamName[iTeam]);
}
CC_ShowColorMessage(id, type, message[ ])
{
	message_begin(type, g_iMsgSayText, _, id);
	write_byte(id);	
	write_string(message);
	message_end( );	
}
CC_Team_Info(id, type, team[ ])
{
	message_begin(type, g_iMsgTeamInfo, _, id);
	write_byte(id);
	write_string(team);
	message_end( );
	
	return 1;
}
CC_ColorSelection(index, type, Color:Type)
{
	switch( Type )
	{
		case RED: return CC_Team_Info(index, type, TeamName[1]);
		case BLUE: return CC_Team_Info(index, type, TeamName[2]);
	}
	
	return 0;
}
CC_FindPlayer( )
{
	for( new i = 1; i <= g_iMaxPlayers; i++ )
		if( is_user_connected(i) )
			return i;
	
	return -1;
}
stock get_name(id)
{
	new szName[32];
	get_user_name(id, szName, sizeof szName -1);
	
	return szName;
}
Uite aici cu colorchat inclus.
Imagination is more important than knowledge.
Knowledge is limited - Imagination encircles the world.
gReeNNNN
Membru, skill 0
Membru, skill 0
Posts: 5
Joined: 21 Nov 2012, 21:31
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: Da
SteamID: gaby_asu92
Has thanked: 1 time
Contact:

07 Jan 2013, 01:27

Ms mult Rap

Puteti da t.c
Post Reply

Return to “Cereri”

  • Information