Recent Posts
None | 7 sec ago
None | 30 sec ago
Diff | 42 sec ago
Java | 56 sec ago
None | 2 min ago
None | 3 min ago
None | 3 min ago
C++ | 3 min ago
PHP | 3 min ago
None | 3 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By Anonymous on the 9th of Feb 2010 10:00:55 PM Download | Raw | Embed | Report
  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.         register_cvar("Advertise","90")
  20.         set_task(get_cvar_float("Advertise"),"advertise" , _ , _ , _ , "b")  
  21. }
  22.  
  23.  
  24.  
  25. public  sajt(id,level,cid)
  26. {
  27.         new configsdir[200]
  28.         new MOTDfile[200]
  29.        
  30.         get_configsdir(configsdir,199)
  31.         format(MOTDfile,199,"%s/motd_poruke/sajt.html",configsdir)
  32.        
  33.         show_motd(id,MOTDfile)
  34.        
  35.         return PLUGIN_HANDLED
  36. }
  37.  
  38.  
  39. public advertise()
  40. {
  41.         client_print(0,print_chat,"Kucajte /sajt da otvorite MOTD prozor.")
  42.         return PLUGIN_HANDLED
  43. }
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: