[Cerere Plugin] Program de noapte

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 .
User avatar
paraParaschiv
Membru, skill +1
Membru, skill +1
Posts: 137
Joined: 12 Jun 2019, 18:06
Detinator Steam: Da
CS Status: PuNcT
Detinator server CS: « ESL.CSPOWER.RO »
SteamID: Stai LIN !
Fond eXtream: 0
Has thanked: 3 times
Been thanked: 2 times

11 Jun 2020, 22:45

Plugin Cerut:Program de noapte
Descriere (adica ce face el mai exact):dupa ora 22:00 serveru intra in programu de noapte gen,schimba mapa in de_dust2 si afiseaza mesaju asta: [GOLD] Serverul trece pe Programu-l de noapte ! Harta nu se mai schimba, pune amx_cvar mp_timelimit 0 si interzice amx_map,amx_mapmenu,amx_votemap !
Serverul impune conditii strict HLDS/REHLDS?:Re
Ai cautat pluginul?(daca da, precizeaza cum):nu
Necesita mod special?:Nu
ESL.CSPOWER.RO
RoyalServer
User avatar
DaNNe.
Fost moderator
Fost moderator
Posts: 2811
Joined: 08 Nov 2013, 20:43
Detinator Steam: Da
CS Status: Activitate scăzută
SteamID: /id/FurienMaster
Reputatie: Nick anterior: DnD. Gold, Emrys
0.5/3
Fost moderator ajutator
Fost Membru Club eXtreamCS (doua luni)
Has thanked: 244 times
Been thanked: 129 times
Contact:

11 Jun 2020, 22:59

ia vezi | Afiseaza codul
#include 		<amxmodx>

#define 		PLUGIN		"NIGHT MODE"
#define 		VERSION		"1.0"
#define 		AUTHOR		"DaNNe."
	
new bool: NIGHTMODE

public 		plugin_init() {
		register_plugin(PLUGIN, VERSION, AUTHOR)
		set_task(0.8,		"TIME",	_, _, _, "b")
		
		register_clcmd("amx_map",			"CMD_BLOCK")
		register_clcmd("amx_mapmenu", 		"CMD_BLOCK")
		register_clcmd("amx_votemap",		"CMD_BLOCK")
		register_clcmd("amx_votemapmenu",	"CMD_BLOCK")
}

public 		TIME() {
			new Time[64],		TimeLen		=	charsmax(Time)
			get_time("%H:%M:%S", Time, TimeLen)
			if(equal(Time, "22:59:59")) {
				ColorChat(0, "Server-ul trece la programul de noapte. Se schimba mapa pe!t de_dust2!n si!t mp_timelimit 0")
				set_cvar_num("mp_timelimit", 0)
				server_cmd("amx_map de_dust2")
				NIGHTMODE	=	true;
			}
			else if(equal(Time, "09:00:00")) {
				ColorChat(0, "Server-ul trece la programul de zi. Se seteaza CVAR:!t mp_timelimit 30")
				set_cvar_num("mp_timelimit", 30)
				NIGHTMODE	=	false;
			}
}

public 		CMD_BLOCK(id) {
		if(NIGHTMODE) {
			client_print(id, print_console, "NIGHTMODE este activ, nu ai acces la comenzile de schimbare map.")
			return PLUGIN_HANDLED
		}
		return PLUGIN_CONTINUE
}

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, "c");
	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
paraParaschiv
Membru, skill +1
Membru, skill +1
Posts: 137
Joined: 12 Jun 2019, 18:06
Detinator Steam: Da
CS Status: PuNcT
Detinator server CS: « ESL.CSPOWER.RO »
SteamID: Stai LIN !
Fond eXtream: 0
Has thanked: 3 times
Been thanked: 2 times

12 Jun 2020, 00:00

DaNNe. wrote:
11 Jun 2020, 22:59
ia vezi | Afiseaza codul
#include 		<amxmodx>

#define 		PLUGIN		"NIGHT MODE"
#define 		VERSION		"1.0"
#define 		AUTHOR		"DaNNe."
	
new bool: NIGHTMODE

public 		plugin_init() {
		register_plugin(PLUGIN, VERSION, AUTHOR)
		set_task(0.8,		"TIME",	_, _, _, "b")
		
		register_clcmd("amx_map",			"CMD_BLOCK")
		register_clcmd("amx_mapmenu", 		"CMD_BLOCK")
		register_clcmd("amx_votemap",		"CMD_BLOCK")
		register_clcmd("amx_votemapmenu",	"CMD_BLOCK")
}

public 		TIME() {
			new Time[64],		TimeLen		=	charsmax(Time)
			get_time("%H:%M:%S", Time, TimeLen)
			if(equal(Time, "22:59:59")) {
				ColorChat(0, "Server-ul trece la programul de noapte. Se schimba mapa pe!t de_dust2!n si!t mp_timelimit 0")
				set_cvar_num("mp_timelimit", 0)
				server_cmd("amx_map de_dust2")
				NIGHTMODE	=	true;
			}
			else if(equal(Time, "09:00:00")) {
				ColorChat(0, "Server-ul trece la programul de zi. Se seteaza CVAR:!t mp_timelimit 30")
				set_cvar_num("mp_timelimit", 30)
				NIGHTMODE	=	false;
			}
}

public 		CMD_BLOCK(id) {
		if(NIGHTMODE) {
			client_print(id, print_console, "NIGHTMODE este activ, nu ai acces la comenzile de schimbare map.")
			return PLUGIN_HANDLED
		}
		return PLUGIN_CONTINUE
}

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, "c");
	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();
			}
	} 
}

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

/tmp/text676cJH.sma(55) : error 035: argument type mismatch (argument 1)
/tmp/text676cJH.sma(56) : error 035: argument type mismatch (argument 4)
/tmp/text676cJH.sma(57) : error 035: argument type mismatch (argument 1)

3 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/text676cJH.amx (compile failed).
Nu s-a aranjat bine uite ce fel imi apare https://imgur.com/H4eQPzJ
ESL.CSPOWER.RO
User avatar
iNdio
Membru, skill +4
Membru, skill +4
Posts: 1512
Joined: 28 Jan 2015, 17:42
Detinator Steam: Da
SteamID: iNdioPGL
Reputatie: Fost Membru Club eXtreamCS (6 luni)
Castigator Membru Club eXtream @ Ganduri de sub dus (25 OCT - 25 FEB)
Fond eXtream: 0
Been thanked: 3 times

12 Jun 2020, 03:51

Code: Select all

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, "c");
	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();
			}
	} 
}
--- >

Code: Select all

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, "c");
	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();
			}
	} 
}

Code: Select all

#include 		<amxmodx>

#define 		PLUGIN		"NIGHT MODE"
#define 		VERSION		"1.0"
#define 		AUTHOR		"DaNNe."
	
new bool: NIGHTMODE

public 		plugin_init() {
		register_plugin(PLUGIN, VERSION, AUTHOR)
		set_task(0.8,		"TIME",	_, _, _, "b")
		
		register_clcmd("amx_map",			"CMD_BLOCK")
		register_clcmd("amx_mapmenu", 		"CMD_BLOCK")
		register_clcmd("amx_votemap",		"CMD_BLOCK")
		register_clcmd("amx_votemapmenu",	"CMD_BLOCK")
}

public 		TIME() {
			new Time[64],		TimeLen		=	charsmax(Time)
			get_time("%H:%M:%S", Time, TimeLen)
			if(equal(Time, "22:59:59")) {
				ColorChat(0, "Server-ul trece la programul de noapte. Se schimba mapa pe!t de_dust2!n si!t mp_timelimit 0")
				set_cvar_num("mp_timelimit", 0)
				server_cmd("amx_map de_dust2")
				NIGHTMODE	=	true;
			}
			else if(equal(Time, "09:00:00")) {
				ColorChat(0, "Server-ul trece la programul de zi. Se seteaza CVAR:!t mp_timelimit 30")
				set_cvar_num("mp_timelimit", 30)
				NIGHTMODE	=	false;
			}
}

public 		CMD_BLOCK(id) {
		if(NIGHTMODE) {
			client_print(id, print_console, "NIGHTMODE este activ, nu ai acces la comenzile de schimbare map.")
			return PLUGIN_HANDLED
		}
		return PLUGIN_CONTINUE
}

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, "c");
	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();
			}
	} 
}
Where Cs had no value, amxx, sometimes, had its price...
steam | Afiseaza codul
Image
Image
User avatar
DaNNe.
Fost moderator
Fost moderator
Posts: 2811
Joined: 08 Nov 2013, 20:43
Detinator Steam: Da
CS Status: Activitate scăzută
SteamID: /id/FurienMaster
Reputatie: Nick anterior: DnD. Gold, Emrys
0.5/3
Fost moderator ajutator
Fost Membru Club eXtreamCS (doua luni)
Has thanked: 244 times
Been thanked: 129 times
Contact:

12 Jun 2020, 14:38

paraParaschiv wrote:
12 Jun 2020, 00:00
DaNNe. wrote:
11 Jun 2020, 22:59
ia vezi | Afiseaza codul
#include 		<amxmodx>

#define 		PLUGIN		"NIGHT MODE"
#define 		VERSION		"1.0"
#define 		AUTHOR		"DaNNe."
	
new bool: NIGHTMODE

public 		plugin_init() {
		register_plugin(PLUGIN, VERSION, AUTHOR)
		set_task(0.8,		"TIME",	_, _, _, "b")
		
		register_clcmd("amx_map",			"CMD_BLOCK")
		register_clcmd("amx_mapmenu", 		"CMD_BLOCK")
		register_clcmd("amx_votemap",		"CMD_BLOCK")
		register_clcmd("amx_votemapmenu",	"CMD_BLOCK")
}

public 		TIME() {
			new Time[64],		TimeLen		=	charsmax(Time)
			get_time("%H:%M:%S", Time, TimeLen)
			if(equal(Time, "22:59:59")) {
				ColorChat(0, "Server-ul trece la programul de noapte. Se schimba mapa pe!t de_dust2!n si!t mp_timelimit 0")
				set_cvar_num("mp_timelimit", 0)
				server_cmd("amx_map de_dust2")
				NIGHTMODE	=	true;
			}
			else if(equal(Time, "09:00:00")) {
				ColorChat(0, "Server-ul trece la programul de zi. Se seteaza CVAR:!t mp_timelimit 30")
				set_cvar_num("mp_timelimit", 30)
				NIGHTMODE	=	false;
			}
}

public 		CMD_BLOCK(id) {
		if(NIGHTMODE) {
			client_print(id, print_console, "NIGHTMODE este activ, nu ai acces la comenzile de schimbare map.")
			return PLUGIN_HANDLED
		}
		return PLUGIN_CONTINUE
}

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, "c");
	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();
			}
	} 
}

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

/tmp/text676cJH.sma(55) : error 035: argument type mismatch (argument 1)
/tmp/text676cJH.sma(56) : error 035: argument type mismatch (argument 4)
/tmp/text676cJH.sma(57) : error 035: argument type mismatch (argument 1)

3 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/text676cJH.amx (compile failed).
Nu s-a aranjat bine uite ce fel imi apare https://imgur.com/H4eQPzJ


Eu l-am așezat așa, e bine.
Eu nu pun plugin-uri care nu se compilează. Cu ce compilezi?!
User avatar
paraParaschiv
Membru, skill +1
Membru, skill +1
Posts: 137
Joined: 12 Jun 2019, 18:06
Detinator Steam: Da
CS Status: PuNcT
Detinator server CS: « ESL.CSPOWER.RO »
SteamID: Stai LIN !
Fond eXtream: 0
Has thanked: 3 times
Been thanked: 2 times

12 Jun 2020, 15:02

DaNNe. wrote:
12 Jun 2020, 14:38
paraParaschiv wrote:
12 Jun 2020, 00:00
DaNNe. wrote:
11 Jun 2020, 22:59
ia vezi | Afiseaza codul
#include 		<amxmodx>

#define 		PLUGIN		"NIGHT MODE"
#define 		VERSION		"1.0"
#define 		AUTHOR		"DaNNe."
	
new bool: NIGHTMODE

public 		plugin_init() {
		register_plugin(PLUGIN, VERSION, AUTHOR)
		set_task(0.8,		"TIME",	_, _, _, "b")
		
		register_clcmd("amx_map",			"CMD_BLOCK")
		register_clcmd("amx_mapmenu", 		"CMD_BLOCK")
		register_clcmd("amx_votemap",		"CMD_BLOCK")
		register_clcmd("amx_votemapmenu",	"CMD_BLOCK")
}

public 		TIME() {
			new Time[64],		TimeLen		=	charsmax(Time)
			get_time("%H:%M:%S", Time, TimeLen)
			if(equal(Time, "22:59:59")) {
				ColorChat(0, "Server-ul trece la programul de noapte. Se schimba mapa pe!t de_dust2!n si!t mp_timelimit 0")
				set_cvar_num("mp_timelimit", 0)
				server_cmd("amx_map de_dust2")
				NIGHTMODE	=	true;
			}
			else if(equal(Time, "09:00:00")) {
				ColorChat(0, "Server-ul trece la programul de zi. Se seteaza CVAR:!t mp_timelimit 30")
				set_cvar_num("mp_timelimit", 30)
				NIGHTMODE	=	false;
			}
}

public 		CMD_BLOCK(id) {
		if(NIGHTMODE) {
			client_print(id, print_console, "NIGHTMODE este activ, nu ai acces la comenzile de schimbare map.")
			return PLUGIN_HANDLED
		}
		return PLUGIN_CONTINUE
}

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, "c");
	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();
			}
	} 
}

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

/tmp/text676cJH.sma(55) : error 035: argument type mismatch (argument 1)
/tmp/text676cJH.sma(56) : error 035: argument type mismatch (argument 4)
/tmp/text676cJH.sma(57) : error 035: argument type mismatch (argument 1)

3 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/text676cJH.amx (compile failed).
Nu s-a aranjat bine uite ce fel imi apare https://imgur.com/H4eQPzJ


Eu l-am așezat așa, e bine.
Eu nu pun plugin-uri care nu se compilează. Cu ce compilezi?!


imi faci un fisier notepad si il urci pe girlshare te rog? Mersi !
ESL.CSPOWER.RO
User avatar
EnTeR_
Membru, skill +2
Membru, skill +2
Posts: 577
Joined: 13 Sep 2014, 16:36
Detinator Steam: Da
Fond eXtream: 0
Has thanked: 3 times
Been thanked: 29 times

12 Jun 2020, 15:36

E de la forum, vezi postul lui iNdio
Discord: eyekon13
User avatar
paraParaschiv
Membru, skill +1
Membru, skill +1
Posts: 137
Joined: 12 Jun 2019, 18:06
Detinator Steam: Da
CS Status: PuNcT
Detinator server CS: « ESL.CSPOWER.RO »
SteamID: Stai LIN !
Fond eXtream: 0
Has thanked: 3 times
Been thanked: 2 times

12 Jun 2020, 23:32

DaNNe. wrote:
12 Jun 2020, 14:38
paraParaschiv wrote:
12 Jun 2020, 00:00
DaNNe. wrote:
11 Jun 2020, 22:59
ia vezi | Afiseaza codul
#include 		<amxmodx>

#define 		PLUGIN		"NIGHT MODE"
#define 		VERSION		"1.0"
#define 		AUTHOR		"DaNNe."
	
new bool: NIGHTMODE

public 		plugin_init() {
		register_plugin(PLUGIN, VERSION, AUTHOR)
		set_task(0.8,		"TIME",	_, _, _, "b")
		
		register_clcmd("amx_map",			"CMD_BLOCK")
		register_clcmd("amx_mapmenu", 		"CMD_BLOCK")
		register_clcmd("amx_votemap",		"CMD_BLOCK")
		register_clcmd("amx_votemapmenu",	"CMD_BLOCK")
}

public 		TIME() {
			new Time[64],		TimeLen		=	charsmax(Time)
			get_time("%H:%M:%S", Time, TimeLen)
			if(equal(Time, "22:59:59")) {
				ColorChat(0, "Server-ul trece la programul de noapte. Se schimba mapa pe!t de_dust2!n si!t mp_timelimit 0")
				set_cvar_num("mp_timelimit", 0)
				server_cmd("amx_map de_dust2")
				NIGHTMODE	=	true;
			}
			else if(equal(Time, "09:00:00")) {
				ColorChat(0, "Server-ul trece la programul de zi. Se seteaza CVAR:!t mp_timelimit 30")
				set_cvar_num("mp_timelimit", 30)
				NIGHTMODE	=	false;
			}
}

public 		CMD_BLOCK(id) {
		if(NIGHTMODE) {
			client_print(id, print_console, "NIGHTMODE este activ, nu ai acces la comenzile de schimbare map.")
			return PLUGIN_HANDLED
		}
		return PLUGIN_CONTINUE
}

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, "c");
	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();
			}
	} 
}

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

/tmp/text676cJH.sma(55) : error 035: argument type mismatch (argument 1)
/tmp/text676cJH.sma(56) : error 035: argument type mismatch (argument 4)
/tmp/text676cJH.sma(57) : error 035: argument type mismatch (argument 1)

3 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/text676cJH.amx (compile failed).
Nu s-a aranjat bine uite ce fel imi apare https://imgur.com/H4eQPzJ


Eu l-am așezat așa, e bine.
Eu nu pun plugin-uri care nu se compilează. Cu ce compilezi?!

am pus plugin-ul dar nu face nimic :) Dupa ora 22 se schimba orice harta si admini au acces,plugin-ul ruleaza dar nu face nimic :))) !
ESL.CSPOWER.RO
User avatar
EnTeR_
Membru, skill +2
Membru, skill +2
Posts: 577
Joined: 13 Sep 2014, 16:36
Detinator Steam: Da
Fond eXtream: 0
Has thanked: 3 times
Been thanked: 29 times

13 Jun 2020, 11:11

Vezi ca el a pus de la ora 23, plugin ul trebuie sa fie primul in lista ca sa ti blocheze comenzile de schimbare a hărții. Verifica si daca ai timpul setat corect la server.
Discord: eyekon13
User avatar
DaNNe.
Fost moderator
Fost moderator
Posts: 2811
Joined: 08 Nov 2013, 20:43
Detinator Steam: Da
CS Status: Activitate scăzută
SteamID: /id/FurienMaster
Reputatie: Nick anterior: DnD. Gold, Emrys
0.5/3
Fost moderator ajutator
Fost Membru Club eXtreamCS (doua luni)
Has thanked: 244 times
Been thanked: 129 times
Contact:

13 Jun 2020, 12:15

paraParaschiv wrote:
12 Jun 2020, 23:32
DaNNe. wrote:
12 Jun 2020, 14:38
paraParaschiv wrote:
12 Jun 2020, 00:00

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

/tmp/text676cJH.sma(55) : error 035: argument type mismatch (argument 1)
/tmp/text676cJH.sma(56) : error 035: argument type mismatch (argument 4)
/tmp/text676cJH.sma(57) : error 035: argument type mismatch (argument 1)

3 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/text676cJH.amx (compile failed).
Nu s-a aranjat bine uite ce fel imi apare https://imgur.com/H4eQPzJ
Eu l-am așezat așa, e bine.
Eu nu pun plugin-uri care nu se compilează. Cu ce compilezi?!
am pus plugin-ul dar nu face nimic :) Dupa ora 22 se schimba orice harta si admini au acces,plugin-ul ruleaza dar nu face nimic :))) !
S-ar putea sa ai dreptate, s-ar putea sa nu.
Eu am pus plugin-ul pe server imediat dupa ce l-am facut si am pus doar sa arate un mesaj la ora 21:52:20(atata era atunci ora), sa fiu sigur ca detecteaza timpul ok; si a mers.
Ai ora corecta pe server? Si trebuie pus inainte de plugin-urile care au comenzile respective(map etc.).
User avatar
paraParaschiv
Membru, skill +1
Membru, skill +1
Posts: 137
Joined: 12 Jun 2019, 18:06
Detinator Steam: Da
CS Status: PuNcT
Detinator server CS: « ESL.CSPOWER.RO »
SteamID: Stai LIN !
Fond eXtream: 0
Has thanked: 3 times
Been thanked: 2 times

13 Jun 2020, 14:21

DaNNe. wrote:
13 Jun 2020, 12:15
paraParaschiv wrote:
12 Jun 2020, 23:32
DaNNe. wrote:
12 Jun 2020, 14:38


Eu l-am așezat așa, e bine.
Eu nu pun plugin-uri care nu se compilează. Cu ce compilezi?!
am pus plugin-ul dar nu face nimic :) Dupa ora 22 se schimba orice harta si admini au acces,plugin-ul ruleaza dar nu face nimic :))) !
S-ar putea sa ai dreptate, s-ar putea sa nu.
Eu am pus plugin-ul pe server imediat dupa ce l-am facut si am pus doar sa arate un mesaj la ora 21:52:20(atata era atunci ora), sa fiu sigur ca detecteaza timpul ok; si a mers.
Ai ora corecta pe server? Si trebuie pus inainte de plugin-urile care au comenzile respective(map etc.).
l-am pus primu-l si astept ora care ai pus-o,dar mai pe scurt unde setez timp-ul si data?
ESL.CSPOWER.RO
User avatar
ForWWarD
Membru, skill +1
Membru, skill +1
Posts: 427
Joined: 25 Feb 2017, 12:29
Detinator Steam: Da
CS Status: Glumind putem spune orice chiar adevărul
Detinator server CS: NORD.GLOBALELITE.RO
SteamID: /cafeanord
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Fond eXtream: 0
Has thanked: 1 time
Been thanked: 2 times
Contact:

14 Jun 2020, 14:35

iNdio wrote:
12 Jun 2020, 03:51

Code: Select all

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, "c");
	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();
			}
	} 
}
--- >

Code: Select all

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, "c");
	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();
			}
	} 
}

Code: Select all

#include 		<amxmodx>

#define 		PLUGIN		"NIGHT MODE"
#define 		VERSION		"1.0"
#define 		AUTHOR		"DaNNe."
	
new bool: NIGHTMODE

public 		plugin_init() {
		register_plugin(PLUGIN, VERSION, AUTHOR)
		set_task(0.8,		"TIME",	_, _, _, "b")
		
		register_clcmd("amx_map",			"CMD_BLOCK")
		register_clcmd("amx_mapmenu", 		"CMD_BLOCK")
		register_clcmd("amx_votemap",		"CMD_BLOCK")
		register_clcmd("amx_votemapmenu",	"CMD_BLOCK")
}

public 		TIME() {
			new Time[64],		TimeLen		=	charsmax(Time)
			get_time("%H:%M:%S", Time, TimeLen)
			if(equal(Time, "22:59:59")) {
				ColorChat(0, "Server-ul trece la programul de noapte. Se schimba mapa pe!t de_dust2!n si!t mp_timelimit 0")
				set_cvar_num("mp_timelimit", 0)
				server_cmd("amx_map de_dust2")
				NIGHTMODE	=	true;
			}
			else if(equal(Time, "09:00:00")) {
				ColorChat(0, "Server-ul trece la programul de zi. Se seteaza CVAR:!t mp_timelimit 30")
				set_cvar_num("mp_timelimit", 30)
				NIGHTMODE	=	false;
			}
}

public 		CMD_BLOCK(id) {
		if(NIGHTMODE) {
			client_print(id, print_console, "NIGHTMODE este activ, nu ai acces la comenzile de schimbare map.")
			return PLUGIN_HANDLED
		}
		return PLUGIN_CONTINUE
}

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, "c");
	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();
			}
	} 
}
->

Code: Select all

public 		TIME() {
			new Time[64],		TimeLen		=	charsmax(Time)
			get_time("%H:%M:%S", Time, TimeLen)
			if(equal(Time, "22:59:59")) {
				ColorChat(0, "Server-ul trece la programul de noapte. Se schimba mapa pe!t de_dust2!n si!t mp_timelimit 0")
				set_cvar_num("mp_timelimit", 0)
				server_cmd("amx_map de_dust2")
				NIGHTMODE	=	true;
			}
			else if(equal(Time, "09:00:00")) {
				ColorChat(0, "Server-ul trece la programul de zi. Se seteaza CVAR:!t mp_timelimit 30")
				set_cvar_num("mp_timelimit", 30)
				NIGHTMODE	=	false;
			}
}

Acolo ai timp-ul si comenzile pe care le executa , si aici ai ce iti blocheaza
->

Code: Select all

register_clcmd("amx_map",			"CMD_BLOCK")
		register_clcmd("amx_mapmenu", 		"CMD_BLOCK")
		register_clcmd("amx_votemap",		"CMD_BLOCK")
		register_clcmd("amx_votemapmenu",	"CMD_BLOCK")
Eu iti recomand: https://forums.alliedmods.net/showthread.php?t=161095
cu urmatoarele setari:

Code: Select all

# Lines starting without " will be taken as comments!

# The format is :  "TIME" "COMMAND"




"23:59" "amx_say [NORD-Security] Intr-un minut va incepe programul de noapte, mapa urmatoare: de_dust2"
"23:59" "amx_say In timpul programului de noapte nimeni nu va avea acces la schimbarea hartilor"
"00:00" "amx_map de_dust2"
"00:01" "amx_cvar mp_timelimit 0"
"00:01" "amx_say [NORD-Security] Program de noapte 'Activ'"

"00:03" "amx_pausecfg stop adminvote" 

"00:03" "amx_pausecfg stop mapchooser" 

"00:03" "amx_pausecfg stop mapsmenu" 

  
"10:59" "amx_say [NORD-Security] Intr-un minut se va dezactiva program-ul de noapte"

"11:00" "amx_say Pana la ora 13:00 se vor juca doar hartile clasice!"

"11:10" "amx_map de_inferno"














// DARK HOURS

// WHEN IS IT NIGHT? WHICH HOURS?

// CONFIGURE IT THE WAY YOU WANT!

// AVAILABLE HOURS :  00, 01, 02, 03, ..., 09, 10, 11, 12, ..., 13, 14, 15, ..., 19, 20, 21, 22, 23  [00 <-> 23]

//

"DARK HOURS" "23, 00, 01, 02, 03, 04, 05, 06, 07, 08, 09"

,,Numai după invidia altora îți dai seama de propria ta valoare."
--> Tranzactii incheiate cu succes!
--> Teparii descoperiti de mine
Web-site: http://www.globalelite.ro/forum

Server detinut
: NORD.GLOBALELITE.RO - [IP: 188.212.100.239:27015]
Post Reply

Return to “Cereri”

  • Information