Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Feb 9th, 2010 | Syntax: C++ | Size: 0.62 KB | Hits: 29 | Expires: Never
Copy text to clipboard
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define PLUGIN "MOTD pravila"
  5. #define VERSION "1.0"
  6. #define AUTHOR "Massive Boredom"
  7.  
  8.  
  9.  
  10. public plugin_init()
  11. {
  12.         register_plugin(PLUGIN, VERSION, AUTHOR)
  13.        
  14.        
  15.         register_clcmd("say /sajt","sajt")
  16.         register_clcmd("say_team /sajt","sajt")
  17.    
  18. }
  19.  
  20.  
  21.  
  22. public  sajti(id,level,cid)
  23. {
  24.         new configsdir[200]
  25.         new MOTDfile[200]
  26.        
  27.         get_configsdir(configsdir,199)
  28.         format(MOTDfile,199,"%s/motd_poruke/sajt.html",configsdir)
  29.        
  30.         show_motd(id,MOTDfile)
  31.        
  32.         return PLUGIN_HANDLED
  33. }