Advertisement
BaSs_HaXoR

xTayTay v1 | Multiplayer | GSC | Release! SOURCE CODE

Sep 25th, 2014
606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 52.59 KB | None | 0 0
  1. //maps/mp/gametypes/_clientids.gsc
  2. //Decompiled with Red-EyeX32s GSC Decomiler
  3.  
  4.     #include maps/mp/_utility;
  5.     #include common_scripts/utility;
  6.     #include maps/mp/gametypes/_hud_util;
  7.     #include maps/mp/_utility;
  8.    
  9.  
  10. init()
  11. {
  12.     level.clientid = 0;
  13.     level thread onplayerconnect();
  14. }
  15.  
  16. onplayerconnect()
  17. {
  18.     level waittill("connecting", player);
  19.     player thread onplayerspawned();
  20.     player.clientid = level.clientid;
  21.     level.clientid++;
  22.     player.verified = 0;
  23.     player.vip = 0;
  24.     player.admin = 0;
  25.     player.cohost = 0;
  26.     player.myaccess = "";
  27. }
  28.  
  29. onplayerspawned()
  30. {
  31.     self endon("disconnect");
  32.     level endon("game_ended");
  33.     self waittill("spawned_player");
  34.     if (self ishost())
  35.     {
  36.         self freezecontrols(0);
  37.         self.verified = 1;
  38.         self.vip = 1;
  39.         self.admin = 1;
  40.         self.cohost = 1;
  41.         self.myaccess = "^1Host";
  42.         self thread buildmenu();
  43.     }
  44.     else
  45.     {
  46.         if (self.cohost == 1)
  47.         {
  48.             self.verified = 1;
  49.             self.vip = 1;
  50.             self.admin = 1;
  51.             self.cohost = 1;
  52.             self.myaccess = "^5Co-Host";
  53.             self freezecontrols(0);
  54.             self thread buildmenu();
  55.         }
  56.         else
  57.         {
  58.             if (self.admin == 1)
  59.             {
  60.                 self.verified = 1;
  61.                 self.vip = 1;
  62.                 self.admin = 1;
  63.                 self.myaccess = "^1Admin";
  64.                 self freezecontrols(0);
  65.                 self thread buildmenu();
  66.             }
  67.             else
  68.             {
  69.                 if (self.vip == 1)
  70.                 {
  71.                     self.verified = 1;
  72.                     self.vip = 1;
  73.                     self.myaccess = "^3VIP";
  74.                     self freezecontrols(0);
  75.                     self thread buildmenu();
  76.                 }
  77.                 else
  78.                 {
  79.                     if (self.verified == 1)
  80.                     {
  81.                         self.verified = 1;
  82.                         self.myaccess = "^1Verified";
  83.                         self freezecontrols(0);
  84.                         self thread buildmenu();
  85.                     }
  86.                     else
  87.                     {
  88.                         while (self.verified == 0)
  89.                         {
  90.                             self.myaccess = "";
  91.                         }
  92.                     }
  93.                 }
  94.             }
  95.         }
  96.     }
  97. }
  98.  
  99. buildmenu()
  100. {
  101.     self endon("disconnect");
  102.     self endon("death");
  103.     self.menuopen = 0;
  104.     self.menu = spawnstruct();
  105.     self initialisingmenu();
  106.     self menustructure();
  107.     self thread menudeath();
  108.     while (1)
  109.     {
  110.         if (self adsbuttonpressed() && self meleebuttonpressed() && !(self.menuopen))
  111.         {
  112.             self menuopening();
  113.             self loadmenu("AllYouNeed");
  114.         }
  115.         else
  116.         {
  117.             if (self stancebuttonpressed() && self.menuopen)
  118.             {
  119.                 self menuclosing();
  120.                 wait 1.5;
  121.             }
  122.             else
  123.             {
  124.                 if (self meleebuttonpressed() && self.menuopen)
  125.                 {
  126.                     if (isDefined(self.menu.system["MenuPrevious"][self.menu.system["MenuRoot"]]))
  127.                     {
  128.                         self.menu.system["MenuCurser"] = 0;
  129.                         self submenu(self.menu.system["MenuPrevious"][self.menu.system["MenuRoot"]]);
  130.                         wait 0.5;
  131.                     }
  132.                 }
  133.                 else
  134.                 {
  135.                     if (self actionslotonebuttonpressed() && self.menuopen)
  136.                     {
  137.                         self.menu.system["MenuCurser"] = self.menu.system["MenuCurser"] - 1;
  138.                         if (self.menu.system["MenuCurser"] < 0)
  139.                         {
  140.                             self.menu.system["MenuCurser"] = self.menu.system["MenuTexte"][self.menu.system["MenuRoot"]].size - 1;
  141.                         }
  142.                         self.menu.material["Scrollbar"] elemmovey(0.2, 60 + self.menu.system["MenuCurser"] * 15.6);
  143.                         wait 0.1;
  144.                     }
  145.                     else
  146.                     {
  147.                         if (self actionslottwobuttonpressed() && self.menuopen)
  148.                         {
  149.                             self.menu.system["MenuCurser"] = self.menu.system["MenuCurser"] + 1;
  150.                             else
  151.                             {
  152.                                 if (self.menu.system["MenuCurser"] >= self.menu.system["MenuTexte"][self.menu.system["MenuRoot"]].size)
  153.                                 {
  154.                                     self.menu.system["MenuCurser"] = 0;
  155.                                 }
  156.                                 self.menu.material["Scrollbar"] elemmovey(0.2, 60 + self.menu.system["MenuCurser"] * 15.6);
  157.                                 wait 0.1;
  158.                             }
  159.                             else
  160.                             {
  161.                                 while (self usebuttonpressed() && self.menuopen)
  162.                                 {
  163.                                     else
  164.                                     {
  165.                                         wait 0.2;
  166.                                         if (self.menu.system["MenuRoot"] == "Clients Menu")
  167.                                         {
  168.                                             self.menu.system["ClientIndex"] = self.menu.system["MenuCurser"];
  169.                                         }
  170.                                         self thread [[self.menu.system["MenuFunction"][self.menu.system["MenuRoot"]][self.menu.system["MenuCurser"]]]](self.menu.system["MenuInput"][self.menu.system["MenuRoot"]][self.menu.system["MenuCurser"]]);
  171.                                         wait 0.2;
  172.                                     }
  173.                                 }
  174.                             }
  175.                         }
  176.                     }
  177.                 }
  178.                 wait 0.05;
  179.             }
  180. }
  181.  
  182. menustructure()
  183. {
  184.     while (self.verified == 1)
  185.     {
  186.         self mainmenu("AllYouNeed", undefined);
  187.         else
  188.         {
  189.             self menuoption("AllYouNeed", 0, "Main Mods Menu", ::submenu, "Main Mods Menu");
  190.             self menuoption("AllYouNeed", 1, "Fun Menu", ::submenu, "Fun Menu");
  191.             self menuoption("AllYouNeed", 2, "Weapon Menu", ::submenu, "Weapon Menu");
  192.         }
  193.     }
  194. }
  195. }
  196. }
  197. self menuoption("AllYouNeed", 3, "Lobby Menu", ::submenu, "Lobby Menu");
  198. }
  199. while (self.vip == 1)
  200. {
  201. self menuoption("AllYouNeed", 4, "Killstreaks", ::submenu, "Killstreaks");
  202. }
  203. while (self.admin == 1)
  204. {
  205. self menuoption("AllYouNeed", 5, "Account Menu", ::submenu, "Account Menu");
  206. }
  207. while (self.cohost == 1)
  208. {
  209. self menuoption("AllYouNeed", 6, "Aimbot Menu", ::submenu, "Aimbot Menu");
  210. self menuoption("AllYouNeed", 7, "Host Menu", ::submenu, "Host Menu");
  211. else
  212. {
  213. self menuoption("AllYouNeed", 8, "Clients Menu", ::submenu, "Clients Menu");
  214. self menuoption("AllYouNeed", 9, "All Clients", ::submenu, "All Clients");
  215. }
  216. self mainmenu("Main Mods Menu", "AllYouNeed");
  217. self menuoption("Main Mods Menu", 0, "Godmode", ::dogodmode);
  218. self menuoption("Main Mods Menu", 1, "Max Ammo", ::ammo);
  219. self menuoption("Main Mods Menu", 2, "Speedx2", ::doplayerspeed);
  220. self menuoption("Main Mods Menu", 3, "Teleport Selector", ::doteleport);
  221. self menuoption("Main Mods Menu", 4, "Kill Yourself", ::selbstmord);
  222. self menuoption("Main Mods Menu", 5, "Invisible", ::invissible);
  223. self menuoption("Main Mods Menu", 6, "Pro Mode", ::promod);
  224. self mainmenu("Fun Menu", "AllYouNeed");
  225. self menuoption("Fun Menu", 0, "Teleport Gun", ::initteleportgun);
  226. self menuoption("Fun Menu", 1, "Default Weapon", ::givedefaultweapon);
  227. self menuoption("Fun Menu", 2, "CarePackageGun", ::initcarepackagegun);
  228. self menuoption("Fun Menu", 3, "Third Person", ::dothirdperson);
  229. self menuoption("Fun Menu", 4, "Call Helicopters", ::initstraferun);
  230. self menuoption("Fun Menu", 5, "Explosive Bullets", ::initexplosivebullets);
  231. else
  232. {
  233. self menuoption("Fun Menu", 6, "Dummie Function", ::dummiefunction);
  234. self menuoption("Fun Menu", 7, "Spawn Bunker", ::bunkerthread);
  235. self menuoption("Fun Menu", 8, "Spawn Kreuz", ::hakenkreuzthread);
  236. self menuoption("Fun Menu", 9, "Spawn Pavillion", ::pavillionthread);
  237. self mainmenu("Aimbot Menu", "AllYouNeed");
  238. self menuoption("Aimbot Menu", 0, "Unfair Aimbot", ::initaimbot);
  239. self menuoption("Aimbot Menu", 1, "No Scope Aimbot", ::initnsaimbot);
  240. self mainmenu("Weapon Menu", "AllYouNeed");
  241. self menuoption("Weapon Menu", 0, "Peacekeeper", ::givepeacekeeper);
  242. self menuoption("Weapon Menu", 1, "MP7", ::givemp7);
  243. self menuoption("Weapon Menu", 2, "PDW57", ::givepdw57);
  244. self menuoption("Weapon Menu", 3, "Type95", ::givetype95);
  245. self menuoption("Weapon Menu", 4, "Minigun", ::giveminigun);
  246. self menuoption("Weapon Menu", 5, "Crossbow", ::givecrossbow);
  247. self menuoption("Weapon Menu", 6, "ScarH", ::givescarh);
  248. self menuoption("Weapon Menu", 7, "Insas", ::giveinsas);
  249. self menuoption("Weapon Menu", 8, "SkorpionEvo", ::giveevoskorpion);
  250. self menuoption("Weapon Menu", 9, "Tar21", ::givetar21);
  251. self menuoption("Weapon Menu", 10, "AN-94", ::givean);
  252. self mainmenu("Lobby Menu", "AllYouNeed");
  253. self menuoption("Lobby Menu", 0, "Game End", ::endgame);
  254. self menuoption("Lobby Menu", 1, "Anti Quit", ::doantiquit);
  255. self menuoption("Lobby Menu", 2, "Unlimited Game", ::infgame);
  256. self menuoption("Lobby Menu", 3, "Lobby Speed", ::dospeed);
  257. self mainmenu("Killstreaks", "AllYouNeed");
  258. self menuoption("Killstreaks", 0, "All Streaks", ::dokillstreaks);
  259. self mainmenu("Account Menu", "AllYouNeed");
  260. self menuoption("Account Menu", 0, "Unlock Archievements", ::unlockallcheevos);
  261. self menuoption("Account Menu", 1, "Max Rank", ::maxrank);
  262. self mainmenu("Host Menu", "AllYouNeed");
  263. self menuoption("Host Menu", 0, "Menu DoHeart", ::doheart);
  264. self menuoption("Host Menu", 1, "Spawn Bot", ::spawnbot);
  265. self menuoption("Host Menu", 2, "Force Host", ::toggleforcehost);
  266. self menuoption("Host Menu", 3, "Forge Mode", ::forgeon);
  267. self menuoption("Host Menu", 4, "NoClip (Fixed)", ::togglennnnoclip);
  268. self menuoption("Host Menu", 5, "Advertise", ::advert);
  269. self menuoption("Host Menu", 6, "Swarm Bullets", ::toggleswarmgun);
  270. self menuoption("Host Menu", 7, "Warthog Bullets", ::togglevtolgun);
  271. self mainmenu("Clients Menu", "AllYouNeed");
  272. p = 0;
  273. while (p < level.players.size)
  274. {
  275. player = level.players[p];
  276. self menuoption("Clients Menu", p, "[" + player.myaccess + "^7] " + player.name + "", ::submenu, "Client Function");
  277. p++;
  278. }
  279. self thread monitorplayers();
  280. self mainmenu("Client Function", "Clients Menu");
  281. self menuoption("Client Function", 0, "Verify Player", ::verify);
  282. self menuoption("Client Function", 1, "VIP Player", ::dovip);
  283. self menuoption("Client Function", 2, "Admin Player", ::doadmin);
  284. self menuoption("Client Function", 3, "Co-Host Player", ::docohost);
  285. self menuoption("Client Function", 4, "Unverified Player", ::dounverif);
  286. self menuoption("Client Function", 5, "Frezze Player", ::freezeplayer);
  287. self menuoption("Client Function", 6, "give Godmode", ::godmodeplayer);
  288. self menuoption("Client Function", 7, "Teleport To Me", ::teleporttome);
  289. self menuoption("Client Function", 8, "Teleport Me To Player", ::teleporttoplayer);
  290. self mainmenu("All Clients", "AllYouNeed");
  291. self menuoption("All Clients", 0, "Kill All Players", ::allplayerskilled);
  292. self menuoption("All Clients", 1, "Teleport All Players", ::alltome);
  293. }
  294.  
  295. monitorplayers()
  296. {
  297.     self endon("disconnect");
  298.     p = 0;
  299.     while (p < level.players.size)
  300.     {
  301.         player = level.players[p];
  302.         self.menu.system["MenuTexte"]["Clients Menu"][p] = "[" + player.myaccess + "^7] " + player.name;
  303.         self.menu.system["MenuFunction"]["Clients Menu"][p] = ::submenu;
  304.         self.menu.system["MenuInput"]["Clients Menu"][p] = "Client Function";
  305.         wait 0.01;
  306.         p++;
  307.     }
  308.     wait 0.5;
  309. }
  310.  
  311. mainmenu(menu, return)
  312. {
  313.     self.menu.system["GetMenu"] = menu;
  314.     self.menu.system["MenuCount"] = 0;
  315.     self.menu.system["MenuPrevious"][menu] = return;
  316. }
  317.  
  318. menuoption(menu, index, texte, function, input)
  319. {
  320.     self.menu.system["MenuTexte"][menu][index] = texte;
  321.     self.menu.system["MenuFunction"][menu][index] = function;
  322.     self.menu.system["MenuInput"][menu][index] = input;
  323. }
  324.  
  325. submenu(input)
  326. {
  327.     self.menu.system["MenuCurser"] = 0;
  328.     self.menu.system["Texte"] fadeovertime(0.05);
  329.     self.menu.system["Texte"].alpha = 0;
  330.     self.menu.system["Texte"] destroy();
  331.     self.menu.system["Title"] destroy();
  332.     self thread loadmenu(input);
  333.     if (self.menu.system["MenuRoot"] == "Client Function")
  334.     {
  335.         self.menu.system["Title"] destroy();
  336.         player = level.players[self.menu.system["ClientIndex"]];
  337.         self.menu.system["Title"] = self createfontstring("default", 2);
  338.         self.menu.system["Title"] setpoint("LEFT", "TOP", 125, 30);
  339.         self.menu.system["Title"] settext("[" + player.myaccess + "^7] " + player.name);
  340.         self.menu.system["Title"].sort = 3;
  341.         self.menu.system["Title"].alpha = 1;
  342.     }
  343. }
  344.  
  345. loadmenu(menu)
  346. {
  347.     self.menu.system["MenuCurser"] = 0;
  348.     self.menu.system["MenuRoot"] = menu;
  349.     self.menu.system["Title"] = self createfontstring("default", 2);
  350.     self.menu.system["Title"] setpoint("LEFT", "TOP", 125, 30);
  351.     self.menu.system["Title"] settext(menu);
  352.     self.menu.system["Title"].sort = 3;
  353.     self.menu.system["Title"].alpha = 1;
  354.     string = "";
  355.     i = 0;
  356.     while (i < self.menu.system["MenuTexte"][menu].size)
  357.     {
  358.         string = string + self.menu.system["MenuTexte"][menu][i] + "\n";
  359.         i++;
  360.     }
  361.     self.menu.system["Texte"] = self createfontstring("default", 1.3);
  362.     self.menu.system["Texte"] setpoint("LEFT", "TOP", 125, 60);
  363.     self.menu.system["Texte"] settext(string);
  364.     self.menu.system["Texte"].sort = 3;
  365.     self.menu.system["Texte"].alpha = 1;
  366.     self.menu.material["Scrollbar"] elemmovey(0.2, 60 + self.menu.system["MenuCurser"] * 15.6);
  367. }
  368.  
  369. setmaterial(align, relative, x, y, width, height, colour, shader, sort, alpha)
  370. {
  371.     hud = newclienthudelem(self);
  372.     hud.elemtype = "icon";
  373.     hud.color = colour;
  374.     hud.alpha = alpha;
  375.     hud.sort = sort;
  376.     hud.children = [];
  377.     hud setparent(level.uiparent);
  378.     hud setshader(shader, width, height);
  379.     hud setpoint(align, relative, x, y);
  380.     return hud;
  381. }
  382.  
  383. menudeath()
  384. {
  385.     self waittill("death");
  386.     self.menu.material["Background"] destroy();
  387.     self.menu.material["Scrollbar"] destroy();
  388.     self.menu.material["BorderMiddle"] destroy();
  389.     self.menu.material["BorderLeft"] destroy();
  390.     self.menu.material["BorderRight"] destroy();
  391.     self menuclosing();
  392. }
  393.  
  394. initialisingmenu()
  395. {
  396.     self.menu.material["Background"] = self setmaterial("LEFT", "TOP", 120, 0, 200, 1000, (1, 1, 1), "black", 0, 0);
  397.     self.menu.material["Scrollbar"] = self setmaterial("LEFT", "TOP", 120, 60, 200, 15, (1, 0, 0), "white", 1, 0);
  398.     self.menu.material["BorderLeft"] = self setmaterial("LEFT", "TOP", 119, 0, 4, 1000, (1, 0, 0), "white", 1, 0);
  399.     self.menu.material["BorderRight"] = self setmaterial("LEFT", "TOP", 320, 0, 4, 1000, (1, 0, 0), "white", 1, 0);
  400. }
  401.  
  402. menuopening()
  403. {
  404.     self freezecontrols(0);
  405.     self setclientuivisibilityflag("hud_visible", 0);
  406.     self enableinvulnerability();
  407.     self.menuopen = 1;
  408.     self.menu.material["Background"] elemfade(0.5, 0.76);
  409.     self.menu.material["Scrollbar"] elemfade(0.5, 0.6);
  410.     self.menu.material["BorderMiddle"] elemfade(0.5, 0.6);
  411.     self.menu.material["BorderLeft"] elemfade(0.5, 0.6);
  412.     self.menu.material["BorderRight"] elemfade(0.5, 0.6);
  413. }
  414.  
  415. menuclosing()
  416. {
  417.     self setclientuivisibilityflag("hud_visible", 1);
  418.     self.menu.material["Background"] elemfade(0.5, 0);
  419.     self.menu.material["Scrollbar"] elemfade(0.5, 0);
  420.     self.menu.material["BorderMiddle"] elemfade(0.5, 0);
  421.     self.menu.material["BorderLeft"] elemfade(0.5, 0);
  422.     self.menu.material["BorderRight"] elemfade(0.5, 0);
  423.     self freezecontrols(0);
  424.     self disableinvulnerability();
  425.     self.menu.system["Title"] destroy();
  426.     self.menu.system["Texte"] destroy();
  427.     wait 0.05;
  428.     self.menuopen = 0;
  429. }
  430.  
  431. elemmovey(time, input)
  432. {
  433.     self moveovertime(time);
  434.     self.y = input;
  435. }
  436.  
  437. elemmovex(time, input)
  438. {
  439.     self moveovertime(time);
  440.     self.x = input;
  441. }
  442.  
  443. elemfade(time, alpha)
  444. {
  445.     self fadeovertime(time);
  446.     self.alpha = alpha;
  447. }
  448.  
  449. dounverif()
  450. {
  451.     player = level.players[self.menu.system["ClientIndex"]];
  452.     if (player ishost())
  453.     {
  454.         self iprintln("You can't ^1Un-Verify ^7the Host!");
  455.     }
  456.     else
  457.     {
  458.         player.verified = 0;
  459.         player.vip = 0;
  460.         player.admin = 0;
  461.         player.cohost = 0;
  462.         player suicide();
  463.         self iprintln(player.name + " is ^1Unverfied");
  464.     }
  465. }
  466.  
  467. unverifme()
  468. {
  469.     self.verified = 0;
  470.     self.vip = 0;
  471.     self.admin = 0;
  472.     self.cohost = 0;
  473.     self suicide();
  474. }
  475.  
  476. verify()
  477. {
  478.     player = level.players[self.menu.system["ClientIndex"]];
  479.     if (player ishost())
  480.     {
  481.         self iprintln("You can't Verify the Host!");
  482.     }
  483.     else
  484.     {
  485.         player unverifme();
  486.         player.verified = 1;
  487.         player.vip = 0;
  488.         player.admin = 0;
  489.         player.cohost = 0;
  490.         self iprintln(player.name + " is ^1Verified");
  491.     }
  492. }
  493.  
  494. dovip()
  495. {
  496.     player = level.players[self.menu.system["ClientIndex"]];
  497.     if (player ishost())
  498.     {
  499.         self iprintln("You can't Verify the Host!");
  500.     }
  501.     else
  502.     {
  503.         player unverifme();
  504.         player.verified = 1;
  505.         player.vip = 1;
  506.         player.admin = 0;
  507.         player.cohost = 0;
  508.         self iprintln(player.name + " is ^3VIP");
  509.     }
  510. }
  511.  
  512. doadmin()
  513. {
  514.     player = level.players[self.menu.system["ClientIndex"]];
  515.     if (player ishost())
  516.     {
  517.         self iprintln("You can't Verify the Host!");
  518.     }
  519.     else
  520.     {
  521.         player unverifme();
  522.         player.verified = 1;
  523.         player.vip = 1;
  524.         player.admin = 1;
  525.         player.cohost = 0;
  526.         self iprintln(player.name + " is ^1Admin");
  527.     }
  528. }
  529.  
  530. docohost()
  531. {
  532.     player = level.players[self.menu.system["ClientIndex"]];
  533.     if (player ishost())
  534.     {
  535.         self iprintln("You can't Verify the Host!");
  536.     }
  537.     else
  538.     {
  539.         while (player.cohost == 0)
  540.         {
  541.             player unverifme();
  542.             player.verified = 1;
  543.             player.vip = 1;
  544.             player.admin = 1;
  545.             player.cohost = 1;
  546.             self iprintln(player.name + " is ^5Co-Host");
  547.         }
  548.     }
  549. }
  550.  
  551. allplayerskilled()
  552. {
  553.     _a902 = level.players;
  554.     _k902 = getFirstArrayKey(_a902);
  555.     while (isDefined(_k902))
  556.     {
  557.         player = _a902[_k902];
  558.         if (player ishost())
  559.         {
  560.         }
  561.         else
  562.         {
  563.             player suicide();
  564.         }
  565.         _k902 = getNextArrayKey(_a902, _k902);
  566.     }
  567.     self iprintln("All Players: ^2Killed !");
  568. }
  569.  
  570. test()
  571. {
  572.     self iprintln("^2Have to bee addet !");
  573. }
  574.  
  575. dogodmode()
  576. {
  577.     if (self.god == 0)
  578.     {
  579.         self iprintln("Godmode: ^2ON(You Are A Noob)");
  580.         self.maxhealth = 99999999;
  581.         self.health = self.maxhealth;
  582.         while (self.health < self.maxhealth)
  583.         {
  584.             self.health = self.maxhealth;
  585.         }
  586.         self enableinvulnerability();
  587.         self.god = 1;
  588.     }
  589.     else
  590.     {
  591.         self iprintln("Godmode: ^1OFF");
  592.         self.maxhealth = 100;
  593.         self.health = self.maxhealth;
  594.         self disableinvulnerability();
  595.         self.god = 0;
  596.     }
  597. }
  598.  
  599. unlimited_ammo()
  600. {
  601.     self endon("disconnect");
  602.     self endon("death");
  603.     wait 0.1;
  604.     currentweapon = self getcurrentweapon();
  605.     if (currentweapon != "none")
  606.     {
  607.         self setweaponammoclip(currentweapon, weaponclipsize(currentweapon));
  608.         self givemaxammo(currentweapon);
  609.     }
  610.     currentoffhand = self getcurrentoffhand();
  611.     if (currentoffhand != "none")
  612.     {
  613.         self givemaxammo(currentoffhand);
  614.     }
  615. }
  616.  
  617. ammo()
  618. {
  619.     self thread unlimited_ammo();
  620.     self iprintln("Ammo: ^2ON");
  621. }
  622.  
  623. forgeon()
  624. {
  625.     if (self.forgeon == 0)
  626.     {
  627.         self thread forgemodeon();
  628.         self iprintln("^7Forge Mode ^2ON ^1- ^7Hold [{+speed_throw}] to Move Objects");
  629.         self.forgeon = 1;
  630.     }
  631.     else
  632.     {
  633.         self notify("stop_forge");
  634.         self iprintln("^7Forge Mode ^1OFF");
  635.         self.forgeon = 0;
  636.     }
  637. }
  638.  
  639. forgemodeon()
  640. {
  641.     self endon("death");
  642.     self endon("stop_forge");
  643.     while (self adsbuttonpressed())
  644.     {
  645.         trace = bullettrace(self gettagorigin("j_head"), self gettagorigin("j_head") + anglesToForward(self getplayerangles()) * 1000000, 1, self);
  646.         while (self adsbuttonpressed())
  647.         {
  648.             trace["entity"] setorigin(self gettagorigin("j_head") + anglesToForward(self getplayerangles()) * 200);
  649.             trace["entity"].origin = self gettagorigin("j_head") + anglesToForward(self getplayerangles()) * 200;
  650.             wait 0.05;
  651.         }
  652.     }
  653.     wait 0.05;
  654. }
  655.  
  656. doteleport()
  657. {
  658.     self beginlocationselection("map_mortar_selector");
  659.     self.selectinglocation = 1;
  660.     self waittill("confirm_location", location);
  661.     newlocation = bullettrace(location + (0, 0, 100000), location, 0, self)["position"];
  662.     self setorigin(newlocation);
  663.     self endlocationselection();
  664.     self.selectinglocation = undefined;
  665.     self iprintln("^2Teleportet ^7!");
  666. }
  667.  
  668. initaimbot()
  669. {
  670.     if (self.aim == 0)
  671.     {
  672.         self.aim = 1;
  673.         self iprintln("Aimbot ^2ON");
  674.         self thread aimbot();
  675.     }
  676.     else
  677.     {
  678.         self.aim = 0;
  679.         self iprintln("Aimbot ^1OFF");
  680.         self notify("stop_aimbot");
  681.     }
  682. }
  683.  
  684. aimbot()
  685. {
  686.     self endon("disconnect");
  687.     self endon("death");
  688.     self endon("stop_aimbot");
  689.     aimat = undefined;
  690.     _a902 = level.players;
  691.     _k902 = getFirstArrayKey(_a902);
  692.     while (isDefined(_k902))
  693.     {
  694.         player = _a902[_k902];
  695.         if (player == self || !(isalive(player)) || level.teambased && self.pers["team"] == player.pers["team"])
  696.         {
  697.         }
  698.         else
  699.         {
  700.             if (isDefined(aimat))
  701.             {
  702.                 if (closer(self gettagorigin("j_head"), player gettagorigin("j_head"), aimat gettagorigin("j_head")))
  703.                 {
  704.                     aimat = player;
  705.                 }
  706.             }
  707.             else
  708.             {
  709.                 aimat = player;
  710.             }
  711.         }
  712.         _k902 = getNextArrayKey(_a902, _k902);
  713.     }
  714.     if (isDefined(aimat))
  715.     {
  716.         if (self adsbuttonpressed())
  717.         {
  718.             self setplayerangles(vectorsToAngle(aimat gettagorigin("j_head") - self gettagorigin("j_head")));
  719.             if (self attackbuttonpressed())
  720.             {
  721.                 aimat thread [[level.callbackplayerdamage]](self, self, 100, 0, "MOD_HEAD_SHOT", self getcurrentweapon(), (0, 0, 0), (0, 0, 0), "head", 0, 0);
  722.             }
  723.         }
  724.     }
  725.     wait 0.01;
  726. }
  727.  
  728. doheart()
  729. {
  730.     while (!(isDefined(level.sa)))
  731.     {
  732.         level.sa = level createserverfontstring("hudbig", 3.1);
  733.         level.sa.alignx = "right";
  734.         level.sa.horzalign = "right";
  735.         level.sa.vertalign = "middle";
  736.         level.sa.x = -550;
  737.         level.sa settext("Creator: MTXRGU");
  738.         level.sa.archived = 0;
  739.         level.sa.hidewheninmenu = 1;
  740.         level.sa.glowalpha = 1;
  741.         level.sa.glowcolor = (randomint(255) / 255, randomint(255) / 255, randomint(255) / 255);
  742.         level.sa setpulsefx(40, 2000, 600);
  743.         wait 1;
  744.     }
  745.     if (level.doheart == 0)
  746.     {
  747.         self iprintln("Do Heart: ^2On");
  748.         level.doheart = 1;
  749.         level.sa.alpha = 1;
  750.         level.sa.hidewheninmenu = 1;
  751.     }
  752.     else
  753.     {
  754.         while (level.doheart == 1)
  755.         {
  756.             self iprintln("Do Heart: ^1Off");
  757.             level.sa.alpha = 0;
  758.             level.doheart = 0;
  759.             level.sa.hidewheninmenu = 0;
  760.         }
  761.     }
  762. }
  763.  
  764. initteleportgun()
  765. {
  766.     if (self.telegun == 0)
  767.     {
  768.         self.telegun = 1;
  769.         self thread teleportgun();
  770.         self iprintln("Teleport Gun: ^2ON");
  771.     }
  772.     else
  773.     {
  774.         self.telegun = 0;
  775.         self notify("stop_teleportgun");
  776.         self iprintln("Teleport Gun: ^1OFF");
  777.     }
  778. }
  779.  
  780. teleportgun()
  781. {
  782.     self endon("disconnect");
  783.     self endon("death");
  784.     self endon("stop_teleportgun");
  785.     self waittill("weapon_fired");
  786.     self setorigin(bullettrace(self gettagorigin("j_head"), self gettagorigin("j_head") + anglesToForward(self getplayerangles()) * 1000000, 0, self)["position"]);
  787. }
  788.  
  789. givepeacekeeper()
  790. {
  791.     self giveweapon("peacekeeper_mp");
  792.     self switchtoweapon("peacekeeper_mp");
  793.     self iprintln("peacekeeper_mp ^2Given");
  794. }
  795.  
  796. givemp7()
  797. {
  798.     self giveweapon("mp7_mp");
  799.     self switchtoweapon("mp7_mp");
  800.     self iprintln("mp7_mp ^2GIVEN");
  801. }
  802.  
  803. givepdw57()
  804. {
  805.     self giveweapon("pdw57_mp");
  806.     self switchtoweapon("pdw57_mp");
  807.     self iprintln("pdw57_mp ^2GIVEN");
  808. }
  809.  
  810. givetype95()
  811. {
  812.     self giveweapon("type95_mp");
  813.     self switchtoweapon("type95_mp");
  814.     self iprintln("type95_mp ^2GIVEN");
  815. }
  816.  
  817. giveminigun()
  818. {
  819.     self giveweapon("minigun_mp");
  820.     self switchtoweapon("minigun_mp");
  821.     self iprintln("minigun_mp ^2GIVEN");
  822. }
  823.  
  824. givecrossbow()
  825. {
  826.     self giveweapon("crossbow_mp");
  827.     self switchtoweapon("crossbow_mp");
  828.     self iprintln("crossbow_mp ^2GIVEN");
  829. }
  830.  
  831. givescarh()
  832. {
  833.     self giveweapon("scar_mp");
  834.     self switchtoweapon("scar_mp");
  835.     self iprintln("scar_mp ^2GIVEN");
  836. }
  837.  
  838. giveinsas()
  839. {
  840.     self giveweapon("insas_mp");
  841.     self switchtoweapon("insas_mp");
  842.     self iprintln("insas_mp ^2GIVEN");
  843. }
  844.  
  845. givetar21()
  846. {
  847.     self giveweapon("tar21_mp");
  848.     self switchtoweapon("tar21_mp");
  849.     self iprintln("tar21_mp ^2GIVEN");
  850. }
  851.  
  852. giveevoskorpion()
  853. {
  854.     self giveweapon("evoskorpion_mp");
  855.     self switchtoweapon("evoskorpion_mp");
  856.     self iprintln("evoskorpion_mp ^2GIVEN");
  857. }
  858.  
  859. givean()
  860. {
  861.     self giveweapon("an94_mp");
  862.     self switchtoweapon("an94_mp");
  863.     self iprintln("an94_mp ^2GIVEN");
  864. }
  865.  
  866. freezeplayer()
  867. {
  868.     else
  869.     {
  870.         player = level.players[self.menu.system["ClientIndex"]];
  871.         if (player ishost())
  872.         {
  873.             self iprintln("^1You cant freeze the Host!");
  874.         }
  875.         else
  876.         {
  877.             if (self.playerfreezed == 0)
  878.             {
  879.                 self.playerfreezed = 1;
  880.             }
  881.             self iprintln("You ^2froze :^7" + player.name + "");
  882.             player freezecontrols(1);
  883.         }
  884.         else
  885.         {
  886.             self.playerfreezed = 0;
  887.             self iprintln("You ^2unfroze ^7" + player.name + "");
  888.             else
  889.             {
  890.                 player freezecontrols(0);
  891.             }
  892.         }
  893. }
  894.  
  895. godmodeplayer()
  896. {
  897.     player = level.players[self.menu.system["ClientIndex"]];
  898.     if (player ishost())
  899.     {
  900.         self iprintln("^1You cant change the Health of the Host!");
  901.     }
  902.     else
  903.     {
  904.     }
  905.     if (self.godplayer == 0)
  906.     {
  907.         self.godplayer = 1;
  908.         self iprintln("^2You gave ^7" + player.name + "^2Godmode!");
  909.         player dogodmode();
  910.     }
  911.     else
  912.     {
  913.         else
  914.         {
  915.             self.godplayer = 0;
  916.             self iprintln("^1You removed Godmode from ^7" + player.name + "^1!");
  917.             player dogodmode();
  918.         }
  919.     }
  920. }
  921.  
  922. spawnbot()
  923. {
  924.     self thread maps/mp/bots/_bot::spawn_bot("autoassign");
  925.     self iprintln("Bot: ^2spawned");
  926. }
  927.  
  928. toggleforcehost()
  929. {
  930.     if (self.fh == 1)
  931.     {
  932.         setdvar("party_searchResultsMin", 9990);
  933.         setdvar("party_searchResultsLifetime", 9990);
  934.         setdvar("party_searchPauseTime", 9070);
  935.         setdvar("lobby_partySearchWaitTime", 9070);
  936.     }
  937.     setdvar("matchmaking_debug", 1);
  938.     setdvar("session_immediateDeleteTinySessions", 0);
  939.     setdvar("ping_searches_per", 0);
  940.     setdvar("party_hostmigration", 0);
  941.     setdvar("party_connectToOthers", 0);
  942.     self.fh = 0;
  943.     self iprintln("ForceHost: ^2On");
  944. }
  945. else
  946. {
  947.     setdvar("party_searchResultsMin", 0);
  948.     setdvar("party_searchResultsLifetime", 45);
  949.     setdvar("party_searchPauseTime", 0);
  950.     setdvar("lobby_partySearchWaitTime", 0);
  951.     setdvar("matchmaking_debug", 10);
  952.     setdvar("session_immediateDeleteTinySessions", 0);
  953.     setdvar("ping_searches_per", 0);
  954.     setdvar("party_hostmigration", 1);
  955.     setdvar("party_connectToOthers", 1);
  956.     self.fh = 1;
  957.     self iprintln("ForceHost: ^1OFF");
  958. }
  959. }
  960.  
  961. togglennnnoclip()
  962. {
  963.     if (self.noclip == 0)
  964.     {
  965.         self.noclip = 1;
  966.         self iprintln("NoClip ^2Enabled");
  967.         self iprintln("Press [{+frag}] to ^5Fly ^7! ");
  968.         self thread noclip();
  969.     }
  970.     else
  971.     {
  972.         self.noclip = 0;
  973.         self iprintln("NoClip ^1Disabled");
  974.         self notify("stop_noclip");
  975.         self unlink();
  976.         self enableweapons();
  977.         self.originobj delete();
  978.     }
  979. }
  980.  
  981. noclip()
  982. {
  983.     self endon("stop_noclip");
  984.     self.originobj = spawn("script_origin", self.origin, 1);
  985.     self.originobj.angles = self.angles;
  986.     self playerlinkto(self.originobj, undefined);
  987.     self disableweapons();
  988.     if (self fragbuttonpressed())
  989.     {
  990.         normalized = anglesToForward(self getplayerangles());
  991.         scaled = vectorScale(normalized, 20);
  992.         originpos = self.origin + scaled;
  993.         else
  994.         {
  995.             self.originobj.origin = originpos;
  996.         }
  997.         wait 0.05;
  998. }
  999.  
  1000. invissible()
  1001. {
  1002.     if (self.inv == 0)
  1003.     {
  1004.         self.inv = 1;
  1005.         self iprintln("You are ^2Invisible");
  1006.         self hide();
  1007.     }
  1008.     else
  1009.     {
  1010.         self.inv = 0;
  1011.         self iprintln("You are ^1Visible");
  1012.         self show();
  1013.     }
  1014. }
  1015.  
  1016. unlockallcheevos()
  1017. {
  1018.     cheevolist = strtok("SP_COMPLETE_ANGOLA,SP_COMPLETE_MONSOON,SP_COMPLETE_AFGHANISTAN,SP_COMPLETE_NICARAGUA,SP_COMPLETE_****STAN,SP_COMPLETE_KARMA,SP_COMPLETE_PANAMA,SP_COMPLETE_YEMEN,SP_COMPLETE_BLACKOUT,SP_COMPLETE_LA,SP_COMPLETE_HAITI,SP_VETERAN_PAST,SP_VETERAN_FUTURE,SP_ONE_CHALLENGE,SP_ALL_CHALLENGES_IN_LEVEL,SP_ALL_CHALLENGES_IN_GAME,SP_RTS_DOCKSIDE,SP_RTS_AFGHANISTAN,SP_RTS_DRONE,SP_RTS_CARRIER,SP_RTS_****STAN,SP_RTS_SOCOTRA,SP_STORY_MASON_LIVES,SP_STORY_HARPER_FACE,SP_STORY_FARID_DUEL,SP_STORY_OBAMA_SURVIVES,SP_STORY_LINK_CIA,SP_STORY_HARPER_LIVES,SP_STORY_MENENDEZ_CAPTURED,SP_MISC_ALL_INTEL,SP_STORY_CHLOE_LIVES,SP_STORY_99PERCENT,SP_MISC_WEAPONS,SP_BACK_TO_FUTURE,SP_MISC_10K_SCORE_ALL,MP_MISC_1,MP_MISC_2,MP_MISC_3,MP_MISC_4,MP_MISC_5,ZM_DONT_FIRE_UNTIL_YOU_SEE,ZM_THE_LIGHTS_OF_THEIR_EYES,ZM_DANCE_ON_MY_GRAVE,ZM_STANDARD_EQUIPMENT_MAY_VARY,ZM_YOU_HAVE_NO_POWER_OVER_ME,ZM_I_DONT_THINK_THEY_EXIST,ZM_FUEL_EFFICIENT,ZM_HAPPY_HOUR,ZM_TRANSIT_SIDEQUEST,ZM_UNDEAD_MANS_PARTY_BUS,ZM_DLC1_HIGHRISE_SIDEQUEST,ZM_DLC1_VERTIGONER,ZM_DLC1_I_SEE_LIVE_PEOPLE,ZM_DLC1_SLIPPERY_WHEN_UNDEAD,ZM_DLC1_FACING_THE_DRAGON,ZM_DLC1_IM_MY_OWN_BEST_FRIEND,ZM_DLC1_MAD_WITHOUT_POWER,ZM_DLC1_POLYARMORY,ZM_DLC1_SHAFTED,ZM_DLC1_MONKEY_SEE_MONKEY_DOOM,ZM_DLC2_PRISON_SIDEQUEST,ZM_DLC2_FEED_THE_BEAST,ZM_DLC2_MAKING_THE_ROUNDS,ZM_DLC2_ACID_DRIP,ZM_DLC2_FULL_LOCKDOWN,ZM_DLC2_A_BURST_OF_FLAVOR,ZM_DLC2_PARANORMAL_PROGRESS,ZM_DLC2_GG_BRIDGE,ZM_DLC2_TRAPPED_IN_TIME,ZM_DLC2_POP_GOES_THE_WEASEL,ZM_DLC3_WHEN_THE_REVOLUTION_COMES,ZM_DLC3_FSIRT_AGAINST_THE_WALL,ZM_DLC3_MAZED_AND_CONFUSED,ZM_DLC3_REVISIONIST_HISTORIAN,ZM_DLC3_AWAKEN_THE_GAZEBO,ZM_DLC3_CANDYGRAM,ZM_DLC3_DEATH_FROM_BELOW,ZM_DLC3_IM_YOUR_HUCKLEBERRY,ZM_DLC3_ECTOPLASMIC_RESIDUE,ZM_DLC3_BURIED_SIDEQUEST", ",");
  1019.     _a455 = cheevolist;
  1020.     _k455 = getFirstArrayKey(_a455);
  1021.     while (isDefined(_k455))
  1022.     {
  1023.         cheevo = _a455[_k455];
  1024.         self giveachievement(cheevo);
  1025.         wait 0.25;
  1026.         self iprintln("^2Unlock in Process");
  1027.         else
  1028.         {
  1029.             _k455 = getNextArrayKey(_a455, _k455);
  1030.         }
  1031. }
  1032.  
  1033. doplayerspeed()
  1034. {
  1035.     if (self.ps == 0)
  1036.     {
  1037.         self.ps = 1;
  1038.         self iprintln("x2 Speed: ^2ON");
  1039.         self setmovespeedscale(5);
  1040.     }
  1041.     else
  1042.     {
  1043.         self.ps = 0;
  1044.         self iprintln("x2 Speed: ^1OFF");
  1045.         self setmovespeedscale(1);
  1046.     }
  1047. }
  1048.  
  1049. givedefaultweapon()
  1050. {
  1051.     self giveweapon("defaultweapon_mp");
  1052.     self switchtoweapon("defaultweapon_mp");
  1053.     self iprintln("defaultweapon_mp ^2GIVEN");
  1054. }
  1055.  
  1056. endgame()
  1057. {
  1058.     level thread maps/mp/gametypes/_globallogic::forceend();
  1059. }
  1060.  
  1061. dothirdperson()
  1062. {
  1063.     if (self.tp == 0)
  1064.     {
  1065.         self.tp = 1;
  1066.         self iprintln("Third Person: ^2ON");
  1067.         self setclientthirdperson(1);
  1068.     }
  1069.     else
  1070.     {
  1071.         self.tp = 0;
  1072.         self iprintln("Third Person: ^1OFF");
  1073.         self setclientthirdperson(0);
  1074.     }
  1075. }
  1076.  
  1077. dokillstreaks()
  1078. {
  1079.     else
  1080.     {
  1081.         maps/mp/gametypes/_globallogic_score::_setplayermomentum(self, 9999);
  1082. }
  1083.  
  1084. teleporttome()
  1085. {
  1086.     player = level.players[self.menu.system["ClientIndex"]];
  1087.     if (player ishost())
  1088.     {
  1089.     }
  1090.     self iprintln("^1You cant teleport the Host to you!");
  1091. }
  1092. else
  1093. {
  1094.     player setorigin(self.origin);
  1095.     player iprintln("^2You have been teleported to: ^7" + player.name);
  1096. }
  1097. }
  1098.  
  1099. teleporttoplayer()
  1100. {
  1101.     player = level.players[self.menu.system["ClientIndex"]];
  1102.     if (player ishost())
  1103.     {
  1104.         self iprintln("^1You cant teleport to the Host!");
  1105.     }
  1106.     else
  1107.     {
  1108.         self setorigin(player.origin);
  1109.         self iprintln("^2You have been teleported to: ^7" + self.name);
  1110.     }
  1111. }
  1112.  
  1113. locationselector()
  1114. {
  1115.     self endon("disconnect");
  1116.     self endon("death");
  1117.     self beginlocationselection("map_mortar_selector");
  1118.     self disableoffhandweapons();
  1119.     self giveweapon("killstreak_remote_turret_mp");
  1120.     self switchtoweapon("killstreak_remote_turret_mp");
  1121.     self.selectinglocation = 1;
  1122.     self waittill("confirm_location", location);
  1123. }
  1124. newlocation = bullettrace(location + (0, 0, 100000), location, 0, self)["position"];
  1125. self endlocationselection();
  1126. self enableoffhandweapons();
  1127. self switchtoweapon(self maps/mp/_utility::getlastweapon());
  1128. self.selectinglocation = undefined;
  1129. return newlocation;
  1130. }
  1131.  
  1132. initstraferun()
  1133. {
  1134.     if (!(level.awaitingpreviousstrafe))
  1135.     {
  1136.         location = locationselector();
  1137.         else
  1138.         {
  1139.             self iprintlnbold("Strafe Run Inbound...");
  1140.             level.awaitingpreviousstrafe = 1;
  1141.             locationyaw = 180;
  1142.             flightpath1 = getflightpath(location, locationyaw, 0);
  1143.             flightpath2 = getflightpath(location, locationyaw, -620);
  1144.             flightpath3 = getflightpath(location, locationyaw, 620);
  1145.             flightpath4 = getflightpath(location, locationyaw, -1140);
  1146.             else
  1147.             {
  1148.                 flightpath5 = getflightpath(location, locationyaw, 1140);
  1149.                 level thread strafe_think(self, flightpath1);
  1150.                 wait 0.3;
  1151.                 level thread strafe_think(self, flightpath2);
  1152.                 else
  1153.                 {
  1154.                     level thread strafe_think(self, flightpath3);
  1155.                     wait 0.3;
  1156.                     level thread strafe_think(self, flightpath4);
  1157.                     level thread strafe_think(self, flightpath5);
  1158.                     wait 60;
  1159.                     level.awaitingpreviousstrafe = 0;
  1160.                 }
  1161.                 else
  1162.                 {
  1163.                     self iprintln("Wait For Previous Strafe Run To Finish Before Calling In Another One!");
  1164.                 }
  1165. }
  1166.  
  1167. strafe_think(owner, flightpath)
  1168. {
  1169.     level endon("game_ended");
  1170.     if (!(isDefined(owner)))
  1171.     {
  1172.         return;
  1173.     }
  1174.     forward = vectorsToAngle(flightpath["end"] - flightpath["start"]);
  1175.     strafeheli = spawnstrafehelicopter(owner, flightpath["start"], forward);
  1176.     strafeheli thread strafe_attack_think();
  1177.     strafeheli setyawspeed(120, 60);
  1178.     strafeheli setspeed(48, 48);
  1179.     strafeheli setvehgoalpos(flightpath["end"], 0);
  1180.     strafeheli waittill("goal");
  1181.     strafeheli setyawspeed(30, 40);
  1182.     else
  1183.     {
  1184.         strafeheli setspeed(32, 32);
  1185.         strafeheli setvehgoalpos(flightpath["start"], 0);
  1186.         wait 2;
  1187.     }
  1188.     strafeheli setyawspeed(100, 60);
  1189.     strafeheli setspeed(64, 64);
  1190.     strafeheli waittill("goal");
  1191.     self notify("chopperdone");
  1192.     strafeheli delete();
  1193. }
  1194.  
  1195. strafe_attack_think()
  1196. {
  1197.     self endon("chopperdone");
  1198.     self setvehweapon(self.defaultweapon);
  1199.     i = 0;
  1200.     while (i < level.players.size)
  1201.     {
  1202.         if (cantargetplayer(level.players[i]))
  1203.         {
  1204.             self setturrettargetent(level.players[i]);
  1205.             self fireweapon("tag_flash", level.players[i]);
  1206.         }
  1207.         i++;
  1208.     }
  1209.     wait 0.5;
  1210. }
  1211.  
  1212. spawnstrafehelicopter(owner, origin, angles)
  1213. {
  1214.     team = owner.pers["team"];
  1215.     sentrygun = spawnhelicopter(owner, origin, angles, "heli_ai_mp", "veh_t6_air_attack_heli_mp_dark");
  1216.     sentrygun.team = team;
  1217.     sentrygun.pers["team"] = team;
  1218.     sentrygun.owner = owner;
  1219.     sentrygun.currentstate = "ok";
  1220.     sentrygun setdamagestage(4);
  1221.     sentrygun.killcament = sentrygun;
  1222.     return sentrygun;
  1223. }
  1224.  
  1225. cantargetplayer(player)
  1226. {
  1227.     cantarget = 1;
  1228.     if (!(isalive(player)) || player.sessionstate != "playing")
  1229.     {
  1230.         return 0;
  1231.     }
  1232.     if (distance(player.origin, self.origin) > 5000)
  1233.     {
  1234.         return 0;
  1235.     }
  1236.     if (!(isDefined(player.pers["team"])))
  1237.     {
  1238.         return 0;
  1239.     }
  1240.     if (level.teambased && player.pers["team"] == self.team)
  1241.     {
  1242.         return 0;
  1243.     }
  1244.     if (player == self.owner)
  1245.     {
  1246.         return 0;
  1247.     }
  1248.     if (player.pers["team"] == "spectator")
  1249.     {
  1250.         return 0;
  1251.     }
  1252.     if (!(bullettracepassed(self gettagorigin("tag_origin"), player gettagorigin("j_head"), 0, self)))
  1253.     {
  1254.         return 0;
  1255.     }
  1256.     return cantarget;
  1257. }
  1258.  
  1259. getflightpath(location, locationyaw, rightoffset)
  1260. {
  1261.     location = location * (1, 1, 0);
  1262.     initialdirection = (0, locationyaw, 0);
  1263.     planehalfdistance = 12000;
  1264.     flightpath = [];
  1265.     if (isDefined(rightoffset) && rightoffset != 0)
  1266.     {
  1267.         location = location + anglesToRight(initialdirection) * rightoffset + (0, 0, randomint(300));
  1268.     }
  1269.     startpoint = location + anglesToForward(initialdirection) * -1 * planehalfdistance;
  1270.     endpoint = location + anglesToForward(initialdirection) * planehalfdistance;
  1271.     flyheight = 1500;
  1272.     if (isDefined(maps/mp/killstreaks/_airsupport::getminimumflyheight()))
  1273.     {
  1274.         flyheight = maps/mp/killstreaks/_airsupport::getminimumflyheight();
  1275.     }
  1276.     flightpath["start"] = startpoint + (0, 0, flyheight);
  1277.     flightpath["end"] = endpoint + (0, 0, flyheight);
  1278.     return flightpath;
  1279. }
  1280.  
  1281. doantiquit()
  1282. {
  1283.     self endon("disconnect");
  1284.     _a292 = level.players;
  1285.     _k292 = getFirstArrayKey(_a292);
  1286.     while (isDefined(_k292))
  1287.     {
  1288.         player = _a292[_k292];
  1289.         player maps/mp/gametypes/_globallogic_ui::closemenus();
  1290.         _k292 = getNextArrayKey(_a292, _k292);
  1291.     }
  1292.     wait 0.05;
  1293.     self iprintln("AntiQuit: ^2On");
  1294. }
  1295.  
  1296. selbstmord()
  1297. {
  1298.     self suicide();
  1299. }
  1300.  
  1301. doexplosivebullets()
  1302. {
  1303.     self endon("disconnect");
  1304.     self endon("death");
  1305.     self endon("stop_explo");
  1306.     level.remote_mortar_fx["missileExplode"] = loadfx("weapon/remote_mortar/fx_rmt_mortar_explosion");
  1307.     self waittill("weapon_fired");
  1308.     forward = self gettagorigin("j_head");
  1309.     end = vectorScale(anglesToForward(self getplayerangles()), 1000000);
  1310.     explocation = bullettrace(forward, end, 0, self)["position"];
  1311.     playfx(level.remote_mortar_fx["missileExplode"], explocation);
  1312.     radiusdamage(explocation, 500, 500, 100, self);
  1313.     wait 0.05;
  1314. }
  1315.  
  1316. initexplosivebullets()
  1317. {
  1318.     if (self.explobullets == 0)
  1319.     {
  1320.         self.explobullets = 1;
  1321.         self iprintln("Nuke Bullets ^2ON");
  1322.         self thread doexplosivebullets();
  1323.     }
  1324.     else
  1325.     {
  1326.         self.explobullets = 0;
  1327.         self iprintln("Nuke Bullets ^1OFF");
  1328.         self notify("stop_explo");
  1329.     }
  1330. }
  1331.  
  1332. infgame()
  1333. {
  1334.     if (self.ingame == 0)
  1335.     {
  1336.         self.ingame = 1;
  1337.         setdvar("scr_dom_scorelimit", 0);
  1338.         setdvar("scr_sd_numlives", 0);
  1339.         setdvar("scr_war_timelimit", 0);
  1340.         setdvar("scr_game_onlyheadshots", 0);
  1341.         setdvar("scr_war_scorelimit", 0);
  1342.         setdvar("scr_player_forcerespawn", 1);
  1343.         maps/mp/gametypes/_globallogic_utils::pausetimer();
  1344.         self iprintln("Infinity Game [^2ON^7]");
  1345.     }
  1346.     else
  1347.     {
  1348.         self maps/mp/gametypes/_globallogic_utils::resumetimer();
  1349.         self iprintln("Infinity Game [^1OFF^7]");
  1350.     }
  1351. }
  1352.  
  1353. caremaker()
  1354. {
  1355.     self endon("disconnect");
  1356.     self endon("death");
  1357.     self endon("stop_careMaker");
  1358.     self waittill("weapon_fired");
  1359.     start = self gettagorigin("tag_eye");
  1360.     end = anglesToForward(self getplayerangles()) * 1000000;
  1361.     destination = bullettrace(start, end, 1, self)["position"];
  1362.     self thread maps/mp/killstreaks/_supplydrop::dropcrate(destination, self.angles, "supplydrop_mp", self, self.team, self.killcament, undefined, undefined, undefined);
  1363.     wait 1;
  1364. }
  1365.  
  1366. initcarepackagegun()
  1367. {
  1368.     if (self.cpgun == 0)
  1369.     {
  1370.         self.cpgun = 1;
  1371.         self iprintln("Carepackage Gun: ^2ON");
  1372.         self thread caremaker();
  1373.     }
  1374.     else
  1375.     {
  1376.         self.cpgun = 0;
  1377.         self iprintln("Carepackage Gun: ^1OFF");
  1378.         self notify("stop_careMaker");
  1379.     }
  1380. }
  1381.  
  1382. alltome()
  1383. {
  1384.     self.me = self.origin;
  1385.     _a651 = level.players;
  1386.     _k651 = getFirstArrayKey(_a651);
  1387.     while (isDefined(_k651))
  1388.     {
  1389.         player = _a651[_k651];
  1390.         if (!(player ishost()))
  1391.         {
  1392.             player setorigin(self.me);
  1393.         }
  1394.         _k651 = getNextArrayKey(_a651, _k651);
  1395.     }
  1396.     self iprintln("All Players: ^2Teleported");
  1397. }
  1398.  
  1399. dospeed()
  1400. {
  1401.     self endon("disconnect");
  1402.     if (self.sm == 1)
  1403.     {
  1404.         self iprintln("^7Super Speed: ^2ON");
  1405.         setdvar("g_speed", "500");
  1406.         self.sm = 0;
  1407.     }
  1408.     else
  1409.     {
  1410.         self iprintln("^7Super Speed: ^1OFF");
  1411.         setdvar("g_speed", "200");
  1412.         self.sm = 1;
  1413.     }
  1414. }
  1415.  
  1416. maxrank()
  1417. {
  1418.     self.pers["rank"] = level.maxrank;
  1419.     self.pers["prestige"] = level.maxprestige;
  1420.     self setdstat("playerstatslist", "plevel", "StatValue", level.maxprestige);
  1421.     self setdstat("playerstatslist", "rank", "StatValue", level.maxrank);
  1422.     self setrank(level.maxrank, level.maxprestige);
  1423.     self iprintln("Max Rank: ^2Set");
  1424. }
  1425.  
  1426. dummiefunction()
  1427. {
  1428.     self iprintln(" Press This Function Again For: ^2GreatSEX");
  1429. }
  1430. }
  1431.  
  1432. wp(d, z, p)
  1433. {
  1434.     l = strtok(d, ",");
  1435.     i = 0;
  1436.     while (i < l.size)
  1437.     {
  1438.         b = spawn("script_model", self.origin + (int(l[i]), int(l[i + 1]), z), 1);
  1439.         if (!(p))
  1440.         {
  1441.             b.angles = (90, 0, 0);
  1442.         }
  1443.         b setmodel("t6_wpn_supply_drop_ally");
  1444.         i = i + 2;
  1445.     }
  1446. }
  1447.  
  1448. bunker()
  1449. {
  1450.     wp("0,0,25,0,50,0,75,0,100,0,125,0,150,0,175,0,200,0,225,0,250,0,275,0,0,30,150,30,275,30,0,60,275,60,0,90,0,120,0,150,0,180,0,210,275,210,0,240,275,240,0,270,25,270,50,270,75,270,100,270,125,270,150,270,175,270,200,270,225,270,250,270,275,270", 0, 0);
  1451.     wp("0,0,25,0,50,0,75,0,100,0,125,0,150,0,175,0,200,0,225,0,250,0,275,0,0,30,125,30,275,30,0,60,275,60,0,90,0,120,0,150,0,180,0,210,275,210,0,240,275,240,0,270,25,270,50,270,75,270,100,270,125,270,150,270,175,270,200,270,225,270,250,270,275,270", 23, 0);
  1452.     wp("0,0,25,0,50,0,75,0,200,0,225,0,250,0,275,0,0,30,100,30,275,30,0,60,275,60,0,90,0,120,0,150,0,180,0,210,275,210,0,240,275,240,0,270,25,270,50,270,75,270,200,270,225,270,250,270,275,270", 56, 0);
  1453.     wp("0,0,25,0,50,0,75,0,100,0,125,0,150,0,175,0,200,0,225,0,250,0,275,0,0,30,75,30,275,30,0,60,275,60,0,90,275,90,0,120,275,120,0,150,275,150,0,180,275,180,0,210,275,210,0,240,275,240,0,270,25,270,50,270,75,270,100,270,125,270,150,270,175,270,200,270,225,270,250,270,275,270", 85, 0);
  1454.     wp("0,0,25,0,50,0,75,0,100,0,125,0,150,0,175,0,200,0,225,0,250,0,275,0,0,30,25,30,50,30,200,30,225,30,250,30,275,30,0,60,25,60,200,60,225,60,250,60,275,60,0,90,25,90,200,90,225,90,250,90,275,90,0,120,25,120,50,120,75,120,100,120,125,120,150,120,175,120,200,120,225,120,250,120,275,120,0,150,25,150,50,150,75,150,100,150,125,150,150,150,175,150,200,150,225,150,250,150,275,150,0,180,25,180,50,180,75,180,100,180,125,180,150,180,175,180,200,180,225,180,250,180,275,180,0,210,25,210,50,210,75,210,100,210,125,210,150,210,175,210,200,210,225,210,250,210,275,210,0,240,25,240,50,240,75,240,100,240,125,240,150,240,175,240,200,240,225,240,250,240,275,240,0,270,25,270,50,270,75,270,100,270,125,270,150,270,175,270,200,270,225,270,250,270,275,270", 120, 0);
  1455.     maps/mp/gametypes/_hud_message::wp("0,0,25,0,50,0,75,0,100,0,125,0,150,0,175,0,200,0,225,0,250,0,275,0,0,30,275,30,0,60,275,60,0,90,275,90,0,120,275,120,0,150,275,150,0,180,275,180,0,210,275,210,0,240,275,240,0,270,25,270,50,270,75,270,100,270,125,270,150,270,175,270,200,270,225,270,250,270,275,270", 141, 0);
  1456.     wp("0,0,25,0,50,0,75,0,200,0,225,0,250,0,275,0,0,30,275,30,0,60,275,60,0,90,0,120,0,150,0,180,0,210,275,210,0,240,275,240,0,270,25,270,50,270,75,270,200,270,225,270,250,270,275,270", 162, 0);
  1457.     wp("0,0,25,0,50,0,75,0,200,0,225,0,250,0,275,0,0,30,275,30,0,60,275,60,0,90,0,120,0,150,0,180,0,210,275,210,0,240,275,240,0,270,25,270,50,270,75,270,200,270,225,270,250,270,275,270", 184, 0);
  1458. }
  1459.  
  1460. bunkerthread()
  1461. {
  1462.     if (self.bunkerisspawned == 0)
  1463.     {
  1464.         self.bunkerisspawned = 1;
  1465.         self iprintln("MTXRGU's Bunker: ^2Spawned");
  1466.         self thread bunker();
  1467.     }
  1468.     else
  1469.     {
  1470.         self iprintln("MTXRGU's Bunker: ^2Allready spawned");
  1471.     }
  1472. }
  1473.  
  1474. hakenkreuz()
  1475. {
  1476.     wp("75,150,100,150,125,150,150,150,175,150,200,150,225,150,250,150,275,150,300,150,325,150,475,150,325,180,475,180,325,210,475,210,325,240,475,240,325,270,475,270,325,300,475,300,100,330,125,330,150,330,175,330,200,330,225,330,250,330,275,330,300,330,325,330,350,330,375,330,400,330,425,330,450,330,475,330,100,360,325,360,100,390,325,390,100,420,325,420,100,450,325,450,100,480,325,480,350,480,375,480,400,480,425,480,450,480,475,480,500,480,525,480,550,480,575,480", 400, 0);
  1477. }
  1478.  
  1479. hakenkreuzthread()
  1480. {
  1481.     if (self.hakenkreuzisspawned == 0)
  1482.     {
  1483.         self.hakenkreuzisspawned = 1;
  1484.         self iprintln("MTXRGU's Kreuz: ^2Spawned");
  1485.         self thread hakenkreuz();
  1486.     }
  1487.     else
  1488.     {
  1489.         self iprintln("MTXRGU's Kreuz: ^2Allready spawned");
  1490.     }
  1491. }
  1492.  
  1493. pavillion()
  1494. {
  1495.     wp("0,0,25,0,400,0,425,0,0,30,425,30,0,240,425,240,0,270,25,270,400,270,425,270", 0, 0);
  1496.     wp("0,0,25,0,400,0,425,0,0,30,425,30,0,240,425,240,0,270,25,270,400,270,425,270", 23, 0);
  1497.     wp("0,0,25,0,400,0,425,0,0,30,425,30,0,240,425,240,0,270,25,270,400,270,425,270", 56, 0);
  1498.     wp("0,0,25,0,50,0,75,0,100,0,125,0,150,0,175,0,200,0,225,0,250,0,275,0,300,0,325,0,350,0,375,0,400,0,425,0,0,30,425,30,0,60,425,60,0,90,425,90,0,120,425,120,0,150,425,150,0,180,425,180,0,210,425,210,0,240,425,240,0,270,25,270,50,270,75,270,100,270,125,270,150,270,175,270,200,270,225,270,250,270,275,270,300,270,325,270,350,270,375,270,400,270,425,270", 90, 0);
  1499.     wp("0,0,25,0,50,0,75,0,100,0,125,0,150,0,175,0,200,0,225,0,250,0,275,0,300,0,325,0,350,0,375,0,400,0,425,0,0,30,25,30,50,30,75,30,100,30,125,30,150,30,175,30,200,30,225,30,250,30,275,30,300,30,325,30,350,30,375,30,400,30,425,30,0,60,25,60,50,60,75,60,100,60,125,60,150,60,175,60,200,60,225,60,250,60,275,60,300,60,325,60,350,60,375,60,400,60,425,60,0,90,25,90,50,90,75,90,100,90,125,90,150,90,175,90,200,90,225,90,250,90,275,90,300,90,325,90,350,90,375,90,400,90,425,90,0,120,25,120,50,120,75,120,100,120,125,120,150,120,175,120,200,120,225,120,250,120,275,120,300,120,325,120,350,120,375,120,400,120,425,120,0,150,25,150,50,150,75,150,100,150,125,150,150,150,175,150,200,150,225,150,250,150,275,150,300,150,325,150,350,150,375,150,400,150,425,150,0,180,25,180,50,180,75,180,100,180,125,180,150,180,175,180,200,180,225,180,250,180,275,180,300,180,325,180,350,180,375,180,400,180,425,180,0,210,25,210,50,210,75,210,100,210,125,210,150,210,175,210,200,210,225,210,250,210,275,210,300,210,325,210,350,210,375,210,400,210,425,210,0,240,25,240,50,240,75,240,100,240,125,240,150,240,175,240,200,240,225,240,250,240,275,240,300,240,325,240,350,240,375,240,400,240,425,240,0,270,25,270,50,270,75,270,100,270,125,270,150,270,175,270,200,270,225,270,250,270,275,270,300,270,325,270,350,270,375,270,400,270,425,270", 128, 0);
  1500. }
  1501.  
  1502. pavillionthread()
  1503. {
  1504.     if (self.pavillionisspawned == 0)
  1505.     {
  1506.         self.pavillionisspawned = 1;
  1507.         self iprintln("MTXRGU's Pavillion: ^2Spawned");
  1508.         self thread pavillion();
  1509.     }
  1510.     else
  1511.     {
  1512.         self iprintln("MTXRGU's Pavillion is Already Spawned");
  1513.     }
  1514. }
  1515.  
  1516. drawbar(color, width, height, align, relative, x, y)
  1517. {
  1518.     bar = createbar(color, width, height, self);
  1519.     bar setpoint(align, relative, x, y);
  1520.     bar.hidewheninmenu = 1;
  1521.     return bar;
  1522. }
  1523.  
  1524. advert()
  1525. {
  1526.     _a487 = level.players;
  1527.     _k487 = getFirstArrayKey(_a487);
  1528.     while (isDefined(_k487))
  1529.     {
  1530.         p = _a487[_k487];
  1531.         p thread displayadvert();
  1532.         _k487 = getNextArrayKey(_a487, _k487);
  1533.     }
  1534. }
  1535.  
  1536. displayadvert()
  1537. {
  1538.     self endon("disconnect");
  1539.     adverttext = createfontstring("default", 2);
  1540.     adverttext setpoint("TOP", "CENTER", 0, 0);
  1541.     adverttext settext("Welcome to ^6AllYouNeed !^7");
  1542.     wait 4;
  1543.     adverttext settext("^7Created By ^5MTXRGU");
  1544.     wait 4;
  1545.     adverttext settext("For more visit ^3--> ^2youtube.com/^2GermanModding PS^7");
  1546.     wait 6;
  1547.     adverttext settext("And also check ^3--> ^1youtube.com/^3IntentionHackers");
  1548.     wait 6;
  1549.     adverttext settext("Modding for ^2fun! ^1Not ^7for Destroying^7");
  1550.     wait 6;
  1551.     adverttext settext("^1E ^7n ^1j ^7o ^1y  ^6<3^7");
  1552.     wait 3;
  1553.     adverttext destroy();
  1554. }
  1555.  
  1556. promod()
  1557. {
  1558.     if (self.fov == 1)
  1559.     {
  1560.         setdvar("cg_fov", "90");
  1561.         self.fov = 0;
  1562.         self iprintln("Pro Mod ^2ON");
  1563.     }
  1564.     else
  1565.     {
  1566.         setdvar("cg_fov", "65");
  1567.         else
  1568.         {
  1569.             self.fov = 1;
  1570.             self iprintln("Pro Mod ^1OFF");
  1571.         }
  1572. }
  1573.  
  1574. swarmbullet()
  1575. {
  1576.     self endon("disconnect");
  1577.     self endon("stop_ok");
  1578.     self waittill("weapon_fired");
  1579.     forward = anglesToForward(self getplayerangles());
  1580.     start = self geteye();
  1581.     end = vectorScale(forward, 9999);
  1582.     magicbullet("missile_swarm_projectile_mp", start, bullettrace(start, start + end, 0, undefined)["position"], self);
  1583. }
  1584.  
  1585. toggleswarmgun()
  1586. {
  1587.     if (self.sg == 1)
  1588.     {
  1589.         self thread swarmbullet();
  1590.         self iprintln("Shooting Swarms ^2Enabled");
  1591.         self.sg = 0;
  1592.     }
  1593.     else
  1594.     {
  1595.         self notify("stop_ok");
  1596.     }
  1597.     self iprintln("Shooting Swarms ^1Disabled");
  1598.     self.sg = 1;
  1599. }
  1600. }
  1601.  
  1602. initnsaimbot()
  1603. {
  1604.     if (self.aim == 0)
  1605.     {
  1606.         self thread nsaimbot();
  1607.         self.aim = 1;
  1608.         self iprintln("No Scope Aimbot ^2Enabled");
  1609.     }
  1610.     else
  1611.     {
  1612.         self notify("aimScopeOff");
  1613.         self.aim = 0;
  1614.         self iprintln("No Scope Aimbot ^1Disbaled");
  1615.     }
  1616. }
  1617.  
  1618. nsaimbot()
  1619. {
  1620.     self endon("disconnect");
  1621.     self endon("death");
  1622.     self endon("aimScopeOff");
  1623.     aimat = undefined;
  1624.     _a846 = level.players;
  1625.     _k846 = getFirstArrayKey(_a846);
  1626.     while (isDefined(_k846))
  1627.     {
  1628.         player = _a846[_k846];
  1629.         if (player == self || !(isalive(player)) || level.teambased && self.pers["team"] == player.pers["team"])
  1630.         {
  1631.         }
  1632.         else
  1633.         {
  1634.             if (isDefined(aimat))
  1635.             {
  1636.                 if (closer(self gettagorigin("j_head"), player gettagorigin("j_head"), aimat gettagorigin("j_head")))
  1637.                 {
  1638.                     aimat = player;
  1639.                 }
  1640.             }
  1641.             else
  1642.             {
  1643.                 aimat = player;
  1644.             }
  1645.         }
  1646.         _k846 = getNextArrayKey(_a846, _k846);
  1647.     }
  1648.     if (isDefined(aimat))
  1649.     {
  1650.         if (self attackbuttonpressed())
  1651.         {
  1652.             self setplayerangles(vectorsToAngle(aimat gettagorigin("j_head") - self gettagorigin("j_head")));
  1653.             else
  1654.             {
  1655.                 if (self attackbuttonpressed())
  1656.                 {
  1657.                 }
  1658.                 aimat thread [[level.callbackplayerdamage]](self, self, 100, 0, "MOD_HEAD_SHOT", self getcurrentweapon(), (0, 0, 0), (0, 0, 0), "head", 0, 0);
  1659.             }
  1660.         }
  1661.     }
  1662.     wait 0.01;
  1663. }
  1664.  
  1665. wfired()
  1666. {
  1667.     self endon("disconnect");
  1668.     self endon("death");
  1669.     self endon("EndAutoAim");
  1670.     self waittill("weapon_fired");
  1671.     self.fire = 1;
  1672.     wait 0.04;
  1673.     self.fire = 0;
  1674. }
  1675.  
  1676. vtolbullet()
  1677. {
  1678.     self endon("disconnect");
  1679.     self endon("stop_VTOL");
  1680.     self waittill("weapon_fired");
  1681.     forward = anglesToForward(self getplayerangles());
  1682.     start = self geteye();
  1683.     end = vectorScale(forward, 9999);
  1684.     magicbullet("straferun_rockets_mp", start, bullettrace(start, start + end, 0, undefined)["position"], self);
  1685. }
  1686.  
  1687. togglevtolgun()
  1688. {
  1689.     if (self.vb == 1)
  1690.     {
  1691.         self thread vtolbullet();
  1692.         self iprintln("VTOL Rockets ^2Enabled");
  1693.         self.vb = 0;
  1694.     }
  1695.     else
  1696.     {
  1697.         self notify("stop_VTOL");
  1698.         self iprintln("VTOL Rockets ^1Disabled");
  1699.         self.vb = 1;
  1700.     }
  1701. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement