Jump to content

[REZOLVAT] Cerere plugin new


marvel_team

Recommended Posts

Nume :/admin


Versiune :nu conteaza


Descriere detaliata :


mi-as dori si eu un plugin pentru admine,adica atunci cand un jucator scrie in consola amx_who sa ii apara adminii online sub forma de tabel gen


=============================


Owner 


==============================


CO-Owner


===============================


si tot asa dar cu gradele si accesele mele din user ini.


cand incerc sa scriu amx_who cu nume de player fara admin imi spune ca nu am acces....


eu las gradele si accesele aici poate ma poate ajuta cineva


OWNER  ( abcdefghijklmnopqrstu )


CO-OWNER  ( bcdefghijkmnopqrst )


VETERAN  (  bcdefghijkmn )


ADMINISTRATOR  (  bcdefgijk )


 MODERATOR  (  bcdfgij )


VIP  ( bit )


SLOT (  b  ) 


 


MULTUMESC

Link to comment
Share on other sites

2. Intr-un topic puteti cere maxim 1 plugin.[/center]
Avand in vedere ca nu ti-am rezolvat noi prima cerere , las topicul deschis pana la rezolvarea cereri .

 

Poftim :

 

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "/marvel"
#define VERSION "1.0"
#define AUTHOR "IoNNuTz"

new g_iSay[33]

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd( "say",        "CmdSay" );
	register_clcmd( "say_team",   "CmdSay" );
}
public CmdSay(id)
{
	static s_Args[32]
	read_args(s_Args, sizeof(s_Args) - 1);
	remove_quotes(s_Args);
	if(!g_iSay[id])
	{
		if(equal(s_Args, "/marvel"))
		{
			g_iSay[id] = true
			ColorChat(id, "!g*!t[Chat]!g Poti folosi chatul linistit!")
			return PLUGIN_HANDLED;
		}
		else
		{
			ColorChat(id, "!g*!t[Chat]!g Pentru a folosi chatul tasteaza!t /marvel!g!")
			return PLUGIN_HANDLED;
		}
	}
	return PLUGIN_CONTINUE;
}
public client_connect(id)
{
	g_iSay[id] = false
}
public client_putinserver(id)
{
	g_iSay[id] = false
}

stock ColorChat(const id, const input[], any:...) {
	new count = 1, players[32];
	static msg[191];
	vformat(msg, 190, input, 3);
	
	replace_all(msg, 190, "!g", "^4");
	replace_all(msg, 190, "!n", "^1");
	replace_all(msg, 190, "!t", "^3");
	
	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();
			}
		}
	}
}
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...