Page 1 of 1

Care stie

Posted: 23 May 2021, 21:19
by sancez
Care stie , de unde pot lua plugin-ul asta
https://prnt.sc/13bbf3z
Cand intri pe server iti apare cele 3 mesaje .

Re: Care stie

Posted: 23 May 2021, 22:49
by FizZle
sancez wrote:
23 May 2021, 21:19
Care stie , de unde pot lua plugin-ul asta
https://prnt.sc/13bbf3z
Cand intri pe server iti apare cele 3 mesaje .
https://forum.indungi.ro/files/file/169 ... e-message/

Re: Care stie

Posted: 19 Jul 2021, 15:50
by Manelist
pe alidemodders

Re: Care stie

Posted: 12 Aug 2021, 18:56
by wicK.
sall, il am eu uite aici

Code: Select all

#include <amxmodx>
#include <ColorChat>

#define p. "Welcome Message"
#define v. "1.1"
#define a. "-"
   
public client_putinserver(id)
{	
	new o, m, s;
	time(o, m, s)
	if((o >= 00 && o < 08)){
		set_task(3.0, "good_morning", id)
	}
	
	else if((o >= 08 && o < 16)){
		set_task(3.0, "good_afternoon", id)
	}
	
	else if((o >= 16 && o < 24)){
		set_task(3.0, "good_evening", id)
	}
}

public good_morning(id){
	new name[32], hostname[62], ora[10], data[32];
	get_user_name(id, name, charsmax(name));
	get_cvar_string("hostname", hostname, charsmax(hostname));
	get_time("%H:%M:%S", ora, charsmax(ora));
	get_time("%d.%m.%Y", data, charsmax(data));
	
	ColorChat(id, GREEN, "* ^1Buna dimineata, ^3%s^1! Bine ai venit pe ^4%s^1!", name, hostname);
	ColorChat(id, GREEN, "* ^1Acum este ora - ^4%s ^1- ^4%s", ora, data);
	ColorChat(id, GREEN, "* ^1Ne bucuram ca ne-ai ales serverul!");
	
	client_cmd(id, "spk scientist/goodtoseeyou");
}

public good_afternoon(id){
	new name[32], hostname[62], ora[10], data[32];
	get_user_name(id, name, charsmax(name));
	get_cvar_string("hostname", hostname, charsmax(hostname));
	get_time("%H:%M:%S", ora, charsmax(ora));
	get_time("%d.%m.%Y", data, charsmax(data));
	
	ColorChat(id, GREEN, "* ^1Buna ziua, ^3%s^1! Bine ai venit pe ^4%s^1!", name, hostname);
	ColorChat(id, GREEN, "* ^1Acum este ora - ^4%s ^1- ^4%s", ora, data);
	ColorChat(id, GREEN, "* ^1Ne bucuram ca ne-ai ales serverul!");
	
	client_cmd(id, "spk scientist/goodtoseeyou");
}

public good_evening(id){
	new name[32], hostname[62], ora[10], data[32];
	get_user_name(id, name, charsmax(name));
	get_cvar_string("hostname", hostname, charsmax(hostname));
	get_time("%H:%M:%S", ora, charsmax(ora));
	get_time("%d.%m.%Y", data, charsmax(data));
	
	ColorChat(id, GREEN, "* ^1Buna seara, ^3%s^1! Bine ai venit pe ^4%s^1!", name, hostname);
	ColorChat(id, GREEN, "* ^1Acum este ora - ^4%s ^1- ^4%s", ora, data);
	ColorChat(id, GREEN, "* ^1Ne bucuram ca ne-ai ales serverul!");
	
	client_cmd(id, "spk ^"scientist/greetings hellothere^"");
}

public plugin_init()
	register_plugin(p., v., a.);

Re: Care stie

Posted: 17 Jan 2022, 12:09
by sancez
ms , asta era