Guest User

UltimateMod v1.0

a guest
Dec 5th, 2014
57
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class ultimatemod extends mutator ;
  2.  
  3. var config bool bAllowRifles ;
  4. var config bool bAllowMgs ;
  5. var config bool bAllowSnipers ;
  6. var config bool bRiflesOnly ;
  7. var config bool bMgsOnly ;
  8. var config bool bSnipersonly ;
  9. var config bool bShottyOnly ;
  10. var config bool bM9Only ;
  11. var config bool bNVG ;
  12. var config bool bDefaultSettings ;
  13. var config bool bAllow203 ;
  14. var config bool bAllowRockets ;
  15.  
  16. var string sclass_name ;
  17.  
  18. event PreBeginPlay () {
  19.  
  20. Level.Game.BaseMutator.AddMutator(self);
  21. Log("This mod is property of the {=A.A.S.=} America's Army Soldiers Clan !",'LEEFFM');
  22. Log("This mod is made by {=A.A.S.=}LEEFFM",'LEEFFM');
  23. Log("THERE IS NO WARRANTY FOR THIS MOD. We do not take responsibility for any harm done by this MOD",'LEEFFM');
  24. Log("{=A.A.S.=}LEEFFM'S Ultimate Mod Is Loaded",'LEEFFM');
  25. settimer(100,true);
  26.  
  27. }
  28.  
  29. function ModifyPlayer (Pawn Other) {
  30.  
  31. local HumanController HC ;
  32. local class<SoldierClass> sclass ;
  33. local int EveryoneIsMedic ;
  34. local int Forceclass ;
  35. local int i;
  36.  
  37. HC = HumanController ( Other.PlayerReplicationInfo.GetController () ) ;
  38. EveryoneIsMedic = 1 ;
  39. Forceclass = 1 ;
  40.  
  41. HC.ClientMessage ("") ;
  42. HC.ClientMessage ("List Of Commands:> mutate clist") ;
  43. HC.NotifyAdminmessage ("List Of Commands:> mutate clist") ;
  44. HC.ClientMessage ("") ;
  45.  
  46. if (bNVG == true) {
  47.  
  48. AGP_Pawn(Other).Level.bTeam0HasNVGs = True;
  49. AGP_Pawn(Other).Level.bTeam1HasNVGs = True;
  50.  
  51. } else {
  52.  
  53. AGP_Pawn(Other).Level.bTeam0HasNVGs = False;
  54. AGP_Pawn(Other).Level.bTeam1HasNVGs = False;
  55.  
  56. }
  57.  
  58. if (bAllow203 == true) {
  59.  
  60. AGP_Pawn(Other).Level.bTeam0AllowM203Mod = true;
  61. AGP_Pawn(Other).Level.bTeam1AllowM203Mod = true;
  62.  
  63. } else {
  64.  
  65. AGP_Pawn(Other).Level.bTeam0AllowM203Mod = false;
  66. AGP_Pawn(Other).Level.bTeam1AllowM203Mod = false;
  67.  
  68. }
  69.  
  70. if (EveryoneIsMedic == 1) {
  71.  
  72. HC.PlayerReplicationInfo.bIsMedic = true;
  73.  
  74. }
  75.  
  76. if (Forceclass == 1) {
  77.  
  78. sclass_name = Forceclass_Weapon ();
  79. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  80. HC.newTeamClass (sclass) ;
  81.  
  82. if (sclass_name == "AGP_Characters.ClassBreacher") {
  83.  
  84. For(I=0;I<1;I++)
  85. {
  86. privateset("Weapon_M870_Shotgun PickupAmmoCount 200");
  87. privateset("PickupAmmo_762mm_5_Rounds AmmoAmount 200");
  88. privateset("Ammo_762mm_5_Rounds AmmoAmount 200");
  89. privateset("Ammo_762mm_5_Rounds MaxAmmo 200");
  90. }
  91. }
  92. }
  93.  
  94. }
  95.  
  96. function Mutate (string MutateString, PlayerController Sender) {
  97.  
  98. local array<string> Parts;
  99. local HumanController HC;
  100. local string Command;
  101. local string Option;
  102. local class<SoldierClass> sclass ;
  103. local int i;
  104. local int PlayerID ;
  105. local int Leader ;
  106. local int LEEFFM;
  107.  
  108. HC = HumanController(Sender);
  109. LEEFFM = 1;
  110.  
  111. Split( MutateString, " ", Parts);
  112. Command = caps(Parts[0]) ;
  113. Option = caps(Parts[1]) ;
  114.  
  115. if (bNVG == true ) {
  116.  
  117. privateset ("PlayerReplicationInfo _Group 1") ;
  118.  
  119. }
  120.  
  121. if ( (Command ~= "kill") && (Sender.PlayerReplicationInfo.bAdmin) ) {
  122.  
  123. PlayerID = int(Parts[1]);
  124.  
  125. Kill(PlayerID);
  126.  
  127. }
  128.  
  129. if ( (Command ~= "addadmin") && (Sender.PlayerReplicationInfo.bAdmin) ) {
  130.  
  131. PlayerID = int(Parts[1]);
  132. Leader = int(Parts[2]);
  133. AddAdmin(PlayerID,Leader,Sender);
  134.  
  135. }
  136.  
  137. if (Command ~= "jail") {
  138.  
  139. if (Sender.PlayerReplicationInfo.bAdmin) {
  140.  
  141. PlayerID = int(Parts[1]);
  142. Jail(PlayerID,Sender);
  143.  
  144. }
  145.  
  146. }
  147.  
  148. if (Command ~= "clist") {
  149.  
  150. if (Sender.PlayerReplicationInfo.bAdmin) {
  151.  
  152. if (Option ~= "") {
  153.  
  154. HC.ClientMessage ("") ;
  155. HC.ClientMessage ("CLIST Page 2!:> mutate clist 2") ;
  156.  
  157. if ( (bRiflesOnly == true) && (bAllowMgs == false) && (bAllowSnipers == false) ) {
  158.  
  159. HC.ClientMessage ("Classes Are: R,AK,G,GP,M,SF,AK74SU,PSO,M9") ;
  160.  
  161. }
  162.  
  163. if ( (bSnipersOnly == true) && (bAllowRifles == false) && (bAllowMgs == false) ) {
  164.  
  165. HC.ClientMessage ("Classes Are: MOS,SVD,S24,S,SPR,V,M9") ;
  166.  
  167. }
  168.  
  169. if ( (bMgsOnly == true) && (bAllowRifles == false) && (bAllowSnipers == false) ) {
  170.  
  171. HC.ClientMessage ("Classes Are: AR,RPK,M9") ;
  172.  
  173. }
  174.  
  175. if ( (bM9Only == true) && (bAllowRifles == false) && (bAllowSnipers == false) && (bAllowMgs == false) ) {
  176.  
  177. HC.ClientMessage ("Classes Are: M9") ;
  178.  
  179. }
  180.  
  181. if (bDefaultSettings == true) {
  182.  
  183. HC.ClientMessage ("Classes Are: AR,RPK,R,AK,G,GP,M,SF,AK74SU,PSO,MOS,SVD,S24,S,SPR,V,RPG,AT4,M9") ;
  184.  
  185. }
  186.  
  187. if ( (bAllowRifles == false) && (bAllowMgs == true) && (bAllowSnipers == true) && (bAllowRockets == true) ) {
  188.  
  189. HC.ClientMessage ("Classes Are: AR,RPK,MOS,SVD,S24,S,SPR,V,RPG,AT4,M9") ;
  190.  
  191. }
  192.  
  193. if ( (bAllow203 == false) && (bAllowMgs == true) && (bAllowSnipers == true) && (bAllowRockets == true) ) {
  194.  
  195. HC.ClientMessage ("Classes Are: AR,RPK,R,AK,M,SF,AK74SU,PSO,MOS,SVD,S24,S,SPR,V,RPG,AT4,M9") ;
  196.  
  197. }
  198.  
  199. if ( (bAllowMgs == false) && (bAllowRifles == true) && (bAllowSnipers == true) && (bAllowRockets == true) ) {
  200.  
  201. HC.ClientMessage ("Classes Are: R,AK,G,GP,M,SF,AK74SU,PSO,MOS,SVD,S24,S,SPR,V,RPG,AT4,M9") ;
  202.  
  203. }
  204.  
  205. if ( (bAllowSnipers == false) && (bAllowRifles == true) && (bAllowMgs == true) && (bAllowRockets == true) ) {
  206.  
  207. HC.ClientMessage ("Classes Are: AR,RPK,R,AK,G,GP,M,SF,AK74SU,PSO,RPG,AT4,M9") ;
  208.  
  209. }
  210.  
  211. if ( (bAllowRockets == false) && (bAllowSnipers == true) && (bAllowRifles == true) && (bAllowMgs == true) ) {
  212.  
  213. HC.ClientMessage ("Classes Are: AR,RPK,R,AK,G,GP,M,SF,AK74SU,PSO,MOS,SVD,S24,S,SPR,V,M9") ;
  214.  
  215. }
  216.  
  217. HC.ClientMessage ("Force self Weapon:> mutate [class]") ;
  218. HC.ClientMessage ("Force self Shotgun!:> mutate shotty") ;
  219. HC.ClientMessage ("behind View Deactivated!:> mutate firstperson") ;
  220. HC.ClientMessage ("behind View Activated!:> mutate thirdperson") ;
  221. HC.ClientMessage ("") ;
  222.  
  223.  
  224. }
  225.  
  226. if (Option ~= "2") {
  227.  
  228. HC.ClientMessage ("") ;
  229. HC.ClientMessage ("CLIST Page 3!:> mutate clist 3") ;
  230. HC.ClientMessage ("mutate allowsnipers 1|2 : 1 Allows Snipers! | 2 Snipers Not Allowed!") ;
  231. HC.ClientMessage ("mutate allowmgs 1|2 : 1 Allows Machine Guns! | 2 Machine Guns not allowed!" ) ;
  232. HC.ClientMessage ("Mutate allowrifles 1|2 : 1 Allows Rifles! | 2 Rifles Not Allowed!") ;
  233. HC.ClientMessage ("Shows Server Rules!:> mutate rules") ;
  234. HC.ClientMessage ("") ;
  235.  
  236. }
  237.  
  238. if (Option ~= "3") {
  239.  
  240. HC.ClientMessage ("") ;
  241. HC.ClientMessage ("CLIST Page 4!:> mutate clist 4") ;
  242. HC.ClientMessage ("mutate nvg 1|2 : 1 NVG Enabled! | 2 NVG Disabled!") ;
  243. HC.ClientMessage ("mutate m9only 1|2 : 1 M9 Only Activated! | 2 M9 Only Deactivated!") ;
  244. HC.ClientMessage ("mutate shottyonly 1|2 : 1 Shotty Only Activated! | 2 Shotty Only Deactivated!") ;
  245. HC.ClientMessage ("mutate snipersonly 1|2 : 1 Snipers Only Activated! | 2 Snipers Only Deactivated!") ;
  246. HC.ClientMessage ("mutate mgsonly 1|2 : 1 Machine Guns Only Activated! | 2 Machine Guns Only Deactivated!") ;
  247. HC.ClientMessage ("mutate riflessonly 1|2 : 1 Rifles Only Activated! | 2 Rifles Only Deactivated!") ;
  248. HC.ClientMessage ("") ;
  249.  
  250. }
  251.  
  252. if (Option ~= "4") {
  253.  
  254. HC.ClientMessage ("") ;
  255. HC.ClientMessage ("mutate allowrockets 1|2 : 1 Rockets Only Activated! | 2 Rockets Only Deactivated!") ;
  256. HC.ClientMessage ("Get List of PlayerID's!:> playerlist") ;
  257. HC.ClientMessage ("Kill Players Who Violate Rules!:> mutate kill [PlayerID]") ;
  258. HC.ClientMessage ("Notify Players SERVER RESTARTING!:> mutate restart") ;
  259. HC.ClientMessage ("") ;
  260.  
  261. }
  262.  
  263. }
  264.  
  265. if (!Sender.PlayerReplicationInfo.bAdmin) {
  266.  
  267. if (Option ~= "") {
  268.  
  269. HC.ClientMessage ("") ;
  270.  
  271. if ( (bRiflesOnly == true) && (bAllowMgs == false) && (bAllowSnipers == false) ) {
  272.  
  273. HC.ClientMessage ("Classes Are: R,AK,G,GP,M,SF,AK74SU,PSO,M9") ;
  274.  
  275. }
  276.  
  277. if ( (bSnipersOnly == true) && (bAllowRifles == false) && (bAllowMgs == false) ) {
  278.  
  279. HC.ClientMessage ("Classes Are: MOS,SVD,S24,S,SPR,V,M9") ;
  280.  
  281. }
  282.  
  283. if ( (bMgsOnly == true) && (bAllowRifles == false) && (bAllowSnipers == false) ) {
  284.  
  285. HC.ClientMessage ("Classes Are: AR,RPK,M9") ;
  286.  
  287. }
  288.  
  289. if ( (bM9Only == true) && (bAllowRifles == false) && (bAllowSnipers == false) && (bAllowMgs == false) ) {
  290.  
  291. HC.ClientMessage ("Classes Are: M9") ;
  292.  
  293. }
  294.  
  295. if (bDefaultSettings == true) {
  296.  
  297. HC.ClientMessage ("Classes Are: AR,RPK,R,AK,G,GP,M,SF,AK74SU,PSO,MOS,SVD,S24,S,SPR,V,RPG,AT4,M9") ;
  298.  
  299. }
  300.  
  301. if ( (bAllowRifles == false) && (bAllowMgs == true) && (bAllowSnipers == true) && (bAllowRockets == true) ) {
  302.  
  303. HC.ClientMessage ("Classes Are: AR,RPK,MOS,SVD,S24,S,SPR,V,RPG,AT4,M9") ;
  304.  
  305. }
  306.  
  307. if ( (bAllow203 == false) && (bAllowMgs == true) && (bAllowSnipers == true) && (bAllowRockets == true) ) {
  308.  
  309. HC.ClientMessage ("Classes Are: AR,RPK,R,AK,M,AK74SU,PSO,MOS,SVD,S24,S,SPR,V,RPG,AT4,M9") ;
  310.  
  311. }
  312.  
  313. if ( (bAllowMgs == false) && (bAllowRifles == true) && (bAllowSnipers == true) && (bAllowRockets == true) ) {
  314.  
  315. HC.ClientMessage ("Classes Are: R,AK,G,GP,M,SF,AK74SU,PSO,MOS,SVD,S24,S,SPR,V,RPG,AT4,M9") ;
  316.  
  317. }
  318.  
  319. if ( (bAllowSnipers == false) && (bAllowRifles == true) && (bAllowMgs == true) && (bAllowRockets == true) ) {
  320.  
  321. HC.ClientMessage ("Classes Are: AR,RPK,R,AK,G,GP,M,SF,AK74SU,PSO,RPG,AT4,M9") ;
  322.  
  323. }
  324.  
  325. if ( (bAllowRockets == false) && (bAllowSnipers == true) && (bAllowRifles == true) && (bAllowMgs == true) ) {
  326.  
  327. HC.ClientMessage ("Classes Are: AR,RPK,R,AK,G,GP,M,SF,AK74SU,PSO,MOS,SVD,S24,S,SPR,V,M9") ;
  328.  
  329. }
  330.  
  331. HC.ClientMessage ("Force self Weapon:> mutate [class]") ;
  332. HC.ClientMessage ("Force self Shotgun!:> mutate shotty") ;
  333. HC.ClientMessage ("behind View Deactivated!:> mutate firstperson") ;
  334. HC.ClientMessage ("behind View Activated!:> mutate thirdperson") ;
  335. HC.ClientMessage ("") ;
  336.  
  337. }
  338.  
  339. }
  340.  
  341. }
  342.  
  343. if (Command ~= "RULES") {
  344.  
  345. HC.ClientMessage ("") ;
  346.  
  347. if (bNVG == true) {
  348.  
  349. HC.ClientMessage ("Settings: NIGHT VISION GOGGLES ON ALL MAPS ACTIVATED!") ;
  350.  
  351. }
  352.  
  353. if (bAllowRifles == false) {
  354.  
  355. HC.ClientMessage ("Settings: RIFLES NOT ALLOWED!") ;
  356.  
  357. }
  358.  
  359. if (bAllowMgs == false) {
  360.  
  361. HC.ClientMessage ("Settings: MACHINE GUNS NOT ALLOWED") ;
  362.  
  363. }
  364.  
  365. if (bAllowSnipers == false) {
  366.  
  367. HC.ClientMessage ("Settings: SNIPERS NOT ALLOWED") ;
  368.  
  369. }
  370.  
  371. if (bAllow203 == false) {
  372.  
  373. HC.ClientMessage ("Settings: 203 WEAPONS NOT ALLOWED!") ;
  374.  
  375. }
  376.  
  377. if (bAllowRockets == false) {
  378.  
  379. HC.ClientMessage ("Settings: ROCKETS NOT ALLOWED!") ;
  380.  
  381. }
  382.  
  383. if (bRiflesOnly == true) {
  384.  
  385. HC.ClientMessage ("Settings: RIFLES ONLY ACTIVATED!") ;
  386.  
  387. }
  388.  
  389. if (bMgsOnly == true) {
  390.  
  391. HC.ClientMessage ("Settings: MACHINE GUNS ONLY ACTIVATED!") ;
  392.  
  393. }
  394.  
  395. if (bSnipersOnly == true) {
  396.  
  397. HC.ClientMessage ("Settings: SNIPERS ONLY ACTIVATED!") ;
  398.  
  399. }
  400.  
  401. if (bShottyOnly == true) {
  402.  
  403. HC.ClientMessage ("Settings: SHOTTY ONLY ACTIVATED!") ;
  404.  
  405. }
  406.  
  407. if (bM9Only == true) {
  408.  
  409. HC.ClientMessage ("Settings: M9 ONLY ACTIVATED!") ;
  410.  
  411. }
  412.  
  413. if (bDefaultSettings == true) {
  414.  
  415. HC.ClientMessage ("Settings: RESTRICTIONS OFF!") ;
  416.  
  417. }
  418.  
  419. HC.ClientMessage ("Pipeline Rules: Main Only Untill 4v4!") ;
  420. HC.ClientMessage ("Rules: No Recruting!") ;
  421. HC.ClientMessage ("Rules: Listen To Admins!") ;
  422. HC.ClientMessage ("Rules: Be Respectful!") ;
  423. HC.ClientMessage ("") ;
  424.  
  425. }
  426.  
  427. if ( (Command ~= "restart") && (Sender.PlayerReplicationInfo.bAdmin) ) {
  428.  
  429. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  430. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  431. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  432. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  433. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  434. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  435. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  436. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  437. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  438. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  439. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  440. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  441. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  442. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  443. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  444. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  445. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  446. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  447. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  448. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  449. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  450. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  451. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  452. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  453. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  454. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  455. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  456.  
  457. }
  458.  
  459. if (Command ~= "allowrifles") {
  460.  
  461. if (!Sender.PlayerReplicationInfo.bAdmin) {
  462.  
  463. HC.ClientMessage ("") ;
  464. HC.ClientMessage ("You Are Not A Server Admin!") ;
  465. HC.ClientMessage ("") ;
  466.  
  467. }
  468.  
  469. if (Sender.PlayerReplicationInfo.bAdmin) {
  470.  
  471. if (Option ~= "") {
  472.  
  473. HC.ClientMessage ("") ;
  474. HC.ClientMessage ("1 Rifles Allowed | 2 Rifles Not Allowed!:> mutate allowrifles 1|2 ") ;
  475. HC.ClientMessage ("") ;
  476.  
  477. }
  478.  
  479. if (Option ~= "1") {
  480.  
  481. if (bAllowRifles == true) {
  482.  
  483. HC.ClientMessage ("") ;
  484. HC.ClientMessage ("Rifles Are Already Allowed!") ;
  485. HC.ClientMessage ("") ;
  486.  
  487. }
  488.  
  489. if (bAllowRifles == false) {
  490.  
  491. bAllowRifles = true ;
  492. bAllow203 = true ;
  493. checkdefaultsettings () ;
  494. HC.ClientMessage ("") ;
  495. HC.ClientMessage ("Rifles Are Now Allowed!");
  496. HC.ClientMessage ("") ;
  497. HC.NotifyAdminMessage ("RIFLES ARE NOW ALLOWED!") ;
  498.  
  499. }
  500. }
  501.  
  502. if (Option ~= "2") {
  503.  
  504. if (bAllowRifles == false) {
  505.  
  506. HC.ClientMessage ("") ;
  507. HC.ClientMessage ("Rifles Are Already Not Allowed!") ;
  508. HC.ClientMessage ("") ;
  509.  
  510. }
  511.  
  512. if (bAllowRifles == true) {
  513.  
  514. bAllowRifles = false ;
  515. checkdefaultsettings () ;
  516. HC.ClientMessage ("") ;
  517. HC.ClientMessage ("Rifles Are No Longer Allowed!");
  518. HC.ClientMessage ("") ;
  519. HC.NotifyAdminMessage ("RIFLES ARE NO LONGER ALLOWED!") ;
  520.  
  521. }
  522. }
  523.  
  524. if (bAllowRifles == false) {
  525.  
  526. bDefaultSettings = false ;
  527. bAllow203 = false ;
  528.  
  529. }
  530.  
  531. }
  532.  
  533. }
  534.  
  535. if (Command ~= "allow203") {
  536.  
  537. if (!Sender.PlayerReplicationInfo.bAdmin) {
  538.  
  539. HC.ClientMessage ("") ;
  540. HC.ClientMessage ("You Are Not A Server Admin!") ;
  541. HC.ClientMessage ("") ;
  542.  
  543. }
  544.  
  545. if (Sender.PlayerReplicationInfo.bAdmin) {
  546.  
  547. if (Option ~= "") {
  548.  
  549. HC.ClientMessage ("") ;
  550. HC.ClientMessage ("1 203s Allowed | 2 203s Not Allowed!:> mutate allowrifles 1|2 ") ;
  551. HC.ClientMessage ("") ;
  552.  
  553. }
  554.  
  555. if (Option ~= "1") {
  556.  
  557. if (bAllow203 == true) {
  558.  
  559. HC.ClientMessage ("") ;
  560. HC.ClientMessage ("203s Are Already Allowed!") ;
  561. HC.ClientMessage ("") ;
  562.  
  563. }
  564.  
  565. if (bAllow203 == false) {
  566.  
  567. bAllow203 = true ;
  568. checkdefaultsettings () ;
  569. HC.ClientMessage ("") ;
  570. HC.ClientMessage ("203s Are Now Allowed!");
  571. HC.ClientMessage ("") ;
  572. HC.NotifyAdminMessage ("203S ARE NOW ALLOWED!") ;
  573.  
  574. }
  575. }
  576.  
  577. if (Option ~= "2") {
  578.  
  579. if (bAllow203 == false) {
  580.  
  581. HC.ClientMessage ("") ;
  582. HC.ClientMessage ("203s Are Already Not Allowed!") ;
  583. HC.ClientMessage ("") ;
  584.  
  585. }
  586.  
  587. if (bAllow203 == true) {
  588.  
  589. bAllow203 = false ;
  590. checkdefaultsettings () ;
  591. HC.ClientMessage ("") ;
  592. HC.ClientMessage ("203s Are No Longer Allowed!");
  593. HC.ClientMessage ("") ;
  594. HC.NotifyAdminMessage ("203S ARE NO LONGER ALLOWED!") ;
  595.  
  596. }
  597. }
  598.  
  599. if (bAllow203 == false) {
  600.  
  601. bDefaultSettings = false ;
  602.  
  603. }
  604.  
  605. }
  606.  
  607. }
  608.  
  609. if (Command ~= "allowmgs") {
  610.  
  611. if (!Sender.PlayerReplicationInfo.bAdmin) {
  612.  
  613. HC.ClientMessage ("") ;
  614. HC.ClientMessage ("You Are Not A Server Admin!") ;
  615. HC.ClientMessage ("") ;
  616.  
  617. }
  618.  
  619. if (Sender.PlayerReplicationInfo.bAdmin) {
  620.  
  621. if (Option ~= "") {
  622.  
  623. HC.ClientMessage ("") ;
  624. HC.ClientMessage ("1 Machine Guns Allowed | 2 Machine Guns Not Allowed!:> mutate allowrifles 1|2 ") ;
  625. HC.ClientMessage ("") ;
  626.  
  627. }
  628.  
  629. if (Option ~= "1") {
  630.  
  631. if (bAllowMgs == true) {
  632.  
  633. HC.ClientMessage ("") ;
  634. HC.ClientMessage ("Machine Guns Are Already Allowed!") ;
  635. HC.ClientMessage ("") ;
  636.  
  637. }
  638.  
  639. if (bAllowMgs == false) {
  640.  
  641. bAllowMgs = true ;
  642. checkdefaultsettings () ;
  643. HC.ClientMessage ("") ;
  644. HC.ClientMessage ("Machine Guns Are Now Allowed!");
  645. HC.ClientMessage ("") ;
  646. HC.NotifyAdminMessage ("MACHINE GUNS ARE NOW ALLOWED!") ;
  647.  
  648. }
  649. }
  650.  
  651. if (Option ~= "2") {
  652.  
  653. if (bAllowMgs == false) {
  654.  
  655. HC.ClientMessage ("") ;
  656. HC.ClientMessage ("Machine Guns Are Already Not Allowed!") ;
  657. HC.ClientMessage ("") ;
  658.  
  659. }
  660.  
  661. if (bAllowMgs == true) {
  662.  
  663. bAllowMgs = false ;
  664. checkdefaultsettings () ;
  665. HC.ClientMessage ("") ;
  666. HC.ClientMessage ("Machine Guns Are No Longer Allowed!");
  667. HC.ClientMessage ("") ;
  668. HC.NotifyAdminMessage ("MACHINE GUNS ARE NO LONGER ALLOWED!") ;
  669.  
  670. }
  671. }
  672.  
  673. if (bAllowMgs == false) {
  674.  
  675. bDefaultSettings = false ;
  676.  
  677. }
  678.  
  679. }
  680.  
  681. }
  682.  
  683. if (Command ~= "allowsnipers") {
  684.  
  685. if (!Sender.PlayerReplicationInfo.bAdmin) {
  686.  
  687. HC.ClientMessage ("") ;
  688. HC.ClientMessage ("You Are Not A Server Admin!") ;
  689. HC.ClientMessage ("") ;
  690.  
  691. }
  692.  
  693. if (Sender.PlayerReplicationInfo.bAdmin) {
  694.  
  695. if (Option ~= "") {
  696.  
  697. HC.ClientMessage ("") ;
  698. HC.ClientMessage ("1 Snipers Allowed | 2 Snipers Not Allowed!:> mutate allowrifles 1|2 ") ;
  699. HC.ClientMessage ("") ;
  700.  
  701. }
  702.  
  703. if (Option ~= "1") {
  704.  
  705. if (bAllowSnipers == true) {
  706.  
  707. HC.ClientMessage ("") ;
  708. HC.ClientMessage ("Snipers Are Already Allowed!") ;
  709. HC.ClientMessage ("") ;
  710.  
  711. }
  712.  
  713. if (bAllowSnipers == false) {
  714.  
  715. bAllowSnipers = true ;
  716. checkdefaultsettings () ;
  717. HC.ClientMessage ("") ;
  718. HC.ClientMessage ("Sniperss Are Now Allowed!");
  719. HC.ClientMessage ("") ;
  720. HC.NotifyAdminMessage ("SNIPERS ARE NOW ALLOWED!") ;
  721.  
  722. }
  723. }
  724.  
  725. if (Option ~= "2") {
  726.  
  727. if (bAllowSnipers == false) {
  728.  
  729. HC.ClientMessage ("") ;
  730. HC.ClientMessage ("Snipers Are Already Not Allowed!") ;
  731. HC.ClientMessage ("") ;
  732.  
  733. }
  734.  
  735. if (bAllowSnipers == true) {
  736.  
  737. bAllowSnipers = false ;
  738. checkdefaultsettings () ;
  739. HC.ClientMessage ("") ;
  740. HC.ClientMessage ("Snipers Are No Longer Allowed!");
  741. HC.ClientMessage ("") ;
  742. HC.NotifyAdminMessage ("SNIPERS ARE NO LONGER ALLOWED!") ;
  743.  
  744. }
  745. }
  746.  
  747. if (bAllowSnipers == false) {
  748.  
  749. bDefaultSettings = false ;
  750.  
  751. }
  752.  
  753. }
  754.  
  755. }
  756.  
  757. if (Command ~= "allowrockets") {
  758.  
  759. if (!Sender.PlayerReplicationInfo.bAdmin) {
  760.  
  761. HC.ClientMessage ("") ;
  762. HC.ClientMessage ("You Are Not A Server Admin!") ;
  763. HC.ClientMessage ("") ;
  764.  
  765. }
  766.  
  767. if (Sender.PlayerReplicationInfo.bAdmin) {
  768.  
  769. if (Option ~= "") {
  770.  
  771. HC.ClientMessage ("") ;
  772. HC.ClientMessage ("1 Rockets Allowed | 2 Rockets Not Allowed!:> mutate allowrifles 1|2 ") ;
  773. HC.ClientMessage ("") ;
  774.  
  775. }
  776.  
  777. if (Option ~= "1") {
  778.  
  779. if (bAllowRockets == true) {
  780.  
  781. HC.ClientMessage ("") ;
  782. HC.ClientMessage ("Rockets Are Already Allowed!") ;
  783. HC.ClientMessage ("") ;
  784.  
  785. }
  786.  
  787. if (bAllowRockets == false) {
  788.  
  789. bAllowRockets = true ;
  790. checkdefaultsettings () ;
  791. HC.ClientMessage ("") ;
  792. HC.ClientMessage ("Rockets Are Now Allowed!");
  793. HC.ClientMessage ("") ;
  794. HC.NotifyAdminMessage ("ROCKETS ARE NOW ALLOWED!") ;
  795.  
  796. }
  797. }
  798.  
  799. if (Option ~= "2") {
  800.  
  801. if (bAllowRockets == false) {
  802.  
  803. HC.ClientMessage ("") ;
  804. HC.ClientMessage ("Rockets Are Already Not Allowed!") ;
  805. HC.ClientMessage ("") ;
  806.  
  807. }
  808.  
  809. if (bAllowRockets == true) {
  810.  
  811. bAllowRockets = false ;
  812. checkdefaultsettings () ;
  813. HC.ClientMessage ("") ;
  814. HC.ClientMessage ("Rockets Are No Longer Allowed!");
  815. HC.ClientMessage ("") ;
  816. HC.NotifyAdminMessage ("ROCKETS ARE NO LONGER ALLOWED!") ;
  817.  
  818. }
  819. }
  820.  
  821. if (bAllowRockets == false) {
  822.  
  823. bDefaultSettings = false ;
  824.  
  825. }
  826.  
  827. }
  828.  
  829. }
  830.  
  831. if (Command ~= "allownvg") {
  832.  
  833. if (!Sender.PlayerReplicationInfo.bAdmin) {
  834.  
  835. HC.ClientMessage ("") ;
  836. HC.ClientMessage ("You Are Not A Server Admin!") ;
  837. HC.ClientMessage ("") ;
  838.  
  839. }
  840.  
  841. if (Sender.PlayerReplicationInfo.bAdmin) {
  842.  
  843. if (Option ~= "") {
  844.  
  845. HC.ClientMessage ("") ;
  846. HC.ClientMessage ("1 NVGs Allowed | 2 NVGs Not Allowed!:> mutate allowrifles 1|2 ") ;
  847. HC.ClientMessage ("") ;
  848.  
  849. }
  850.  
  851. if (Option ~= "1") {
  852.  
  853. if (bNVG == true) {
  854.  
  855. HC.ClientMessage ("") ;
  856. HC.ClientMessage ("NVGs Are Already Allowed!") ;
  857. HC.ClientMessage ("") ;
  858.  
  859. }
  860.  
  861. if (bNVG == false) {
  862.  
  863. bAllow203 = true ;
  864. checkdefaultsettings () ;
  865. HC.ClientMessage ("") ;
  866. HC.ClientMessage ("NVGs Are Now Allowed!");
  867. HC.ClientMessage ("") ;
  868. HC.NotifyAdminMessage ("NIGHT VISION GOGGLES ARE NOW ALLOWED!") ;
  869.  
  870. }
  871. }
  872.  
  873. if (Option ~= "2") {
  874.  
  875. if (bNVG == false) {
  876.  
  877. HC.ClientMessage ("") ;
  878. HC.ClientMessage ("NVGs Are Already Not Allowed!") ;
  879. HC.ClientMessage ("") ;
  880.  
  881. }
  882.  
  883. if (bNVG == true) {
  884.  
  885. bNVG = false ;
  886. checkdefaultsettings () ;
  887. HC.ClientMessage ("") ;
  888. HC.ClientMessage ("NVGs Are No Longer Allowed!");
  889. HC.ClientMessage ("") ;
  890. HC.NotifyAdminMessage ("NIGHT VISION GOGGLES ARE NO LONGER ALLOWED!") ;
  891.  
  892. }
  893. }
  894.  
  895. if (bNVG == false) {
  896.  
  897. bDefaultSettings = false ;
  898.  
  899. }
  900.  
  901. }
  902.  
  903. }
  904.  
  905. if (Command ~= "riflesonly") {
  906.  
  907. if (Sender.PlayerReplicationInfo.bAdmin) {
  908.  
  909. if (Option ~= "") {
  910.  
  911. HC.ClientMessage ("") ;
  912. HC.ClientMessage ("1 Rifles only on | 2 Rifles only off!:> mutate riflesonly 1|2") ;
  913. HC.ClientMessage ("") ;
  914.  
  915. }
  916.  
  917. if (Option ~= "1") {
  918.  
  919. if (bRiflesOnly == true) {
  920.  
  921. HC.ClientMessage ("") ;
  922. HC.ClientMessage ("Rifles Only Already Activated!") ;
  923. HC.ClientMessage ("") ;
  924.  
  925. } else {
  926.  
  927. bRiflesOnly= true ;
  928. HC.ClientMessage ("") ;
  929. HC.ClientMessage ("Rifles Only Activated!");
  930. HC.ClientMessage ("") ;
  931. HC.NotifyAdminMessage ("RIFLES ONLY ACTIVATED!") ;
  932.  
  933. }
  934. }
  935. if (Option ~= "2") {
  936.  
  937. if (bRiflesOnly == false) {
  938.  
  939. HC.ClientMessage ("") ;
  940. HC.ClientMessage ("Rifles Only Already Deactivated!") ;
  941. HC.ClientMessage ("") ;
  942.  
  943. } else {
  944.  
  945. bRiflesOnly = false ;
  946. turnallowstrue () ;
  947. HC.ClientMessage ("") ;
  948. HC.ClientMessage ("Rifles Only Deactivated!");
  949. HC.ClientMessage ("") ;
  950. HC.NotifyAdminMessage ("RIFLES ONLY DEACTIVATED!") ;
  951.  
  952. }
  953.  
  954. }
  955.  
  956. if (bRiflesOnly == true) {
  957.  
  958. turnonlysfalse () ;
  959. turnallowsfalse () ;
  960. bDefaultSettings = false ;
  961. bRiflesOnly = true ;
  962. bAllowRifles = true ;
  963.  
  964. }
  965.  
  966. }
  967.  
  968. if (!Sender.PlayerReplicationInfo.bAdmin) {
  969.  
  970. HC.ClientMessage ("") ;
  971. HC.ClientMessage ("You Are Not An Admin!") ;
  972. HC.ClientMessage ("") ;
  973.  
  974. }
  975.  
  976. }
  977.  
  978. if (Command ~= "mgsonly") {
  979.  
  980. if (Sender.PlayerReplicationInfo.bAdmin) {
  981.  
  982. if (Option ~= "") {
  983.  
  984. HC.ClientMessage ("") ;
  985. HC.ClientMessage ("1 Machine Guns only on | 2 Machine Guns only off!:> mutate riflesonly 1|2") ;
  986. HC.ClientMessage ("") ;
  987.  
  988. }
  989.  
  990. if (Option ~= "1") {
  991.  
  992. if (bMgsOnly == true) {
  993.  
  994. HC.ClientMessage ("") ;
  995. HC.ClientMessage ("Machine Guns Only Already Activated!") ;
  996. HC.ClientMessage ("") ;
  997.  
  998. } else {
  999.  
  1000. bMgsOnly= true ;
  1001. HC.ClientMessage ("") ;
  1002. HC.ClientMessage ("Machine Guns Only Activated!");
  1003. HC.ClientMessage ("") ;
  1004. HC.NotifyAdminMessage ("MACHINE GUNS ONLY ACTIVATED!") ;
  1005.  
  1006. }
  1007. }
  1008. if (Option ~= "2") {
  1009.  
  1010. if (bMgsOnly == false) {
  1011.  
  1012. HC.ClientMessage ("") ;
  1013. HC.ClientMessage ("Machine Guns Only Already Deactivated!") ;
  1014. HC.ClientMessage ("") ;
  1015.  
  1016. } else {
  1017.  
  1018. bMgsOnly = false ;
  1019. turnallowstrue () ;
  1020. HC.ClientMessage ("") ;
  1021. HC.ClientMessage ("Machine Guns Only Deactivated!");
  1022. HC.ClientMessage ("") ;
  1023. HC.NotifyAdminMessage ("MACHINE GUNS ONLY DEACTIVATED!") ;
  1024.  
  1025. }
  1026.  
  1027. }
  1028.  
  1029. if (bMgsOnly == true) {
  1030.  
  1031. turnonlysfalse () ;
  1032. turnallowsfalse () ;
  1033. bDefaultSettings = false ;
  1034. bMgsOnly = true ;
  1035. bAllowMgs = true ;
  1036.  
  1037. }
  1038.  
  1039. }
  1040.  
  1041. if (!Sender.PlayerReplicationInfo.bAdmin) {
  1042.  
  1043. HC.ClientMessage ("") ;
  1044. HC.ClientMessage ("You Are Not An Admin!") ;
  1045. HC.ClientMessage ("") ;
  1046.  
  1047. }
  1048.  
  1049. }
  1050.  
  1051. if (Command ~= "sniperssonly") {
  1052.  
  1053. if (Sender.PlayerReplicationInfo.bAdmin) {
  1054.  
  1055. if (Option ~= "") {
  1056.  
  1057. HC.ClientMessage ("") ;
  1058. HC.ClientMessage ("1 Snipers only on | 2 Snipers only off!:> mutate riflesonly 1|2") ;
  1059. HC.ClientMessage ("") ;
  1060.  
  1061. }
  1062.  
  1063. if (Option ~= "1") {
  1064.  
  1065. if (bSnipersOnly == true) {
  1066.  
  1067. HC.ClientMessage ("") ;
  1068. HC.ClientMessage ("Snipers Only Already Activated!") ;
  1069. HC.ClientMessage ("") ;
  1070.  
  1071. } else {
  1072.  
  1073. bSnipersOnly= true ;
  1074. HC.ClientMessage ("") ;
  1075. HC.ClientMessage ("Snipers Only Activated!");
  1076. HC.ClientMessage ("") ;
  1077. HC.NotifyAdminMessage ("SNIPERS ONLY ACTIVATED!") ;
  1078.  
  1079. }
  1080. }
  1081. if (Option ~= "2") {
  1082.  
  1083. if (bSnipersOnly == false) {
  1084.  
  1085. HC.ClientMessage ("") ;
  1086. HC.ClientMessage ("Snipers Only Already Deactivated!") ;
  1087. HC.ClientMessage ("") ;
  1088.  
  1089. } else {
  1090.  
  1091. bSnipersOnly = false ;
  1092. turnallowstrue () ;
  1093. HC.ClientMessage ("") ;
  1094. HC.ClientMessage ("Snipers Only Deactivated!");
  1095. HC.ClientMessage ("") ;
  1096. HC.NotifyAdminMessage ("SNIPERS ONLY DEACTIVATED!") ;
  1097.  
  1098. }
  1099.  
  1100. }
  1101.  
  1102. if (bSnipersOnly == true) {
  1103.  
  1104. turnonlysfalse () ;
  1105. turnallowsfalse () ;
  1106. bDefaultSettings = false ;
  1107. bSnipersOnly = true ;
  1108. bAllowSnipers = true ;
  1109.  
  1110. }
  1111.  
  1112. }
  1113.  
  1114. if (!Sender.PlayerReplicationInfo.bAdmin) {
  1115.  
  1116. HC.ClientMessage ("") ;
  1117. HC.ClientMessage ("You Are Not An Admin!") ;
  1118. HC.ClientMessage ("") ;
  1119.  
  1120. }
  1121.  
  1122. }
  1123.  
  1124. if (Command ~= "shottyonly") {
  1125.  
  1126. if (Sender.PlayerReplicationInfo.bAdmin) {
  1127.  
  1128. if (Option ~= "") {
  1129.  
  1130. HC.ClientMessage ("") ;
  1131. HC.ClientMessage ("1 Shotgun only on | 2 Shotgun only off!:> mutate riflesonly 1|2") ;
  1132. HC.ClientMessage ("") ;
  1133.  
  1134. }
  1135.  
  1136. if (Option ~= "1") {
  1137.  
  1138. if (bShottyOnly == true) {
  1139.  
  1140. HC.ClientMessage ("") ;
  1141. HC.ClientMessage ("Shotty Only Already Activated!") ;
  1142. HC.ClientMessage ("") ;
  1143.  
  1144. } else {
  1145.  
  1146. bShottyOnly= true ;
  1147. HC.ClientMessage ("") ;
  1148. HC.ClientMessage ("Shotty Only Activated!");
  1149. HC.ClientMessage ("") ;
  1150. HC.NotifyAdminMessage ("SHOTTY ONLY ACTIVATED!") ;
  1151.  
  1152. }
  1153. }
  1154. if (Option ~= "2") {
  1155.  
  1156. if (bShottyOnly == false) {
  1157.  
  1158. HC.ClientMessage ("") ;
  1159. HC.ClientMessage ("Shotty Only Already Deactivated!") ;
  1160. HC.ClientMessage ("") ;
  1161.  
  1162. } else {
  1163.  
  1164. bShottyOnly = false ;
  1165. turnallowstrue () ;
  1166. HC.ClientMessage ("") ;
  1167. HC.ClientMessage ("Shotty Only Deactivated!");
  1168. HC.ClientMessage ("") ;
  1169. HC.NotifyAdminMessage ("SHOTTY ONLY DEACTIVATED!") ;
  1170.  
  1171. }
  1172.  
  1173. }
  1174.  
  1175. if (bShottyOnly == true) {
  1176.  
  1177. turnonlysfalse () ;
  1178. turnallowsfalse () ;
  1179. bDefaultSettings = false ;
  1180. bShottyOnly = true ;
  1181.  
  1182. }
  1183.  
  1184. }
  1185.  
  1186. if (!Sender.PlayerReplicationInfo.bAdmin) {
  1187.  
  1188. HC.ClientMessage ("") ;
  1189. HC.ClientMessage ("You Are Not An Admin!") ;
  1190. HC.ClientMessage ("") ;
  1191.  
  1192. }
  1193.  
  1194. }
  1195.  
  1196. if (Command ~= "M9only") {
  1197.  
  1198. if (Sender.PlayerReplicationInfo.bAdmin) {
  1199.  
  1200. if (Option ~= "") {
  1201.  
  1202. HC.ClientMessage ("") ;
  1203. HC.ClientMessage ("1 M9 only on | 2 Rifles only off!:> mutate riflesonly 1|2") ;
  1204. HC.ClientMessage ("") ;
  1205.  
  1206. }
  1207.  
  1208. if (Option ~= "1") {
  1209.  
  1210. if (bM9Only == true) {
  1211.  
  1212. HC.ClientMessage ("") ;
  1213. HC.ClientMessage ("M9 Only Already Activated!") ;
  1214. HC.ClientMessage ("") ;
  1215.  
  1216. } else {
  1217.  
  1218. bM9Only= true ;
  1219. HC.ClientMessage ("") ;
  1220. HC.ClientMessage ("M9 Only Activated!");
  1221. HC.ClientMessage ("") ;
  1222. HC.NotifyAdminMessage ("M9 ONLY ACTIVATED!") ;
  1223.  
  1224. }
  1225. }
  1226. if (Option ~= "2") {
  1227.  
  1228. if (bM9Only == false) {
  1229.  
  1230. HC.ClientMessage ("") ;
  1231. HC.ClientMessage ("M9 Only Already Deactivated!") ;
  1232. HC.ClientMessage ("") ;
  1233.  
  1234. } else {
  1235.  
  1236. bM9Only = false ;
  1237. turnallowstrue () ;
  1238. HC.ClientMessage ("") ;
  1239. HC.ClientMessage ("M9 Only Deactivated!");
  1240. HC.ClientMessage ("") ;
  1241. HC.NotifyAdminMessage ("M9 ONLY DEACTIVATED!") ;
  1242.  
  1243. }
  1244.  
  1245. }
  1246.  
  1247. if (bM9Only == true) {
  1248.  
  1249. turnonlysfalse () ;
  1250. turnallowsfalse () ;
  1251. bDefaultSettings = false ;
  1252. bM9Only = true ;
  1253.  
  1254. }
  1255.  
  1256. }
  1257.  
  1258. if (!Sender.PlayerReplicationInfo.bAdmin) {
  1259.  
  1260. HC.ClientMessage ("") ;
  1261. HC.ClientMessage ("You Are Not An Admin!") ;
  1262. HC.ClientMessage ("") ;
  1263.  
  1264. }
  1265.  
  1266. }
  1267.  
  1268. if (Command ~= "ThirdPerson") {
  1269.  
  1270. if (HC.Pawn == none) {
  1271.  
  1272. HC.ClientMessage ("") ;
  1273. HC.ClientMessage ("You Have To Be Alive To Activate ThirdPerson!") ;
  1274. HC.ClientMessage ("") ;
  1275.  
  1276. }
  1277.  
  1278. if (HC.Pawn != none) {
  1279.  
  1280. if (HC.bBehindView == true) {
  1281.  
  1282. HC.ClientMessage ("") ;
  1283. HC.ClientMessage ("You Are Already In ThirdPerson!") ;
  1284. HC.ClientMessage ("") ;
  1285.  
  1286. }
  1287.  
  1288. if (HC.bBehindView == false) {
  1289.  
  1290. HC.ClientMessage ("") ;
  1291. HC.ClientMessage ("You Are Now In ThirdPerson!") ;
  1292. HC.ClientMessage ("") ;
  1293. HC.ClientSetBehindView (true) ;
  1294. HC.bBehindView = true ;
  1295.  
  1296. }
  1297.  
  1298. }
  1299.  
  1300. }
  1301.  
  1302. if (Command ~= "FirstPerson") {
  1303.  
  1304. if (HC.Pawn == none) {
  1305.  
  1306. HC.ClientMessage ("") ;
  1307. HC.ClientMessage ("You Have To Be Alive To Activate FirstPerson!") ;
  1308. HC.ClientMessage ("") ;
  1309.  
  1310. }
  1311.  
  1312. if (HC.Pawn != none) {
  1313.  
  1314. if (HC.bBehindView == false) {
  1315.  
  1316. HC.ClientMessage ("") ;
  1317. HC.ClientMessage ("You Are Already In FirstPerson!") ;
  1318. HC.ClientMessage ("") ;
  1319.  
  1320. }
  1321.  
  1322. if (HC.bBehindView == true) {
  1323.  
  1324. HC.ClientMessage ("") ;
  1325. HC.ClientMessage ("You Are Now In FirstPerson!") ;
  1326. HC.ClientMessage ("") ;
  1327. HC.ClientSetBehindView (false) ;
  1328. HC.bBehindView = false ;
  1329.  
  1330. }
  1331.  
  1332. }
  1333.  
  1334. }
  1335.  
  1336. if (Command ~= "RPG") {
  1337.  
  1338. if (HC.Pawn != none) {
  1339.  
  1340. if (bAllowRockets == false) {
  1341.  
  1342. HC.ClientMessage ("") ;
  1343. HC.ClientMessage ("Rockets Are Not Allowed!") ;
  1344. HC.ClientMessage ("") ;
  1345.  
  1346. }
  1347.  
  1348. if (bAllowRockets == true) {
  1349.  
  1350. sclass_name = "AGP_Characters.ClassRPG";
  1351. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1352. HC.newTeamClass (sclass) ;
  1353. HC.ClientMessage ("") ;
  1354. HC.ClientMessage ("You Have Picked An RPG!") ;
  1355. HC.ClientMessage ("") ;
  1356.  
  1357. }
  1358.  
  1359. }
  1360.  
  1361. if(HC.Pawn == none) {
  1362.  
  1363. HC.ClientMessage ("") ;
  1364. HC.ClientMessage ("You Have To Be Alive to Pick A Weapon!") ;
  1365. HC.ClientMessage ("") ;
  1366.  
  1367. }
  1368. }
  1369.  
  1370. if (Command ~= "AT4") {
  1371.  
  1372. if (HC.Pawn != none) {
  1373.  
  1374. if (bAllowRockets == false) {
  1375.  
  1376. HC.ClientMessage ("") ;
  1377. HC.ClientMessage ("Rockets Are Not Allowed!") ;
  1378. HC.ClientMessage ("") ;
  1379.  
  1380. }
  1381.  
  1382. if (bAllowRockets == true) {
  1383.  
  1384. sclass_name = "AGP_Characters.ClassAT4Rocket";
  1385. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1386. HC.newTeamClass (sclass) ;
  1387. HC.ClientMessage ("") ;
  1388. HC.ClientMessage ("You Have Picked An AT4!") ;
  1389. HC.ClientMessage ("") ;
  1390.  
  1391. }
  1392.  
  1393. }
  1394.  
  1395. if(HC.Pawn == none) {
  1396.  
  1397. HC.ClientMessage ("") ;
  1398. HC.ClientMessage ("You Have To Be Alive to Pick A Weapon!") ;
  1399. HC.ClientMessage ("") ;
  1400.  
  1401. }
  1402. }
  1403.  
  1404. if (Command ~= "M9") {
  1405.  
  1406. sclass_name = "AGP_Characters.ClassPistol";
  1407. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1408. HC.newTeamClass (sclass) ;
  1409. HC.ClientMessage ("You Have Picked a M9!") ;
  1410.  
  1411. }
  1412.  
  1413. if (Command ~= "AK") {
  1414.  
  1415. if (HC.Pawn != none) {
  1416.  
  1417. if (bAllowRifles == false) {
  1418.  
  1419. HC.ClientMessage ("") ;
  1420. HC.ClientMessage ("Rifles Are Not Allowed!") ;
  1421. HC.ClientMessage ("") ;
  1422.  
  1423. }
  1424.  
  1425. if (bAllowRifles == true) {
  1426.  
  1427. sclass_name = "AGP_Characters.ClassRiflemanAK";
  1428. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1429. HC.newTeamClass (sclass) ;
  1430. HC.ClientMessage ("") ;
  1431. HC.ClientMessage ("You Have Picked An AK!") ;
  1432. HC.ClientMessage ("") ;
  1433.  
  1434. }
  1435.  
  1436. }
  1437.  
  1438. if(HC.Pawn == none) {
  1439.  
  1440. HC.ClientMessage ("") ;
  1441. HC.ClientMessage ("You Have To Be Alive to Pick A Weapon!") ;
  1442. HC.ClientMessage ("") ;
  1443.  
  1444. }
  1445. }
  1446.  
  1447. if (Command ~= "GP") {
  1448.  
  1449. if (HC.Pawn != none) {
  1450.  
  1451. if (bAllowRifles == false) {
  1452.  
  1453. HC.ClientMessage ("") ;
  1454. HC.ClientMessage ("Rifles Are Not Allowed!") ;
  1455. HC.ClientMessage ("") ;
  1456.  
  1457. }
  1458.  
  1459. if (bAllowRifles == true) {
  1460.  
  1461. if (bAllow203 == true) {
  1462.  
  1463. sclass_name = "AGP_Characters.ClassGrenadierGP30_Op";
  1464. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1465. HC.newTeamClass (sclass) ;
  1466. HC.ClientMessage ("") ;
  1467. HC.ClientMessage ("You Have Picked An GP!") ;
  1468. HC.ClientMessage ("") ;
  1469.  
  1470. }
  1471.  
  1472. if (bAllow203 == false) {
  1473.  
  1474. sclass_name = "AGP_Characters.ClassRiflemanAK";
  1475. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1476. HC.newTeamClass (sclass) ;
  1477. HC.ClientMessage ("") ;
  1478. HC.ClientMessage ("203s Are Not Allowed!") ;
  1479. HC.ClientMessage ("") ;
  1480.  
  1481. }
  1482. }
  1483.  
  1484. }
  1485.  
  1486. if(HC.Pawn == none) {
  1487.  
  1488. HC.ClientMessage ("") ;
  1489. HC.ClientMessage ("You Have To Be Alive to Pick A Weapon!") ;
  1490. HC.ClientMessage ("") ;
  1491.  
  1492. }
  1493. }
  1494.  
  1495. if (Command ~= "R") {
  1496.  
  1497. if (HC.Pawn != none) {
  1498.  
  1499. if (bAllowRifles == false) {
  1500.  
  1501. HC.ClientMessage ("") ;
  1502. HC.ClientMessage ("Rifles Are Not Allowed!") ;
  1503. HC.ClientMessage ("") ;
  1504.  
  1505. }
  1506.  
  1507. if (bAllowRifles == true) {
  1508.  
  1509. sclass_name = "AGP_Characters.ClassRifleman";
  1510. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1511. HC.newTeamClass (sclass) ;
  1512. HC.ClientMessage ("") ;
  1513. HC.ClientMessage ("You Have Picked An R!") ;
  1514. HC.ClientMessage ("") ;
  1515.  
  1516. }
  1517.  
  1518. }
  1519.  
  1520. if(HC.Pawn == none) {
  1521.  
  1522. HC.ClientMessage ("") ;
  1523. HC.ClientMessage ("You Have To Be Alive to Pick A Weapon!") ;
  1524. HC.ClientMessage ("") ;
  1525.  
  1526. }
  1527. }
  1528.  
  1529. if (Command ~= "M") {
  1530.  
  1531. if (HC.Pawn != none) {
  1532.  
  1533. if (bAllowRifles == false) {
  1534.  
  1535. HC.ClientMessage ("") ;
  1536. HC.ClientMessage ("Rifles Are Not Allowed!") ;
  1537. HC.ClientMessage ("") ;
  1538.  
  1539. }
  1540.  
  1541. if (bAllowRifles == true) {
  1542.  
  1543. sclass_name = "AGP_Characters.ClassRiflemanM4A1AutoIron";
  1544. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1545. HC.newTeamClass (sclass) ;
  1546. HC.ClientMessage ("") ;
  1547. HC.ClientMessage ("You Have Picked An M4!") ;
  1548. HC.ClientMessage ("") ;
  1549.  
  1550. }
  1551.  
  1552. }
  1553.  
  1554. if(HC.Pawn == none) {
  1555.  
  1556. HC.ClientMessage ("") ;
  1557. HC.ClientMessage ("You Have To Be Alive to Pick A Weapon!") ;
  1558. HC.ClientMessage ("") ;
  1559.  
  1560. }
  1561. }
  1562.  
  1563. if (Command ~= "G") {
  1564.  
  1565. if (HC.Pawn != none) {
  1566.  
  1567. if (bAllowRifles == false) {
  1568.  
  1569. HC.ClientMessage ("") ;
  1570. HC.ClientMessage ("Rifles Are Not Allowed!") ;
  1571. HC.ClientMessage ("") ;
  1572.  
  1573. }
  1574.  
  1575. if (bAllowRifles == true) {
  1576.  
  1577. if (bAllow203 == true) {
  1578.  
  1579. sclass_name = "AGP_Characters.ClassGrenadier";
  1580. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1581. HC.newTeamClass (sclass) ;
  1582. HC.ClientMessage ("") ;
  1583. HC.ClientMessage ("You Have Picked An G!") ;
  1584. HC.ClientMessage ("") ;
  1585.  
  1586. }
  1587.  
  1588. if (bAllow203 == false) {
  1589.  
  1590. sclass_name = "AGP_Characters.ClassRifleman";
  1591. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1592. HC.newTeamClass (sclass) ;
  1593. HC.ClientMessage ("") ;
  1594. HC.ClientMessage ("203s Are Not Allowed!") ;
  1595. HC.ClientMessage ("") ;
  1596.  
  1597. }
  1598. }
  1599.  
  1600. }
  1601.  
  1602. if(HC.Pawn == none) {
  1603.  
  1604. HC.ClientMessage ("") ;
  1605. HC.ClientMessage ("You Have To Be Alive to Pick A Weapon!") ;
  1606. HC.ClientMessage ("") ;
  1607.  
  1608. }
  1609. }
  1610.  
  1611. if (Command ~= "SF") {
  1612.  
  1613. if (HC.Pawn != none) {
  1614.  
  1615. if (bAllowRifles == false) {
  1616.  
  1617. HC.ClientMessage ("") ;
  1618. HC.ClientMessage ("Rifles Are Not Allowed!") ;
  1619. HC.ClientMessage ("") ;
  1620.  
  1621. }
  1622.  
  1623. if (bAllowRifles == true) {
  1624.  
  1625. sclass_name = "AGP_Characters.ClassSF";
  1626. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1627. HC.newTeamClass (sclass) ;
  1628. HC.ClientMessage ("") ;
  1629. HC.ClientMessage ("You Have Picked An SF!") ;
  1630. HC.ClientMessage ("") ;
  1631.  
  1632. }
  1633.  
  1634. }
  1635.  
  1636. if(HC.Pawn == none) {
  1637.  
  1638. HC.ClientMessage ("") ;
  1639. HC.ClientMessage ("You Have To Be Alive to Pick A Weapon!") ;
  1640. HC.ClientMessage ("") ;
  1641.  
  1642. }
  1643. }
  1644.  
  1645. if (Command ~= "AK47SU") {
  1646.  
  1647. if (HC.Pawn != none) {
  1648.  
  1649. if (bAllowRifles == false) {
  1650.  
  1651. HC.ClientMessage ("") ;
  1652. HC.ClientMessage ("Rifles Are Not Allowed!") ;
  1653. HC.ClientMessage ("") ;
  1654.  
  1655. }
  1656.  
  1657. if (bAllowRifles == true) {
  1658.  
  1659. sclass_name = "AGP_Characters.ClassRiflemanAK47SU";
  1660. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1661. HC.newTeamClass (sclass) ;
  1662. HC.ClientMessage ("") ;
  1663. HC.ClientMessage ("You Have Picked An AK47SU!") ;
  1664. HC.ClientMessage ("") ;
  1665.  
  1666. }
  1667.  
  1668. }
  1669.  
  1670. if(HC.Pawn == none) {
  1671.  
  1672. HC.ClientMessage ("") ;
  1673. HC.ClientMessage ("You Have To Be Alive to Pick A Weapon!") ;
  1674. HC.ClientMessage ("") ;
  1675.  
  1676. }
  1677. }
  1678.  
  1679. if (Command ~= "PSO") {
  1680.  
  1681. if (HC.Pawn != none) {
  1682.  
  1683. if (bAllowRifles == false) {
  1684.  
  1685. HC.ClientMessage ("") ;
  1686. HC.ClientMessage ("Rifles Are Not Allowed!") ;
  1687. HC.ClientMessage ("") ;
  1688.  
  1689. }
  1690.  
  1691. if (bAllowRifles == true) {
  1692.  
  1693. sclass_name = "AGP_Characters.ClassGuerrillaPSO";
  1694. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1695. HC.newTeamClass (sclass) ;
  1696. HC.ClientMessage ("") ;
  1697. HC.ClientMessage ("You Have Picked An PSO!") ;
  1698. HC.ClientMessage ("") ;
  1699.  
  1700. }
  1701.  
  1702. }
  1703.  
  1704. if(HC.Pawn == none) {
  1705.  
  1706. HC.ClientMessage ("") ;
  1707. HC.ClientMessage ("You Have To Be Alive to Pick A Weapon!") ;
  1708. HC.ClientMessage ("") ;
  1709.  
  1710. }
  1711. }
  1712.  
  1713. if (Command ~= "SHOTTY") {
  1714.  
  1715. sclass_name = "AGP_Characters.ClassBreacher";
  1716. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1717. HC.newTeamClass (sclass) ;
  1718. HC.ClientMessage ("You Have Picked a Shotgun!") ;
  1719.  
  1720. if (sclass_name == "AGP_Characters.ClassBreacher") {
  1721.  
  1722. For(I=0;I<1;I++) {
  1723.  
  1724. privateset("Weapon_M870_Shotgun PickupAmmoCount 300");
  1725. privateset("PickupAmmo_762mm_5_Rounds AmmoAmount 300");
  1726. privateset("Ammo_762mm_5_Rounds AmmoAmount 300");
  1727. privateset("Ammo_762mm_5_Rounds MaxAmmo 300");
  1728.  
  1729. }
  1730.  
  1731. }
  1732.  
  1733. }
  1734.  
  1735. if (Command ~= "AR") {
  1736.  
  1737. if (HC.Pawn != none) {
  1738.  
  1739. if (bAllowMgs == false) {
  1740.  
  1741. HC.ClientMessage ("") ;
  1742. HC.ClientMessage ("Machine Guns Are Not Allowed!") ;
  1743. HC.ClientMessage ("") ;
  1744.  
  1745. }
  1746.  
  1747. if (bAllowMgs == true) {
  1748.  
  1749. sclass_name = "AGP_Characters.ClassAutomaticRifleman";
  1750. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1751. HC.newTeamClass (sclass) ;
  1752. HC.ClientMessage ("") ;
  1753. HC.ClientMessage ("You Have Picked An AR!") ;
  1754. HC.ClientMessage ("") ;
  1755.  
  1756. }
  1757.  
  1758. }
  1759.  
  1760. if(HC.Pawn == none) {
  1761.  
  1762. HC.ClientMessage ("") ;
  1763. HC.ClientMessage ("You Have To Be Alive to Pick A Weapon!") ;
  1764. HC.ClientMessage ("") ;
  1765.  
  1766. }
  1767. }
  1768.  
  1769. if (Command ~= "RPK") {
  1770.  
  1771. if (HC.Pawn != none) {
  1772.  
  1773. if (bAllowMgs == false) {
  1774.  
  1775. HC.ClientMessage ("") ;
  1776. HC.ClientMessage ("Machine Guns Are Not Allowed!") ;
  1777. HC.ClientMessage ("") ;
  1778.  
  1779. }
  1780.  
  1781. if (bAllowMgs == true) {
  1782.  
  1783. sclass_name = "AGP_Characters.ClassAutomaticRiflemanRPK";
  1784. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1785. HC.newTeamClass (sclass) ;
  1786. HC.ClientMessage ("") ;
  1787. HC.ClientMessage ("You Have Picked An RPK!") ;
  1788. HC.ClientMessage ("") ;
  1789.  
  1790. }
  1791.  
  1792. }
  1793.  
  1794. if(HC.Pawn == none) {
  1795.  
  1796. HC.ClientMessage ("") ;
  1797. HC.ClientMessage ("You Have To Be Alive to Pick A Weapon!") ;
  1798. HC.ClientMessage ("") ;
  1799.  
  1800. }
  1801. }
  1802.  
  1803. if (Command ~= "SPR") {
  1804.  
  1805. if (HC.Pawn != none) {
  1806.  
  1807. if (bAllowSnipers == false) {
  1808.  
  1809. HC.ClientMessage ("") ;
  1810. HC.ClientMessage ("Snipers Are Not Allowed!") ;
  1811. HC.ClientMessage ("") ;
  1812.  
  1813. }
  1814.  
  1815. if (bAllowMgs == true) {
  1816.  
  1817. sclass_name = "AGP_Characters.ClassSFSniper";
  1818. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1819. HC.newTeamClass (sclass) ;
  1820. HC.ClientMessage ("") ;
  1821. HC.ClientMessage ("You Have Picked An SPR!") ;
  1822. HC.ClientMessage ("") ;
  1823.  
  1824. }
  1825.  
  1826. }
  1827.  
  1828. if(HC.Pawn == none) {
  1829.  
  1830. HC.ClientMessage ("") ;
  1831. HC.ClientMessage ("You Have To Be Alive to Pick A Weapon!") ;
  1832. HC.ClientMessage ("") ;
  1833.  
  1834. }
  1835. }
  1836.  
  1837. if (Command ~= "SVD") {
  1838.  
  1839. if (HC.Pawn != none) {
  1840.  
  1841. if (bAllowSnipers == false) {
  1842.  
  1843. HC.ClientMessage ("") ;
  1844. HC.ClientMessage ("Snipers Are Not Allowed!") ;
  1845. HC.ClientMessage ("") ;
  1846.  
  1847. }
  1848.  
  1849. if (bAllowMgs == true) {
  1850.  
  1851. sclass_name = "AGP_Characters.ClassSniperSVD";
  1852. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1853. HC.newTeamClass (sclass) ;
  1854. HC.ClientMessage ("") ;
  1855. HC.ClientMessage ("You Have Picked An SVD!") ;
  1856. HC.ClientMessage ("") ;
  1857.  
  1858. }
  1859.  
  1860. }
  1861.  
  1862. if(HC.Pawn == none) {
  1863.  
  1864. HC.ClientMessage ("") ;
  1865. HC.ClientMessage ("You Have To Be Alive to Pick A Weapon!") ;
  1866. HC.ClientMessage ("") ;
  1867.  
  1868. }
  1869. }
  1870.  
  1871. if (Command ~= "S24") {
  1872.  
  1873. if (HC.Pawn != none) {
  1874.  
  1875. if (bAllowSnipers == false) {
  1876.  
  1877. HC.ClientMessage ("") ;
  1878. HC.ClientMessage ("Snipers Are Not Allowed!") ;
  1879. HC.ClientMessage ("") ;
  1880.  
  1881. }
  1882.  
  1883. if (bAllowMgs == true) {
  1884.  
  1885. sclass_name = "AGP_Characters.ClassSniper24_US";
  1886. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1887. HC.newTeamClass (sclass) ;
  1888. HC.ClientMessage ("") ;
  1889. HC.ClientMessage ("You Have Picked An S24!") ;
  1890. HC.ClientMessage ("") ;
  1891.  
  1892. }
  1893.  
  1894. }
  1895.  
  1896. if(HC.Pawn == none) {
  1897.  
  1898. HC.ClientMessage ("") ;
  1899. HC.ClientMessage ("You Have To Be Alive to Pick A Weapon!") ;
  1900. HC.ClientMessage ("") ;
  1901.  
  1902. }
  1903. }
  1904.  
  1905. if (Command ~= "S") {
  1906.  
  1907. if (HC.Pawn != none) {
  1908.  
  1909. if (bAllowSnipers == false) {
  1910.  
  1911. HC.ClientMessage ("") ;
  1912. HC.ClientMessage ("Snipers Are Not Allowed!") ;
  1913. HC.ClientMessage ("") ;
  1914.  
  1915. }
  1916.  
  1917. if (bAllowMgs == true) {
  1918.  
  1919. sclass_name = "AGP_Characters.ClassSniper";
  1920. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1921. HC.newTeamClass (sclass) ;
  1922. HC.ClientMessage ("") ;
  1923. HC.ClientMessage ("You Have Picked An S!") ;
  1924. HC.ClientMessage ("") ;
  1925.  
  1926. }
  1927.  
  1928. }
  1929.  
  1930. if(HC.Pawn == none) {
  1931.  
  1932. HC.ClientMessage ("") ;
  1933. HC.ClientMessage ("You Have To Be Alive to Pick A Weapon!") ;
  1934. HC.ClientMessage ("") ;
  1935.  
  1936. }
  1937. }
  1938.  
  1939. if (Command ~= "MOS") {
  1940.  
  1941. if (HC.Pawn != none) {
  1942.  
  1943. if (bAllowSnipers == false) {
  1944.  
  1945. HC.ClientMessage ("") ;
  1946. HC.ClientMessage ("Snipers Are Not Allowed!") ;
  1947. HC.ClientMessage ("") ;
  1948.  
  1949. }
  1950.  
  1951. if (bAllowSnipers == true) {
  1952.  
  1953. sclass_name = "AGP_Characters.ClassSniperMOS";
  1954. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1955. HC.newTeamClass (sclass) ;
  1956. HC.ClientMessage ("") ;
  1957. HC.ClientMessage ("You Have Picked An MOS!") ;
  1958. HC.ClientMessage ("") ;
  1959.  
  1960. }
  1961.  
  1962. }
  1963.  
  1964. if(HC.Pawn == none) {
  1965.  
  1966. HC.ClientMessage ("") ;
  1967. HC.ClientMessage ("You Have To Be Alive to Pick A Weapon!") ;
  1968. HC.ClientMessage ("") ;
  1969.  
  1970. }
  1971. }
  1972.  
  1973. if (Command ~= "V") {
  1974.  
  1975. if (HC.Pawn != none) {
  1976.  
  1977. if (bAllowSnipers == false) {
  1978.  
  1979. HC.ClientMessage ("") ;
  1980. HC.ClientMessage ("Snipers Are Not Allowed!") ;
  1981. HC.ClientMessage ("") ;
  1982.  
  1983. }
  1984.  
  1985. if (bAllowMgs == true) {
  1986.  
  1987. sclass_name = "AGP_Characters.ClassGuerrillaSniper";
  1988. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1989. HC.newTeamClass (sclass) ;
  1990. HC.ClientMessage ("") ;
  1991. HC.ClientMessage ("You Have Picked An V!") ;
  1992. HC.ClientMessage ("") ;
  1993.  
  1994. }
  1995.  
  1996. }
  1997.  
  1998. if(HC.Pawn == none) {
  1999.  
  2000. HC.ClientMessage ("") ;
  2001. HC.ClientMessage ("You Have To Be Alive to Pick A Weapon!") ;
  2002. HC.ClientMessage ("") ;
  2003.  
  2004. }
  2005. }
  2006.  
  2007. }
  2008.  
  2009.  
  2010. function timer() {
  2011.  
  2012. Level.Game.BroadcastHandler.Broadcast (None,"List Of Commands:> mutate clist") ;
  2013. Level.Game.BroadcastHandler.Broadcast (None,"Server Rules:> mutate rules") ;
  2014. Level.Game.BroadcastHandler.Broadcast (None,"Everyone is a medic!") ;
  2015.  
  2016. }
  2017.  
  2018. function turnallowsfalse () {
  2019.  
  2020. bAllowRifles = false ;
  2021. bAllowMgs = false ;
  2022. bAllowSnipers = false ;
  2023. bAllow203 = false ;
  2024. bNVG = false ;
  2025. bAllowRockets = false ;
  2026. bDefaultSettings = false ;
  2027.  
  2028. }
  2029.  
  2030. function turnallowstrue () {
  2031.  
  2032. bAllowRifles = true ;
  2033. bAllowMgs = true ;
  2034. bAllowSnipers = true ;
  2035. bAllow203 = true ;
  2036. bNVG = true ;
  2037. bAllowRockets = true ;
  2038. bDefaultSettings = true ;
  2039.  
  2040. }
  2041.  
  2042. function turnonlysfalse () {
  2043.  
  2044. bRiflesOnly = false ;
  2045. bMgsOnly = false ;
  2046. bSnipersOnly = false ;
  2047. bShottyOnly = false ;
  2048. bM9Only = false ;
  2049. bDefaultSettings = true ;
  2050.  
  2051. }
  2052.  
  2053. function checkdefaultsettings () {
  2054.  
  2055. if (bAllowRifles == true) {
  2056.  
  2057. if (bAllow203 == true) {
  2058.  
  2059. if (bAllowMgs == true) {
  2060.  
  2061. if (bAllowSnipers) {
  2062.  
  2063. if (bAllowRockets == true) {
  2064.  
  2065. if (bNVG == true) {
  2066.  
  2067. bDefaultSettings = true ;
  2068.  
  2069. }
  2070.  
  2071. }
  2072.  
  2073. }
  2074.  
  2075. }
  2076.  
  2077. }
  2078.  
  2079. }
  2080.  
  2081. }
  2082.  
  2083. function string Forceclass_Weapon () {
  2084.  
  2085. local string Result ;
  2086.  
  2087. if (bRiflesOnly == true) {
  2088.  
  2089. Result = "AGP_Characters.ClassRifleman" ;
  2090.  
  2091. }
  2092.  
  2093. if (bMgsOnly == true) {
  2094.  
  2095. Result = "AGP_Characters.ClassAutomaticRifleman" ;
  2096.  
  2097. }
  2098.  
  2099. if (bSnipersOnly == true) {
  2100.  
  2101. Result = "AGP_Characters.ClassSniper" ;
  2102.  
  2103. }
  2104.  
  2105. if (bShottyOnly == true) {
  2106.  
  2107. Result = "AGP_Characters.ClassBreacher" ;
  2108.  
  2109. }
  2110.  
  2111. if (bM9Only == true) {
  2112.  
  2113. Result = "AGP_Characters.ClassPistol" ;
  2114.  
  2115. }
  2116.  
  2117. if ( (bAllowRifles == false) && (bRiflesOnly == false) && (bMgsOnly == false) && (bSnipersOnly == false) && (bShottyOnly == false) && (bM9Only == false) ) {
  2118.  
  2119. Result = "AGP_Characters.ClassPistol" ;
  2120.  
  2121. }
  2122.  
  2123. if ( (bAllow203 == false) && (bRiflesOnly == false) && (bMgsOnly == false) && (bSnipersOnly == false) && (bShottyOnly == false) && (bM9Only == false) ) {
  2124.  
  2125. Result = "AGP_Characters.ClassRifleman" ;
  2126.  
  2127. }
  2128.  
  2129. if ( (bAllowmgs == false) && (bRiflesOnly == false) && (bMgsOnly == false) && (bSnipersOnly == false) && (bShottyOnly == false) && (bM9Only == false) ) {
  2130.  
  2131. Result = "AGP_Characters.ClassRifleman" ;
  2132.  
  2133. }
  2134.  
  2135. return Result ;
  2136.  
  2137. }
  2138.  
  2139. function Kill (Int PlayerID) {
  2140.  
  2141. local HumanController HC;
  2142. local int i;
  2143.  
  2144. for (i = 0; i < Level.Game.GameReplicationInfo.PRIArray.Length; i++) {
  2145.  
  2146. HC = HumanController(Level.Game.GameReplicationInfo.PRIArray[i].GetController());
  2147.  
  2148. if (HC != None) {
  2149.  
  2150. if (HC.PlayerReplicationInfo.PlayerID == PlayerID) {
  2151.  
  2152. if (HC.Pawn != None) {
  2153.  
  2154. Level.Game.BroadcastHandler.Broadcast (None,""$HC.PlayerReplicationInfo.PlayerName$" was killed by an Admin for Violation(s) of Server Rules!") ;
  2155. HC.Pawn.TakeDamage(100,None,vect(0.00,0.00,0.00),vect(0.00,0.00,256.00),class'Suicided');
  2156.  
  2157. }
  2158. }
  2159. }
  2160. }
  2161. }
  2162.  
  2163. function AddAdmin (int PlayerID, int Leader,PlayerController Sender) {
  2164.  
  2165. local HumanController HC;
  2166. local int i;
  2167.  
  2168. for (i = 0; i < Level.Game.GameReplicationInfo.PRIArray.Length; i++) {
  2169.  
  2170. HC = HumanController(Level.Game.GameReplicationInfo.PRIArray[i].GetController());
  2171.  
  2172. if (HC.PlayerReplicationInfo.PlayerID == PlayerID) {
  2173.  
  2174. if (1 == Leader) {
  2175.  
  2176. Sender.PlayerReplicationInfo.bAdmin = true ;
  2177.  
  2178. }
  2179.  
  2180. if (2 == Leader) {
  2181.  
  2182. Sender.PlayerReplicationInfo.bAdmin = false ;
  2183.  
  2184. }
  2185.  
  2186. }
  2187. }
  2188. }
  2189.  
  2190. function Jail (Int PlayerID,PlayerController Sender) {
  2191.  
  2192. local HumanController HC;
  2193. local int i;
  2194.  
  2195. for (i = 0; i < Level.Game.GameReplicationInfo.PRIArray.Length; i++) {
  2196.  
  2197. HC = HumanController(Level.Game.GameReplicationInfo.PRIArray[i].GetController());
  2198.  
  2199. if (HC != None) {
  2200.  
  2201. if (HC.PlayerReplicationInfo.PlayerID == PlayerID) {
  2202.  
  2203. Level.Game.BroadcastHandler.Broadcast (None,""$HC.PlayerReplicationInfo.PlayerName$" was Court Marshalled by an Admin for Violation(s) of Server Rules!") ;
  2204. HC.ClientTravel ("Leavenworth",TRAVEL_Absolute,false) ;
  2205.  
  2206. }
  2207. }
  2208. }
  2209. }
  2210.  
  2211. defaultproperties {
  2212.  
  2213. bAllowRifles = true ;
  2214. bAllowMgs = true ;
  2215. bAllowSnipers = true ;
  2216. bAllow203 = true ;
  2217. bAllowRockets = true ;
  2218.  
  2219. bRiflesOnly = false ;
  2220. bMgsOnly = false ;
  2221. bSnipersOnly = false ;
  2222. bShottyOnly = false ;
  2223. bM9Only = false ;
  2224.  
  2225. bNVG = true ;
  2226.  
  2227. bDefaultSettings = true ;
  2228.  
  2229. }
RAW Paste Data