Guest User

Untitled

a guest
Oct 20th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.41 KB | None | 0 0
  1. fnGetRandomZombie() {
  2.     new Players[32];
  3.     new playerCount, i, player;
  4.     get_players(Players, playerCount, "ace", "TERRORISTS");
  5.     for (i=0; i<playerCount; i++) {
  6.         if (g_isalive[Players[i]] && g_zombie[Players[i]] && !g_nemesis[Players[i]])
  7.             return Players[i];
  8.     }
  9.    
  10.     new AliveID = random_num(0, i);
  11.    
  12.     if (g_isalive[AliveID] && g_zombie[AliveID] && !g_nemesis[AliveID])
  13.         return AliveID;
  14.     else
  15.         return -1;
  16. }
Add Comment
Please, Sign In to add comment