Advertisement
Guest User

Untitled

a guest
Oct 11th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.40 KB | None | 0 0
  1. PUBG_CountPlayers() {
  2.     new count = 0;
  3.     foreach(new i : Player) {
  4.         if(UMatchingu[i]) count++;
  5.     }
  6.     return count;
  7. }
  8.  
  9. //OnPlayerDeath
  10. if(UMatchingu[killerid] && PUBG_CountPlayers() <= 1) {
  11.     SetPlayerHealth(killerid, 100); //da mu obnovi helt da slucajno ne umre
  12.     //pobjednik ti je killerid
  13.     //tu rraj pubg (respawn auta, skini njemu u matchingu, daj mu nagradu, ispisi svima da je pobjednik etc
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement