Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function payoutPlayers(){
- local topArray = [];
- foreach(id, score in playerScores){
- if(score > 0){
- topArray.push({id = id, score = score});
- }
- }
- topArray.sort(sortScores);
- local _payout = currentMinigame.payout;
- foreach(pos, scoreinfo in topArray){
- local _player = FindPlayer(scoreinfo.id);
- if(_player){
- local realpos = pos + 1;
- //_player.Cash += _payout;
- BigMessage(_player, "You came " + realpos + " in the " + currentMinigame.name, 5000, 3);
- _payout = abs(_payout * 0.8);
- }
- _player = null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement