Advertisement
FL1K3R

shuffler_free

Jan 24th, 2022 (edited)
817
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. /*
  4. SQUAD MAP RANDOMIZER 2999!
  5. */
  6. ////////////////
  7. $file_path = "LayerRotation.cfg"; // путь и название файла
  8. ////////////////
  9.  
  10. // скирмиши для поднятия онлайна (сидинг)
  11. $skirm = array("Albasrah_Skirmish_v1","Belaya_Skirmish_v1","Chora_Skirmish_v1","Fallujah_Skirmish_v1","FoolsRoad_Skirmish_v2","Gorodok_Skirmish_v1","CAF_GooseBay_Skirmish_v1",
  12. "Kamdesh_Skirmish_v1","Kohat_Skirmish_v1","Kokan_Skirmish_v1","LashkarValley_Skirmish_v1","Logar_Skirmish_v1","CAF_Manic_Skirmish_v1","CAF_Manic_Skirmish_v2","Mestia_Skirmish_v1",
  13. "Mutaha_Skirmish_v1","Narva_Skirmish_v1","Skorpo_Skirmish_v1","Sumari_Skirmish_v1","Tallil_Skirmish_v3","Yehorivka_Skirmish_v2");
  14. shuffle($skirm);
  15.  
  16. // сами карты
  17. $alba = array("Albasrah_AAS_v1","Albasrah_AAS_v2","Albasrah_Insurgency_v1","Albasrah_invasion_v1","Albasrah_invasion_v2","Albasrah_RAAS_v1","Albasrah_TC_v1","Albasrah_TC_v2","CAF_AlBasrah_Invasion_v1","CAF_AlBasrah_Invasion_v2"); shuffle($alba);
  18. $belaya = array("Belaya_AAS_v1","Belaya_AAS_v2","Belaya_Invasion_v1","Belaya_Invasion_v2","Belaya_Invasion_v3","Belaya_RAAS_v1","Belaya_RAAS_v2","Belaya_RAAS_v3","Belaya_TC_v1","CAF_Belaya_AAS_v1","CAF_Belaya_RAAS_v1","CAF_Belaya_RAAS_v2"); shuffle($belaya);
  19. $chora = array("Chora_AAS_v1","Chora_AAS_v2","Chora_Insurgency_v1","Chora_Invasion_v1","Chora_Invasion_v2","Chora_RAAS_v1","Chora_RAAS_v2","Chora_TC_v1","CAF_Chora_AAS_v1","CAF_Chora_RAAS_v1"); shuffle($chora);
  20. $fjah = array("Fallujah_AAS_v1","Fallujah_AAS_v2","Fallujah_Insurgency_v1","Fallujah_Invasion_v1","Fallujah_Invasion_v2","Fallujah_Invasion_v3","Fallujah_RAAS_v1","Fallujah_RAAS_v2","Fallujah_RAAS_v3","Fallujah_TC_v1","Fallujah_TC_v2","CAF_Fallujah_Invasion_v1","CAF_Fallujah_RAAS_v1"); shuffle($fjah);
  21. $froad = array("FoolsRoad_AAS_v1","FoolsRoad_AAS_v2","FoolsRoad_Destruction_v1","FoolsRoad_Invasion_1","FoolsRoad_RAAS_v1","FoolsRoad_RAAS_v2","FoolsRoad_RAAS_v3","FoolsRoad_TC_v1","CAF_Fools_Road_RAAS_v1"); shuffle($froad);
  22. $gor = array("Gorodok_AAS_v1","Gorodok_AAS_v2","Gorodok_Destruction_v1","Gorodok_Insurgency_v1","Gorodok_Invasion_v1","Gorodok_Invasion_v2","Gorodok_RAAS_v1","Gorodok_RAAS_v2","Gorodok_RAAS_v3","Gorodok_RAAS_v4","Gorodok_RAAS_v5","Gorodok_TC_v1","CAF_Gorodok_AAS_v1","CAF_Gorodok_Invasion_v1","CAF_Gorodok_RAAS_v1","CAF_Gorodok_RAAS_v2","CAF_Gorodok_TC_v1"); shuffle($gor);
  23. $gbay = array("CAF_GooseBay_AAS_v1","CAF_GooseBay_Invasion_v1","CAF_GooseBay_Invasion_v2","CAF_GooseBay_RAAS_v1"); shuffle($gbay);
  24. $kamdesh = array("Kamdesh_AAS_v1","Kamdesh_Insurgency_v1","Kamdesh_Insurgency_v2","Kamdesh_Invasion_v1","Kamdesh_Invasion_v2","Kamdesh_Invasion_v3","Kamdesh_RAAS_v1","Kamdesh_RAAS_v2","Kamdesh_RAAS_v3","Kamdesh_RAAS_v4","Kamdesh_TC_v1","Kamdesh_TC_v2","CAF_Kamdesh_Invasion_v1","CAF_Kamdesh_RAAS_v1","CAF_Kamdesh_TC_v1"); shuffle($kamdesh);
  25. $kohat = array("Kohat_AAS_v1","Kohat_AAS_v2","Kohat_Insurgency_v1","Kohat_Invasion_v1","Kohat_Invasion_v2","Kohat_RAAS_v1","Kohat_RAAS_v2","Kohat_RAAS_v3","Kohat_RAAS_v4","Kohat_TC_v1","CAF_Kohat_Invasion_v1","CAF_Kokan_Valley_RAAS_v1"); shuffle($kohat);
  26. $kokan = array("Kokan_AAS_v1","Kokan_Insurgency_v1","Kokan_Invasion_v1","Kokan_RAAS_v1","Kokan_RAAS_v2","Kokan_TC_v1"); shuffle($kokan);
  27. $lash = array("LashkarValley_AAS_v1","LashkarValley_AAS_v2","LashkarValley_Insurgency_v1","LashkarValley_Invasion_v1","LashkarValley_RAAS_v1","LashkarValley_TC_v1","LashkarValley_TC_v2","CAF_Lashkar_Valley_Invasion_v1","CAF_Lashkar_Valley_RAAS_v1","CAF_Lashkar_Valley_TC_v1"); shuffle($lash);
  28. $logva = array("Logar_AAS_v1","Logar_AAS_v2","Logar_Insurgency_v1","Logar_RAAS_v1","Logar_TC_v1","CAF_Logar_Valley_RAAS_v1"); shuffle($logva);
  29. $manic = array("CAF_Manic_AAS_v1","CAF_Manic_AAS_v2","CAF_Manic_Invasion_v1","CAF_Manic_Invasion_v2","CAF_Manic_RAAS_v1","CAF_Manic_RAAS_v2","CAF_Manic_RAAS_v3","CAF_Manic_RAAS_v4","CAF_Manic_TC_v2"); shuffle($manic);
  30. $mestia = array("Mestia_AAS_V1","Mestia_Invasion_V1","Mestia_Invasion_V2","Mestia_RAAS_v1","Mestia_TC_v1","CAF_Mestia_RAAS_v1"); shuffle($mestia);
  31. $mutaha = array("Mutaha_AAS_v1","Mutaha_Invasion_v1","Mutaha_RAAS_v1","Mutaha_TC_v1","Mutaha_TC_v2","CAF_Mutaha_AAS_v1","CAF_Mutaha_RAAS_v1","CAF_Mutaha_RAAS_v2"); shuffle($mutaha);
  32. $narva = array("Narva_AAS_v1","Narva_AAS_v2","Narva_AAS_v3","Narva_Destruction_v1","Narva_Invasion_v1","Narva_Invasion_v2","Narva_RAAS_v1","Narva_TC_v1","Narva_TC_v2","CAF_Narva_RAAS_v1"); shuffle($narva);
  33. $scorpo = array("Skorpo_AAS_v1","Skorpo_Invasion_v1","Skorpo_Invasion_v2","Skorpo_RAAS_v1","Skorpo_RAAS_v2","Skorpo_RAAS_v3","Skorpo_RAAS_v4","Skorpo_TC_v1","Skorpo_TC_v2","Skorpo_TC_v3","CAF_Skorpo_RAAS_v1"); shuffle($scorpo);
  34. $sumari = array("Sumari_AAS_v1","Sumari_Insurgency_v1","Sumari_Invasion_v1","Sumari_RAAS_v1","Sumari_RAAS_v2","Sumari_TC_v1","CAF_Sumari_AAS_v1"); shuffle($sumari);
  35. $talil = array("Tallil_AAS_v1","Tallil_AAS_v2","Tallil_Invasion_v1","Tallil_Invasion_v2","Tallil_Invasion_v3","Tallil_RAAS_v1","Tallil_RAAS_v2","Tallil_RAAS_v3","Tallil_RAAS_v4","Tallil_Tanks_v1","Tallil_Tanks_v2","Tallil_TC_v1","CAF_Tallil_Outskirts_RAAS_v1","CAF_Tallil_Outskirts_RAAS_v2"); shuffle($talil);
  36. $yeho = array("Yehorivka_AAS_v1","Yehorivka_AAS_v2","Yehorivka_Destruction_v1","Yehorivka_Invasion_v1","Yehorivka_Invasion_v2","Yehorivka_RAAS_v1","Yehorivka_RAAS_v2","Yehorivka_RAAS_v3","Yehorivka_RAAS_v4","Yehorivka_RAAS_v5","Yehorivka_TC_v1","Yehorivka_TC_V2","CAF_Yehorivka_Invasion_v1","CAF_Yehorivka_RAAS_v1","CAF_Yehorivka_TC_v2"); shuffle($yeho);
  37.  
  38. //
  39.  
  40. $skirms = array(); $maps = array();
  41. array_push($skirms, $skirm[0],$skirm[1],$skirm[2]);
  42. array_push($maps, $alba[0],$belaya[0],$chora[0],$fjah[0],$froad[0],$gor[0],$gbay[0],$kamdesh[0],$kohat[0],$kokan[0],$lash[0],$logva[0],$manic[0],$mestia[0],$mutaha[0],$narva[0],$scorpo[0],$sumari[0],$talil[0],$yeho[0]);
  43. shuffle($maps);
  44. file_put_contents($file_path, '');
  45. foreach($skirms as $skirm_map )
  46. {
  47.     echo $skirm_map; echo "<br/>"; // DEBUG
  48.     file_put_contents($file_path, "$skirm_map\n", FILE_APPEND);
  49. }
  50. foreach($maps as $map )
  51. {
  52.     echo $map; echo "<br/>";    // DEBUG
  53.     file_put_contents($file_path, "$map\n", FILE_APPEND);
  54. }
  55. ?>
  56.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement