Advertisement
Guest User

Classes Coded By CoMp

a guest
May 11th, 2011
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.77 KB | None | 0 0
  1. #Classes Coded by ...CoMp
  2.  
  3. #include common_scripts\utility;
  4. #include maps\mp\_utility;
  5. #include maps\mp\gametypes\_hud_util;
  6.  
  7. //CUSTOM CLASSES
  8. MainWeapon = "cheytac_fmj_xmags_mp";
  9. WeaponOne = "cheytac_thermal_xmags_mp";
  10. WeaponTwo = "cheytac_acog_xmags_mp";
  11. SecondaryWeapon = "deserteagle_mp";
  12. SecondaryHasAmmo = false;
  13.  
  14. MasterClassThread()
  15. {
  16.     self thread maps\mp\gametypes\_hud_message::hintMessage("^3V.I.P: ^7Press ^1[{+actionslot 3}] For ACOG");
  17.     self thread maps\mp\gametypes\_hud_message::hintMessage("^7Press ^1[{+actionslot 1}] ^7For Thermal.");
  18.     self thread doCustomClassesOne();
  19.     self thread doCustomClassesTwo();
  20.     self thread doCustomClassesThree();
  21. }
  22.  
  23.  
  24. ///////////BLJDSKAHGDONTOUCHSDASGF//////////////////
  25.  
  26. doCustomClassesOne()
  27. {
  28.   self endon("disconnect");
  29.  
  30.  
  31.         self notifyOnPlayerCommand("N", "+actionslot 1");
  32.         self waittill("N");
  33.         self thread CustomClassOne();
  34.        
  35. }
  36.  
  37.  
  38. doCustomClassesTwo()
  39. {
  40.   self endon("disconnect");
  41.  
  42.  
  43.         self notifyOnPlayerCommand("3", "+actionslot 3");
  44.         self waittill("3");
  45.         self thread CustomClassTwo();
  46.        
  47. }
  48.  
  49. doCustomClassesThree()
  50. {
  51.   self endon("disconnect");
  52.  
  53.  
  54.         self notifyOnPlayerCommand("5", "+actionslot 2");
  55.         self waittill("5");
  56.         self thread CustomClassThree();
  57.        
  58. }
  59. /////DONTTOUCHTHESEBRO////////////
  60.  
  61. CustomClassOne()
  62. {
  63.         self takeAllWeapons();
  64.         self giveWeapon( WeaponOne, RandomInt(9), false );
  65.             wait 0.1;
  66.             self switchToWeapon( WeaponOne);
  67.             self GiveMaxAmmo( WeaponOne);
  68.             self giveWeapon( SecondaryWeapon, 5, false );
  69.  
  70.         if (SecondaryHasAmmo == false)
  71.             {
  72.             self setWeaponAmmoClip( SecondaryWeapon, 0);
  73.             self setWeaponAmmoStock( SecondaryWeapon, 0);
  74.             }
  75.         self maps\mp\perks\_perks::givePerk("throwingknife_mp");
  76.         self setWeaponAmmoClip("throwingknife_mp", 1);
  77. }
  78.  
  79. CustomClassTwo()
  80. {
  81.         self takeAllWeapons();
  82.         self giveWeapon( WeaponTwo, RandomInt(9), false );
  83.             wait 0.1;
  84.             self switchToWeapon(WeaponTwo);
  85.             self GiveMaxAmmo(WeaponTwo);
  86.             self giveWeapon( SecondaryWeapon, 5, false );
  87.  
  88.         if (SecondaryHasAmmo == false)
  89.             {
  90.             self setWeaponAmmoClip( SecondaryWeapon, 0);
  91.             self setWeaponAmmoStock( SecondaryWeapon, 0);
  92.             }
  93.         self maps\mp\perks\_perks::givePerk("throwingknife_mp");
  94.         self setWeaponAmmoClip("throwingknife_mp", 1);
  95. }
  96.  
  97. CustomClassThree()
  98. {
  99.         self takeAllWeapons();
  100.         self giveWeapon( MainWeapon, RandomInt(9), false );
  101.             wait 0.1;
  102.             self switchToWeapon(MainWeapon);
  103.             self GiveMaxAmmo(MainWeapon);
  104.             self giveWeapon( SecondaryWeapon, 5, false );
  105.  
  106.         if (SecondaryHasAmmo == false)
  107.             {
  108.             self setWeaponAmmoClip( SecondaryWeapon, 0);
  109.             self setWeaponAmmoStock( SecondaryWeapon, 0);
  110.             }
  111.         self maps\mp\perks\_perks::givePerk("throwingknife_mp");
  112.         self setWeaponAmmoClip("throwingknife_mp", 1);
  113. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement