GoldenEye: Source Forums

  • November 21, 2024, 11:49:30 am
  • Welcome, Guest
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Match winner  (Read 10659 times)

0 Members and 1 Guest are viewing this topic.

papel

  • Agent
  • *
  • Posts: 38
  • Reputation Power: 4
  • papel has no influence.
  • Offline Offline
Match winner
« on: August 06, 2017, 01:16:28 pm »

Hello friends!

What name of the event that displays the winner of the match?
The idea is to give points to the winners (first, second and third) placed.

Entropy-Soldier, thank you friend!
Logged

Entropy-Soldier

  • Managing Director
  • 00 Agent
  • ***
  • Posts: 506
  • Reputation Power: 372
  • Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!
  • Offline Offline
Re: Match winner
« Reply #1 on: August 06, 2017, 08:11:31 pm »

It's called "round_ranks" and uses the format:

idx = userid of player in position x
scx = score of player in position x


Only supports 16 players since I didn't realize servers could have more when I made it, but should suit your needs just fine.

Code: [Select]
// Tell plugins the userIDs of who finished in what place on the round report.
"round_ranks"
{
"isfinal" "bool" // If true, this was the match report and thus the culmination of all the rounds played this map.
"id1" "short" // Player ID of whoever finished in first place
"sc1" "short" // Score of whoever finished in first place
"id2" "short"
"sc2" "short"
"id3" "short"
"sc3" "short"
"id4" "short"
"sc4" "short"
"id5" "short"
"sc5" "short"
"id6" "short"
"sc6" "short"
"id7" "short"
"sc7" "short"
"id8" "short"
"sc8" "short"
"id9" "short"
"sc9" "short"
"id10" "short"
"sc10" "short"
"id11" "short"
"sc11" "short"
"id12" "short"
"sc12" "short"
"id13" "short"
"sc13" "short"
"id14" "short"
"sc14" "short"
"id15" "short"
"sc15" "short"
"id16" "short"
"sc16" "short"
}


All of our custom events are located in "gesource/resource/modevents.res", so if you're wondering if we have a specific event to hook that's not included in the core source engine, that's the place to look.  Good luck with whatever you're making, it sounds interesting!
Logged
"By reading this, you’ve done more than you can imagine." - Adrian

papel

  • Agent
  • *
  • Posts: 38
  • Reputation Power: 4
  • papel has no influence.
  • Offline Offline
Re: Match winner
« Reply #2 on: August 07, 2017, 03:43:45 am »

Amazing. I will try to apply and come back with feddback. As always, thank you, my friend.
Logged

papel

  • Agent
  • *
  • Posts: 38
  • Reputation Power: 4
  • papel has no influence.
  • Offline Offline
Re: Match winner
« Reply #3 on: August 14, 2017, 04:23:04 pm »

Entropy-Soldier,

All perfectly correct.

It worked as expected. The best players in the match will appreciate your support.

Thank you so much, my friend!
Logged

Entropy-Soldier

  • Managing Director
  • 00 Agent
  • ***
  • Posts: 506
  • Reputation Power: 372
  • Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!Entropy-Soldier is awe-inspiring!
  • Offline Offline
Re: Match winner
« Reply #4 on: August 14, 2017, 05:18:57 pm »

Awesome!  I'm glad everything worked well!
Logged
"By reading this, you’ve done more than you can imagine." - Adrian
Pages: [1]   Go Up