Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <ColorChat>
- #define p. "Welcome Message"
- #define v. "1.1"
- #define a. "four."
- 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 ^4CS.NUME.RO^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 ^4CS.NUME.RO^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 ^4CS.NUME.RO^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.);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement