Don't like ads? PRO users don't see any ads ;-)
Guest

Swarm Mode

By: a guest on Jul 16th, 2012  |  syntax: C++  |  size: 0.74 KB  |  hits: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5.  
  6. #define PLUGIN "Escape Map Swarm Mode"
  7. #define VERSION "1.0"
  8. #define AUTHOR "Silent"
  9.  
  10. new const escape_maps[][] = {
  11.         "mapok nevei",
  12.         "asdasdasd",
  13.         "ASDASDASD"
  14. }
  15.  
  16. new bool:escape_map;
  17.  
  18. public plugin_init() {
  19.         register_plugin(PLUGIN, VERSION, AUTHOR);
  20.         checkmapname();
  21.         register_logevent("RoundHasStarted", 2, "1=Round_Start");
  22. }
  23.  
  24. public checkmapname()
  25. {
  26.         for(new i=0; i<sizeof(escape_maps); i++)
  27.         {
  28.                 new mapname[30]; get_mapname(mapname, 31);
  29.                 if(equali(mapname, escape_maps[i]))
  30.                 {
  31.                         escape_map = true;
  32.                 }
  33.                 else
  34.                 {
  35.                         escape_map = false;
  36.                 }
  37.         }
  38. }
  39.  
  40. public RoundHasStarted()
  41. {
  42.         if(escape_map)
  43.         {
  44.                 server_cmd("zp_swarm");
  45.         }
  46. }