Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "zcommon.acs"
- script 747 (void) //Checks proximity, thanks to Ijon for proxplayer
- {
- int pln = PlayerNumber();
- int myTeam = GetPlayerInfo(pln, PLAYERINFO_TEAM);
- int otherPln;
- while (ActivatorTID() == FROZENRED_TID || ActivatorTID() == FROZENBLUE_TID)
- {
- for (otherPln = 0; otherPln < 64; otherPln++)
- {
- if (otherPln == pln || !PlayerInGame(otherPln) || PlayerDead[otherPln]
- || GetPlayerInfo(otherPln, PLAYERINFO_TEAM) != myTeam)
- {
- continue;
- }
- if (PlayerDistance(pln, otherPln) < 96)
- {
- Thing_Damage(0, 1, MOD_UNKNOWN);
- delay(5);
- }
- }
- Delay(1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement