Advertisement
DraKiNs

[COD] GetRandomPlayer

Jun 26th, 2011
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.17 KB | None | 0 0
  1. GetRandomPlayer(iPlayer = INVALID_PLAYER_ID)
  2. {
  3.     offline:
  4.     iPlayer = random(MAX_PLAYERS);
  5.  
  6.     if(!IsPlayerConnected(iPlayer)) goto offline;
  7.     return iPlayer;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement