Jump to content
Sign in to follow this  
marvel_team

[REZOLVAT] Cerere plugin new

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

Share this post


Link to post
Share on other sites

problema rezolvata :) multumesc // Sa nu fac alt topic revin cu o alta cerinta.m-ar interesa un plugin chat_manager,pluginu care iti da permisiunea sa folosesti chatu doar daca scri cateva cuvinte gen : /marvel,salut,blabla etc.

Share this post


Link to post
Share on other sites

ceva nu merge bine.Imi apare si mesajul pe care il scriu si imi apare si anuntul cu folosirea chat-ului :|

Share this post


Link to post
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();
			}
		}
	}
}

Share this post


Link to post
Share on other sites

Pai si stiu eu ce sa fac cu asta ?:( nu poti sa-mi dai link de dowload amx / sma?nu am vrut sa mai deschid unu aiurea...ajuta-ma te rog

Share this post


Link to post
Share on other sites

Daca intampini probleme , imi dai PM si te ajut cu cea mai mare placere !

 

 

#LocK

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...