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: 15
Joined: 17 Oct 2019, 16:04
Detinator Steam: Da
Detinator server CS: ZMX.EXTREAMCS.COM
SteamID: STEAM_0:1:186434357
Fond eXtream: 0
Been thanked: 1 time
Contact:

17 Oct 2019, 16:10

Salut ! As vrea un plugin la care playerii ca sa poata accesa chat-ul sa scrie /chat
Zonek
I'amYong
Membru nou
Membru nou
Posts: 1
Joined: 17 Oct 2019, 21:36
Detinator Steam: Nu
CS Status: Gn1
Detinator server CS: AWP.RO-PLAYER.RO
SteamID: STEAM_0:1:510782855
Fond eXtream: 0

17 Oct 2019, 21:39

Te referi la chat_tag nu?
v_knife.mdl
Membru, skill 0
Membru, skill 0
Posts: 15
Joined: 17 Oct 2019, 16:04
Detinator Steam: Da
Detinator server CS: ZMX.EXTREAMCS.COM
SteamID: STEAM_0:1:186434357
Fond eXtream: 0
Been thanked: 1 time
Contact:

18 Oct 2019, 14:42

Nu, cand vrei sa dai mesaj pe chat sa nu te lase doar scriind comanda /chat pentru a accesa chat-ul (pentru a preveni spamul)
v_knife.mdl
Membru, skill 0
Membru, skill 0
Posts: 15
Joined: 17 Oct 2019, 16:04
Detinator Steam: Da
Detinator server CS: ZMX.EXTREAMCS.COM
SteamID: STEAM_0:1:186434357
Fond eXtream: 0
Been thanked: 1 time
Contact:

21 Oct 2019, 21:31

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/tmp/textCPgyWb.sma(22) : error 010: invalid function or declaration
/tmp/textCPgyWb.sma(99) : error 035: argument type mismatch (argument 1)
/tmp/textCPgyWb.sma(101) : error 035: argument type mismatch (argument 4)
/tmp/textCPgyWb.sma(102) : error 035: argument type mismatch (argument 1)

4 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/textCPgyWb.amx (compile failed).
User avatar
Jucator
Membru, skill +1
Membru, skill +1
Posts: 227
Joined: 15 Jul 2017, 20:38
Detinator Steam: Da
Fond eXtream: 0
Has thanked: 32 times
Been thanked: 11 times
Contact:

21 Oct 2019, 22:13

v_knife.mdl wrote:
21 Oct 2019, 21:31
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/tmp/textCPgyWb.sma(22) : error 010: invalid function or declaration
/tmp/textCPgyWb.sma(99) : error 035: argument type mismatch (argument 1)
/tmp/textCPgyWb.sma(101) : error 035: argument type mismatch (argument 4)
/tmp/textCPgyWb.sma(102) : error 035: argument type mismatch (argument 1)

4 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/textCPgyWb.amx (compile failed).
Foloseste https://amx.freakz.ro/
v_knife.mdl
Membru, skill 0
Membru, skill 0
Posts: 15
Joined: 17 Oct 2019, 16:04
Detinator Steam: Da
Detinator server CS: ZMX.EXTREAMCS.COM
SteamID: STEAM_0:1:186434357
Fond eXtream: 0
Been thanked: 1 time
Contact:

21 Oct 2019, 22:29

same
AMX Mod X Compiler 1.8.3-manual
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Modified for www.Freakz.ro / amx.freakz.ro

chatvorbeste.txt(22) : error 010: invalid function or declaration
chatvorbeste.txt(99) : error 035: argument type mismatch (argument 1)
chatvorbeste.txt(101) : error 035: argument type mismatch (argument 4)
chatvorbeste.txt(102) : error 035: argument type mismatch (argument 1)

4 Errors.
Compilarea a esuat!
User avatar
Jucator
Membru, skill +1
Membru, skill +1
Posts: 227
Joined: 15 Jul 2017, 20:38
Detinator Steam: Da
Fond eXtream: 0
Has thanked: 32 times
Been thanked: 11 times
Contact:

21 Oct 2019, 23:11

v_knife.mdl wrote:
21 Oct 2019, 22:29
same
AMX Mod X Compiler 1.8.3-manual
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Modified for www.Freakz.ro / amx.freakz.ro

chatvorbeste.txt(22) : error 010: invalid function or declaration
chatvorbeste.txt(99) : error 035: argument type mismatch (argument 1)
chatvorbeste.txt(101) : error 035: argument type mismatch (argument 4)
chatvorbeste.txt(102) : error 035: argument type mismatch (argument 1)

4 Errors.
Compilarea a esuat!

Ai modificat tu si ai pus .txt si de aia nu merge! Mie imi merge 100♡
v_knife.mdl
Membru, skill 0
Membru, skill 0
Posts: 15
Joined: 17 Oct 2019, 16:04
Detinator Steam: Da
Detinator server CS: ZMX.EXTREAMCS.COM
SteamID: STEAM_0:1:186434357
Fond eXtream: 0
Been thanked: 1 time
Contact:

22 Oct 2019, 13:43

AMX Mod X Compiler 1.8.3-manual
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Modified for www.Freakz.ro / amx.freakz.ro

chatscrie.sma(22) : error 010: invalid function or declaration
chatscrie.sma(99) : error 035: argument type mismatch (argument 1)
chatscrie.sma(101) : error 035: argument type mismatch (argument 4)
chatscrie.sma(102) : error 035: argument type mismatch (argument 1)

4 Errors.
Compilarea a esuat!

am facut fisier .sma, cand l-am pus in compiler mi-a dat acelasi lucru

Image
Image

da-mi trg fisierul compilat
User avatar
Laurentiu P.
Fost moderator
Fost moderator
Posts: 2372
Joined: 10 Jul 2013, 20:26
Detinator Steam: Nu
Reputatie: Fost super moderator
Fond eXtream: 100
Has thanked: 15 times
Been thanked: 37 times
Contact:

22 Oct 2019, 17:48

daca lasai si sursa era ceva ... pe langa seteaza-ti parolele
Image
User avatar
(c) WaRninG.
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 264
Joined: 13 Jul 2018, 13:44
Detinator Steam: Da
Detinator server CS: 《ZP.PLAYARENA.RO 》
SteamID: Andu
Reputatie: Utilizator neserios (tepar!)
Membru Club eXtreamCS (4 Ian - 4 Mai)
Nick anterior: Andrei # QualTech
-1 avertisment (2 luni club)
Fond eXtream: 0
Location: Câmpulung
Has thanked: 3 times
Been thanked: 1 time
Contact:

22 Oct 2019, 18:20

| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "/play"
#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, "/play"))
		{
			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 /play!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)) {
				message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players);
				write_byte(players);
				write_string(msg);
				message_end();
			}
		}
	}
}
User avatar
Jucator
Membru, skill +1
Membru, skill +1
Posts: 227
Joined: 15 Jul 2017, 20:38
Detinator Steam: Da
Fond eXtream: 0
Has thanked: 32 times
Been thanked: 11 times
Contact:

22 Oct 2019, 19:07

v_knife.mdl wrote:
22 Oct 2019, 13:43
AMX Mod X Compiler 1.8.3-manual
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Modified for www.Freakz.ro / amx.freakz.ro

chatscrie.sma(22) : error 010: invalid function or declaration
chatscrie.sma(99) : error 035: argument type mismatch (argument 1)
chatscrie.sma(101) : error 035: argument type mismatch (argument 4)
chatscrie.sma(102) : error 035: argument type mismatch (argument 1)

4 Errors.
Compilarea a esuat!

am facut fisier .sma, cand l-am pus in compiler mi-a dat acelasi lucru

Image
Image

da-mi trg fisierul compilat
AM MODIFICAT PUTIN
Image


Testeaza acum

dai pe Afiseaza codul :laughing_cat:
| Afiseaza codul
#include <amxmodx> 

#define PLUGIN "Iesi Afara" 
#define VERSION "1.2" 
#define AUTHOR "Jucator" 

#define TAG_CHAT "[ZMX.EXTREAMCS.COM]:"

enum  
{  
    NUM = 0,  
    POINT = 1,
    TOTAL  
}  

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

public hook_say(id)  
{  
    new args[192], content[TOTAL]  
    
    read_args(args, 191)  
    
    replace_all(args, 191, " ", "")  
    
    for( new i = 0; i < strlen(args) ; i++)  
    {  
        if(48 <= args <= 57)  
        {  
            content[NUM]++  
            args = 'x'  
            
        }  
        if(args == 46)  
        {  
            content[POINT]++  
        }
    }  
    
    if(content[POINT] >= 2 || containi(args, "allow") != -1)  //scrie allow pentru a porni chatul 
    {
        ChatColor(id, "!g%s !yNu este permis spamul !.", TAG_CHAT)
        return PLUGIN_HANDLED;
    }
    else if(content[NUM] >= 4)  
    {
        if( content[POINT] )
        {
            ChatColor(id, "!g%s !y[!yINFORMATIE!y]. !tAi primit permisiunea de a folosi chatul", TAG_CHAT)
            return PLUGIN_HANDLED
        }
        else
        {
            ChatColor(id, "!g[!yATENTIE!g]!g!Scrie %s !ypentru a putea folosi chatul . !t-.-", TAG_CHAT)  
            return PLUGIN_HANDLED  
        }
    }  
    
    return PLUGIN_CONTINUE 
}  

stock ChatColor(id, const text[], any:...) 
{ 
    new g_iMsgidSayText; 
    g_iMsgidSayText = get_user_msgid("SayText"); 
    
    new szMsg[191], iPlayers[32], iCount = 1; 
    vformat(szMsg, charsmax(szMsg), text, 3); 
    
    replace_all(szMsg, charsmax(szMsg), "!g","^x04"); 
    replace_all(szMsg, charsmax(szMsg), "!y","^x01"); 
    replace_all(szMsg, charsmax(szMsg), "!t","^x03"); 
    
    if(id) 
        iPlayers[0] = id; 
    else 
    get_players(iPlayers, iCount, "ch"); 
    
    for(new i = 0 ; i < iCount ; i++) 
    { 
        if(!is_user_connected(iPlayers)) 
            continue; 
        
        message_begin(MSG_ONE_UNRELIABLE, g_iMsgidSayText, _, iPlayers); 
        write_byte(iPlayers); 
        write_string(szMsg); 
        message_end(); 
    }
} 


P.S nu l-am testat pe servere revi cu reply si imi zici daca merge cum trebuie :everything_ok:
User avatar
L E V I N
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2955
Joined: 24 Aug 2011, 11:24
Detinator Steam: Da
CS Status:
Detinator server CS: ☯∴
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Location: ҳ̸Ҳ̸ҳ
Has thanked: 39 times
Been thanked: 454 times
Contact:

22 Oct 2019, 19: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();
		}
	}
}
Faceți cerere bine detaliată aici și respectând modelul dacă vreți ajutor. Nu-mi mai dați add doar pentru a mă avea în lista de prieteni.
Am cont și activez doar aici! Aveți grijă la cei ce încearcă să mă copieze..Puteți lua legătura cu mine dacă aveți o problemă/nelămurire în acest caz!
În cazul în care utilizați ceva din addonsurile postate de mine aici, e bine să fiți la curent cu modificările aduse unor plugine, aici, iar dacă sunt ceva probleme sau aveți dvs. probleme nu ezitați să luați legătura cu mine.
HOST CS1.6
Post Reply

Return to “Cereri”

  • Information