Page 1 of 2
Cerere Plugin
Posted: 17 Oct 2019, 17:10
by v_knife.mdl
Salut ! As vrea un plugin la care playerii ca sa poata accesa chat-ul sa scrie /chat
Re: Cerere Plugin
Posted: 17 Oct 2019, 22:39
by I'amYong
Te referi la chat_tag nu?
Re: Cerere Plugin
Posted: 18 Oct 2019, 15:42
by v_knife.mdl
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)
Re: Cerere Plugin
Posted: 21 Oct 2019, 22:31
by v_knife.mdl
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).
Re: Cerere Plugin
Posted: 21 Oct 2019, 23:13
by Jucator
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/
Re: Cerere Plugin
Posted: 21 Oct 2019, 23:29
by v_knife.mdl
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!
Re: Cerere Plugin
Posted: 22 Oct 2019, 00:11
by Jucator
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♡
Re: Cerere Plugin
Posted: 22 Oct 2019, 14:43
by v_knife.mdl
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
da-mi trg fisierul compilat
Re: Cerere Plugin
Posted: 22 Oct 2019, 18:48
by Laurentiu P.
daca lasai si sursa era ceva ... pe langa seteaza-ti parolele
Re: Cerere Plugin
Posted: 22 Oct 2019, 19:20
by (c) WaRninG.
- | 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();
}
}
}
}
Re: Cerere Plugin
Posted: 22 Oct 2019, 20:07
by Jucator
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
da-mi trg fisierul compilat
AM MODIFICAT PUTIN
Testeaza acum
dai pe Afiseaza codul
- | 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
Re: Cerere Plugin
Posted: 22 Oct 2019, 20:49
by levin
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();
}
}
}