Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.85 KB | None | 0 0
  1. #include "zcommon.acs"
  2. #library "teamammogiver"
  3.  
  4. int acsToExecute[5];
  5.  
  6.  
  7. script 382 ENTER
  8. {
  9.     int myTeam;
  10.     int lastScript;
  11.  
  12.     int pln = PlayerNumber();
  13.  
  14.     while (PlayerInGame(pln) )
  15.     {
  16.         myTeam = PlayerTeam();
  17.  
  18.         if (acsToExecute[myTeam] != lastScript)
  19.         {
  20.             if (acsToExecute[myTeam] % 1000 != 0)
  21.             {
  22.                 ACS_ExecuteAlways(acsToExecute[myTeam] % 1000, 0, myTeam, 0, 0);
  23.             }
  24.             lastScript = acsToExecute[myTeam];
  25.         }
  26.         Delay(1);
  27.     }
  28.  
  29. }
  30.  
  31.  
  32. script 383 (int whichTeam, int whichScript)
  33. {
  34.     acsToExecute[whichTeam] = whichScript;
  35. }
  36.  
  37.  
  38. script 384 (int yourTeam)
  39. {
  40.     GiveInventory("PlasmaRifle", 1);
  41.     GiveInventory("Railgun", 1);
  42.     GiveInventory("Backpack", 1);
  43.     GiveInventory("Cell", 600);
  44.     GiveInventory("Megasphere", 1);
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement