How to compare max players points
#1

Hello guys I am trying to make a tournament DM in which I want to get a winner so how can I do it max players points compare and >greater points player is winner sorry for my rip English plz give me an example
Reply
#2

try this

https://sampforum.blast.hk/showthread.php?tid=631637
Reply
#3

There is nothing like I want todo
Reply
#4

I didn't quite understand the question?
Could you elaborate it a little more detailed?
Reply
#5

Do you mean, you want to know how to get who has the greatest points among players?

PHP код:
stock GetWinner(){
     new 
winnerPointswinnerID = -1;
     for(new 
iGetPlayerPoolSize(); i<ji++){
          if(
IsPlayerConnected(i) && pInfo[i][Points] > winnerPoints){
                
winnerPoints pInfo[i][Points];
                
winnerID i;
          }
          return 
winnerID;
     }

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)