Guest User

Untitled

a guest
Aug 26th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. new ZoneCheckTimerID,UzimtaGauja;
  2.  
  3. new Float:m_zones_info[2][4] =
  4. {
  5. {-841.4291,718.3094,-621.0016,1025.2534}, // Vagos gaujos
  6. {-956.6130,-1562.4879,-1216.9076,-1744.4363} // Grove gaujos
  7. };
  8.  
  9.  
  10.  
  11. stock CountPlayersInZone(TeamID,ZoneID){
  12. new PlayersInZone;
  13. if(TeamID == Vagos){
  14. for(new i; i < MAX_PLAYERS; i++){
  15. if(playerDB[i][darbas] == Vagos && IsPlayerInZone(i,m_zones_info[ZoneID][0],m_zones_info[ZoneID][1],m_zones_info[ZoneID][2],m_zones_info[ZoneID][3])) PlayersInZone++;
  16. }
  17. }
  18. if(TeamID == Grove){
  19. for(new i; i < MAX_PLAYERS; i++){
  20. if(playerDB[i][darbas] == Grove && IsPlayerInZone(i,m_zones_info[ZoneID][0],m_zones_info[ZoneID][1],m_zones_info[ZoneID][2],m_zones_info[ZoneID][3])) PlayersInZone++;
  21. }
  22. }
  23. return PlayersInZone;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment