Advertisement
BullyATWiiplaza

Call of Duty Modern Warfare Reflex Multiplayer Scripts

Oct 2nd, 2014
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.71 KB | None | 0 0
  1. // Silently gives the specified killstreak
  2. giveKillstreak(playerName, killstreak)
  3. {
  4.     playerName maps\mp\gametypes\_hardpoints::giveHardpointItem(killstreak);
  5. }
  6.  
  7. // Gives the specified weapon to the player
  8. giveWeapon(playerName, weaponName)
  9. {
  10.     playerName giveWeapon(weaponName);
  11. }
  12.  
  13. // Gives unlimited health to the player
  14. giveGodMode(playerName)
  15. {
  16.     playerName.maxHealth = 200000;
  17.  
  18.     while(1)
  19.     {
  20.         if (playerName.health < playerName.maxhealth)
  21.         {      
  22.             playerName.health = playerName.maxHealth;
  23.         }
  24.  
  25.         wait 0.1;
  26.     }
  27. }
  28.  
  29. // Resets score and countdown timer. Brings up the class selection screen
  30. fastRestart()
  31. {
  32.     map_restart(false);
  33. }
  34.  
  35. // Exits the match immediately, basically like backing out when you're not host
  36. killServer()
  37. {
  38.     exitLevel(false);
  39. }
  40.  
  41. // Sets the stats of the player
  42. setStatistic(playerName, statistic, amount)
  43. {
  44.     playerName maps\mp\gametypes\_persistence::statSet(stat, amount);
  45. }
  46.  
  47. // Kills the player with a skull icon
  48. commitSuicide(playerName)
  49. {
  50.     playerName suicide();
  51. }
  52.  
  53. // Sets the visibility of the player to others
  54. setVisibility(playerName, invisible)
  55. {
  56.     if (invisible)
  57.     {
  58.         playerName hide();
  59.     }
  60.     else
  61.     {
  62.         playerName show();
  63.     }
  64. }
  65.  
  66. // Freezes the controls of the player
  67. freezePlayer(playerName, frozen)
  68. {
  69.     playerName freezeControls(frozen);
  70. }
  71.  
  72. // Throws the player out of the lobby
  73. kickPlayer(playerName)
  74. {
  75.     kick(playerName getEntityNumber());
  76. }
  77.  
  78. // Prevents the player from joining the lobby again by IP address (?)
  79. banPlayer(playerName)
  80. {
  81.     ban(playerName getEntityNumber());
  82. }
  83.  
  84. // Plays the sound when a Claymore detected an enemy and is about to blow up
  85. playClaymoreTickingSound(playerName)
  86. {
  87.     playerName playSound("claymore_activated");
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement