Care stie
Posted: 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://prnt.sc/13bbf3z
Cand intri pe server iti apare cele 3 mesaje .
Totul despre Counter-Strike, Resurse si Servere
https://www.extreamcs.com/forum/
https://forum.indungi.ro/files/file/169 ... e-message/sancez wrote: ↑23 May 2021, 21:19Care stie , de unde pot lua plugin-ul asta
https://prnt.sc/13bbf3z
Cand intri pe server iti apare cele 3 mesaje .
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.);