Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fnGetRandomZombie() {
- new Players[32];
- new playerCount, i, player;
- get_players(Players, playerCount, "ace", "TERRORISTS");
- for (i=0; i<playerCount; i++) {
- if (g_isalive[Players[i]] && g_zombie[Players[i]] && !g_nemesis[Players[i]])
- return Players[i];
- }
- new AliveID = random_num(0, i);
- if (g_isalive[AliveID] && g_zombie[AliveID] && !g_nemesis[AliveID])
- return AliveID;
- else
- return -1;
- }
Add Comment
Please, Sign In to add comment