Advertisement
ijontichy

test.acs

May 19th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. #include "zcommon.acs"
  2.  
  3. script 747 (void) //Checks proximity, thanks to Ijon for proxplayer
  4. {
  5. int pln = PlayerNumber();
  6. int myTeam = GetPlayerInfo(pln, PLAYERINFO_TEAM);
  7. int otherPln;
  8.  
  9. while (ActivatorTID() == FROZENRED_TID || ActivatorTID() == FROZENBLUE_TID)
  10. {
  11. for (otherPln = 0; otherPln < 64; otherPln++)
  12. {
  13. if (otherPln == pln || !PlayerInGame(otherPln) || PlayerDead[otherPln]
  14. || GetPlayerInfo(otherPln, PLAYERINFO_TEAM) != myTeam)
  15. {
  16. continue;
  17. }
  18.  
  19. if (PlayerDistance(pln, otherPln) < 96)
  20. {
  21. Thing_Damage(0, 1, MOD_UNKNOWN);
  22. delay(5);
  23. }
  24. }
  25.  
  26. Delay(1);
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement