
   #include <amxmod>
   #include <amxmisc>
   public plugin_init() {
   register_plugin("AutoExec Make","0.1","Manip")
   new execf[32]="autoexec.cfg"
   if (file_exists(execf))
       delete_file(execf)
   if (!(file_exists(execf))) {
   new maxP = get_maxplayers()
   new maxPs[32] = ""
   numtostr(maxP, maxPs, 32)
   new maxT[32] = "maxplayers "
   add(maxT,31,maxPs)
   new mapname[128]
   get_mapname( mapname, 127 )
   new maps[128] = "map "
   add(maps,127,mapname)
   write_file(execf,"fullserverinfo^r^n", 0)
   write_file(execf,"log on^r^n", 1)
   write_file(execf, maxT, 2)
   write_file(execf, "^r^n", 3)
   write_file(execf, maps, 4)
   write_file(execf, "^r^n", 5)
   }
   }
