Advertisement
Guest User

MoveZombies

a guest
Jul 4th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.38 KB | None | 0 0
  1. public MoveZombies()
  2. {
  3.     static dCheckTimes = 0;
  4.     for(new i = 0; i < MAX_ZOMBIES; i ++) if(dZombie[i][dZombieID] != INVALID_PLAYER_ID) ZombieAttack(i);
  5.     for(new i = 0 + (dCheckTimes * ZOMBIE_5TH); i < ((dCheckTimes + 1) * ZOMBIE_5TH); i ++) if(dZombie[i][dZombieID] != INVALID_PLAYER_ID) MoveZombie(i);
  6.     //---
  7.     dCheckTimes ++;
  8.     if(dCheckTimes == 5)
  9.     {
  10.         dCheckTimes = 0;
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement