Guest User

Untitled

a guest
Jun 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <colorchat>
  4.  
  5. #define PLUGIN "Server Help"
  6. #define VERSION "2.0"
  7. #define AUTHOR "blaster"
  8.  
  9.  
  10. public plugin_init() {
  11. register_plugin(PLUGIN, VERSION, AUTHOR)
  12. register_clcmd("say /help", "pomoc")
  13. register_clcmd("say_team /help", "pomoc")
  14. register_cvar("amx_adminpomoc", "1")
  15. register_cvar("amx_helplink", "")
  16. register_event("HLTV", "reklamapriulazu", "a", "1=0", "2=0")
  17. }
  18. public reklamapriulazu(id) {
  19. set_task(120.0,"poruka",id,"",0,"a")
  20. }
  21. public poruka()
  22. {
  23. ColorChat(0, GREEN, "^x04 Za informacije o dobijanju admina say^x03 /help")
  24. }
  25. public pomoc(id)
  26. {
  27. if(get_cvar_num("amx_adminpomoc") == 1)
  28. {
  29. new motd[512]
  30. get_cvar_string("amx_helplink", motd, 511)
  31. show_motd(id, motd)
  32.  
  33. return PLUGIN_HANDLED
  34. }
  35. {
  36. return PLUGIN_HANDLED
  37. }
  38. }
Add Comment
Please, Sign In to add comment