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

17 Oct 2019, 17:10

Salut ! As vrea un plugin la care playerii ca sa poata accesa chat-ul sa scrie /chat
RoyalServer 2
I'amYong
Membru nou
Membru nou
Posts: 2
Joined: 17 Oct 2019, 22: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, 22:39

Te referi la chat_tag nu?
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

18 Oct 2019, 15: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: 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

21 Oct 2019, 22: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: 283
Joined: 15 Jul 2017, 21:38
Detinator Steam: Da
Fond eXtream: 0
Location: PornHUB
Has thanked: 36 times
Been thanked: 13 times
Contact:

21 Oct 2019, 23:13

v_knife.mdl wrote:
21 Oct 2019, 22: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/
Unde stau +ss
| Afiseaza codul
MILSUGI?ai luat țeapă 
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

21 Oct 2019, 23: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: 283
Joined: 15 Jul 2017, 21:38
Detinator Steam: Da
Fond eXtream: 0
Location: PornHUB
Has thanked: 36 times
Been thanked: 13 times
Contact:

22 Oct 2019, 00:11

v_knife.mdl wrote:
21 Oct 2019, 23: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♡
Unde stau +ss
| Afiseaza codul
MILSUGI?ai luat țeapă 
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, 14: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: 2549
Joined: 10 Jul 2013, 21:26
Detinator Steam: Da
Reputatie: Fost super moderator
Fond eXtream: 100
Has thanked: 26 times
Been thanked: 62 times
Contact:

22 Oct 2019, 18:48

daca lasai si sursa era ceva ... pe langa seteaza-ti parolele
no...
User avatar
(c) WaRninG.
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 261
Joined: 13 Jul 2018, 14: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
Contact:

22 Oct 2019, 19: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: 283
Joined: 15 Jul 2017, 21:38
Detinator Steam: Da
Fond eXtream: 0
Location: PornHUB
Has thanked: 36 times
Been thanked: 13 times
Contact:

22 Oct 2019, 20:07

v_knife.mdl wrote:
22 Oct 2019, 14: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:
Unde stau +ss
| Afiseaza codul
MILSUGI?ai luat țeapă 
User avatar
levin
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 3844
Joined: 24 Aug 2011, 12:24
Detinator Steam: Da
CS Status:
Detinator server CS: ☯∴
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Location: ҳ̸Ҳ̸ҳ
Discord: devilclass
Has thanked: 36 times
Been thanked: 594 times
Contact:

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();
		}
	}
}
Pentru ajutor, faceți cerere bine detaliată, completând și respectând modelul corespunzător.
Nu-mi mai dați cereri doar pentru a mă avea în lista de prieteni.
Dacă te ajut, și mă ignori/etc > te adaug în „foe”.
Aveți grijă la cei ce încearcă să mă copieze sau să dea drept mine..Puteți lua legătura cu mine prin STEAM dacă aveți o problemă/nelămurire în acest caz! Cont de forum am doar aici.
În cazul în care utilizați ceva din ce am postat(ex: aici), e bine să fiți la curent cu modificările aduse și de aici, iar dacă sunt ceva probleme nu ezitați să luați legătura cu mine. Actualizarea unor coduri nu se vor afișa public, doar dacă se găsește ceva critic/urgent de remediat, unele fiind coduri vechi iar unele refăcute chiar recent dar private.
* Nume pe cs1.6: eVoLuTiOn \ Nume vechi: eVo
* Atelierul meu - post2819572.html#p2819572 (închis, click link ca să vedeți de ce)
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 35 guests