Raised This Month: $ Target: $400
 0% 

Get players with highest frags on each team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
platzpatrone
Veteran Member
Join Date: Apr 2007
Location: Germany
Old 11-22-2009 , 02:29   Get players with highest frags on each team
Reply With Quote #1

Hello there,

i've run into the problem that i dont know how to code this:

i want to get a specific player id from a specific team.
i try to explain a bit more.

let us say my server runs with 6:6 players on

6 are on ct side and 6 on terror side

so now i use in my plugin some functions to check things
on function checks the score for each team and log this to MySQL

now i want it so that the first or the first 2 players for a specific team
should be checked with some other stuffs.

but not randomly. need the exact first 2 player id's maybe more with a cvar like:

amx_check_teamplayers 1

but this is not important i know that kind of code. i need just help
to getting the first 1 till X amount of players with the highest frags (like in scoreboard) for specific team
that the function will return (like: CT or T but this can change everyround)

hope u understand what i try to explain here lol
thanks

Last edited by platzpatrone; 11-24-2009 at 21:03. Reason: better Thread Title :)
platzpatrone is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode