Raised This Month: $51 Target: $400
 12% 

HowTo recieve the number of played rounds ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Küspert
SourceMod Donor
Join Date: Aug 2006
Location: Germany
Old 10-09-2008 , 14:59   HowTo recieve the number of played rounds ?
Reply With Quote #1

Hi,

I tried to find something like an function or example how I can get the number of played rounds on the server / map ?

Is there a simple way to do this ?

Or do I have to work with SDKTools 0o

Hope for an answer.

Cya
Küspert is offline
Send a message via ICQ to Küspert
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
Old 10-09-2008 , 15:11   Re: HowTo recieve the number of played rounds ?
Reply With Quote #2

I would think something like this would work.

Code:
#include <sdktools>

GetTeamScore(index);
new ctscore = GetTeamScore(3);
new tscore = GetTeamScore(2);
PrintToChatAll("Rounds Played: %i", (ctscore + tscore));


This example uses the scores from CSS teams. If you're trying for TF2, I imagine it would be more difficult seeing as how you can have a total score, AND rounds.
__________________

Last edited by XARIUS; 10-09-2008 at 15:14.
XARIUS is offline
Küspert
SourceMod Donor
Join Date: Aug 2006
Location: Germany
Old 10-09-2008 , 15:28   Re: HowTo recieve the number of played rounds ?
Reply With Quote #3

Oh dude and I search for something like "played rounds" or "rounds played" 'n so on.

Thx for that, will give it a try
Küspert is offline
Send a message via ICQ to Küspert
SAMURAI16
BANNED
Join Date: Sep 2006
Old 10-09-2008 , 18:38   Re: HowTo recieve the number of played rounds ?
Reply With Quote #4

hook 'round_start' event and make a count++ for each player from server.
Then you have to print count;
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
Reply



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 18:07.


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