Cerere 2 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
Zdreanta
Membru, skill 0
Membru, skill 0
Posts: 8
Joined: 15 Feb 2011, 19:43
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Contact:

24 Jul 2012, 19:15

Salut asi cerere 2 pluginuri:

1.Pe server sa apara "Numele serverului Cautami admini" ca si la amx_csay dar incontinuu

2.Cand scriu in chat /slay /ban /kick "nume" sai dau slay ban kick sau slap

Multumesc anticipat
krystann
Membru eXtream
Membru eXtream
Posts: 2552
Joined: 16 May 2009, 10:37
Detinator Steam: Nu
CS Status: Vine criza!
Reputatie: Fost moderator
Has thanked: 321 times
Been thanked: 141 times

24 Jul 2012, 20:21

1.Auto center message(ceva de genul:
| Afiseaza codul
#include <amxmodx>

#define PLUGIN "Auto Center Msg"
#define VERSION "1.0"
#define AUTHOR "Rusu" // o.O

#define TASK_INTERVAL 8.0

new const hud_messages[][] = {
	
	"Mesajul tau!"
           "Mesajul tau"   
};
public plugin_init()
{
	register_plugin( PLUGIN, VERSION, AUTHOR );
	set_task( TASK_INTERVAL, "RandomHudWithRandomColors", 0, "", 0, "b"  );
}
public RandomHudWithRandomColors()
{
	set_hudmessage( random_num( 0, 255 ), random_num( 0, 255 ), random_num( 0, 255 ), -1.0, 0.0, random_num( 0, 2 ), 6.0, 8.0 );
	show_hudmessage( 0, "%s", hud_messages[ random_num( 0, charsmax( hud_messages ) ) ] );
}

IMP:

Modifici #define TASK_INTERVAL 8.0 sa apara din cate in cate secunde sa apara mesajele respective !


2.CFG_Slash
| Afiseaza codul
#include < amxmodx >

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

new const g_Char[ ] = "/";

new g_Commands[ ][ ] =
{
	"/kick",
	"/slay",
	"/ban",
	"/banip"
};

new g_Accesses[ ] =
{
	ADMIN_KICK,
	ADMIN_SLAY,
	ADMIN_BAN,
	ADMIN_BAN
};

public plugin_init ( )
{
	register_plugin ( PLUGIN, VERSION, AUTHOR );
	register_clcmd ( "say", "hook_say" );
}

public hook_say ( e_Index )
{
	static s_Args[ 192 ], s_Command[ 192 ];
	read_args ( s_Args, charsmax ( s_Args ) );
	
	if ( ! s_Args[ 0 ] )
		return PLUGIN_CONTINUE;
	remove_quotes ( s_Args[ 0 ] );
	
	for ( new i; i < sizeof g_Commands; i++ )
	{
		if ( equal ( s_Args, g_Commands[ i ], strlen ( g_Commands[ i ] ) ) )
		{
			if ( get_user_flags ( e_Index ) & g_Accesses[ i ] )
			{
				replace ( s_Args, charsmax ( s_Args ), g_Char, "" );
				formatex ( s_Command, charsmax ( s_Command ),"amx_%s", s_Args );
				client_cmd ( e_Index, s_Command );
			}
			
			break;
		}
	}
	
	return PLUGIN_CONTINUE;
}
Zdreanta
Membru, skill 0
Membru, skill 0
Posts: 8
Joined: 15 Feb 2011, 19:43
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Contact:

25 Jul 2012, 07:23

Mersi mult
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests