Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <ColorChat>
  3.  
  4. #define p. "Welcome Message"
  5. #define v. "1.1"
  6. #define a. "four."
  7.  
  8. public client_putinserver(id)
  9. {
  10. new o, m, s;
  11. time(o, m, s)
  12. if((o >= 00 && o < 08)){
  13. set_task(3.0, "good_morning", id)
  14. }
  15.  
  16. else if((o >= 08 && o < 16)){
  17. set_task(3.0, "good_afternoon", id)
  18. }
  19.  
  20. else if((o >= 16 && o < 24)){
  21. set_task(3.0, "good_evening", id)
  22. }
  23. }
  24.  
  25. public good_morning(id){
  26. new name[32], hostname[62], ora[10], data[32];
  27. get_user_name(id, name, charsmax(name));
  28. get_cvar_string("hostname", hostname, charsmax(hostname));
  29. get_time("%H:%M:%S", ora, charsmax(ora));
  30. get_time("%d.%m.%Y", data, charsmax(data));
  31.  
  32. ColorChat(id, GREEN, "* ^1Buna dimineata, ^3%s^1! Bine ai venit pe ^4CS.NUME.RO^1!", name, hostname);
  33. ColorChat(id, GREEN, "* ^1Acum este ora - ^4%s ^1- ^4%s", ora, data);
  34. ColorChat(id, GREEN, "* ^1Ne bucuram ca ne-ai ales serverul!");
  35.  
  36. client_cmd(id, "spk scientist/goodtoseeyou");
  37. }
  38.  
  39. public good_afternoon(id){
  40. new name[32], hostname[62], ora[10], data[32];
  41. get_user_name(id, name, charsmax(name));
  42. get_cvar_string("hostname", hostname, charsmax(hostname));
  43. get_time("%H:%M:%S", ora, charsmax(ora));
  44. get_time("%d.%m.%Y", data, charsmax(data));
  45.  
  46. ColorChat(id, GREEN, "* ^1Buna ziua, ^3%s^1! Bine ai venit pe ^4CS.NUME.RO^1!", name, hostname);
  47. ColorChat(id, GREEN, "* ^1Acum este ora - ^4%s ^1- ^4%s", ora, data);
  48. ColorChat(id, GREEN, "* ^1Ne bucuram ca ne-ai ales serverul!");
  49.  
  50. client_cmd(id, "spk scientist/goodtoseeyou");
  51. }
  52.  
  53. public good_evening(id){
  54. new name[32], hostname[62], ora[10], data[32];
  55. get_user_name(id, name, charsmax(name));
  56. get_cvar_string("hostname", hostname, charsmax(hostname));
  57. get_time("%H:%M:%S", ora, charsmax(ora));
  58. get_time("%d.%m.%Y", data, charsmax(data));
  59.  
  60. ColorChat(id, GREEN, "* ^1Buna seara, ^3%s^1! Bine ai venit pe ^4CS.NUME.RO^1!", name, hostname);
  61. ColorChat(id, GREEN, "* ^1Acum este ora - ^4%s ^1- ^4%s", ora, data);
  62. ColorChat(id, GREEN, "* ^1Ne bucuram ca ne-ai ales serverul!");
  63.  
  64. client_cmd(id, "spk ^"scientist/greetings hellothere^"");
  65. }
  66.  
  67. public plugin_init()
  68. register_plugin(p., v., a.);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement