frags script
#1

Hello everyone!

I'm coding a frags system right now (for my DM server) and I need your help guys.

I wanna make list of deaths and kills like in CS (consequentially) but I don't know how. Here is a 8 players with deaths and kills

Код:
new killed[8], deaths[8];
	
killed[0] = 11, killed[1] = 15, killed[2] = 8, killed[3] = 1, killed[4] = 3, killed[5] = 8, killed[6] = 15, killed[7] = 1;
deaths[0] = 4, deaths[1] = 1, deaths[2] = 20, deaths[3] = 0, deaths[4] = 6, deaths[5] = 4, deaths[6] = 0, deaths[7] = 5;
The list must be like that:

Код:
1) Player 7: 15  / 0       // killed[6], deaths[6]
2) Player 2: 15 / 1       // killed[1], deaths[1]
3) Player 1: 11 / 4       // killed[0], deaths[0]
4) Player 6: 8 / 4         // killed[5, deaths[5]
5) Player 3: 8 / 20      // killed[2], deaths[2]
6) Player 5: 3 / 6       // killed[4], deaths[4]
7) Player 4: 1 / 0       // killed[3], deaths[3]
8) Player 8: 1 / 5          // killed[7], deaths[7]
Thanks before!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)