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 .
v_knife.mdl
Membru, skill 0
Membru, skill 0
Posts: 14
Joined: 17 Oct 2019, 17:04
Detinator Steam: Da
Detinator server CS: ZMX.EXTREAMCS.COM
SteamID: STEAM_0:1:186434357
Fond eXtream: 0
Been thanked: 1 time

22 Oct 2019, 21:34

L E V I N wrote:
22 Oct 2019, 20:49
te tot pui autor da habar n-ai peste ce te pui, sau ce iei de pe net gheorghe

Code: Select all

#include <amxmodx>

#define PLUGIN "No bot chat"
#define VERSION "0.2"
#define AUTHOR "Andr3y"

//parola pentru chat
#define passwd "q2D"

new bool:g_allowed[33]

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd("say", "sayHandle")
	register_clcmd("say_team", "sayHandle")
}

public client_putinserver(id)	g_allowed[id] = false

public sayHandle(id) {
	new said[192]
	read_args(said, 191)
	if(!said[0])	return PLUGIN_HANDLED
	remove_quotes(said)
	if (equali(said,passwd) && !g_allowed[id])
	{
		g_allowed[id] = true;
		client_printcolor(id, "!g[!yFG!g] !yAi primit permisiunea de a folosi chatul")
		return PLUGIN_HANDLED;
	}
	if(!g_allowed[id])
	{
		client_printcolor(id, "!g[!yFG!g] !yScrie !t%s !ypentru a putea folosi chatul.",passwd)
		return PLUGIN_HANDLED;
	}
	return PLUGIN_CONTINUE;
}
//chat color
stock client_printcolor(const id, const input[], any:...)
{
	new count = 1, players[32]
	static msg[191]
	vformat(msg, 190, input, 3)
	
	replace_all(msg, 190, "!g", "^4") // Green Color
	replace_all(msg, 190, "!y", "^1") // Default Color
	replace_all(msg, 190, "!t", "^3") // Team Color
	
	if (id) players[0] = id; else get_players(players, count, "ch")

	for ( new i = 0; i < count; i++ )
	{
		if ( is_user_connected(players[i]) )
		{
			message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
			write_byte(players[i]);
			write_string(msg);
			message_end();
		}
	}
}








Mersi mult. A mers

Code: Select all

http://www.girlshare.ro/3769804486.8
.sma-ul compilat
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 31 guests