Raised This Month: $ Target: $400
 0% 

count game rounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
madprofessor
Member
Join Date: Nov 2004
Old 01-14-2005 , 20:46   count game rounds
Reply With Quote #1

how can I read how many wins each team has?
for example i need to know when the 16th round starts but it is a clan war server and restarts might happen so I can't just count round ends to find the rounds.

can i read the teams wins? the ones that display when you press tab

plz help! thanks in advance
madprofessor is offline
madprofessor
Member
Join Date: Nov 2004
Old 01-27-2005 , 11:01  
Reply With Quote #2

plz help me??
madprofessor is offline
XxKpAznGuyxX
Senior Member
Join Date: Dec 2004
Location: EARTH!!
Old 01-27-2005 , 11:50  
Reply With Quote #3

press Tab it should say how many round you wonn and for the other team also.
__________________
24/7 Chicago Terror-8.9.2.120:27015
XxKpAznGuyxX is offline
Send a message via AIM to XxKpAznGuyxX Send a message via MSN to XxKpAznGuyxX
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 01-27-2005 , 12:39  
Reply With Quote #4

He means how do you read it through into a plugin.

You would have to write and read the relavant data from something, like a file or sql base.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-27-2005 , 15:30  
Reply With Quote #5

I'm assuming you could catch the TeamScore event and add up how many rounds the Ts have won compared to how many the CTs have won, and store it in a variable.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 01-27-2005 , 19:46  
Reply With Quote #6

Code:
new rounds public plugin_init() {  register_event("ResetHUD","do","a") } public do() {  num++  //do your checking function here  if(num<>16)   return PLUGIN_HANDLED  if(num==16) {   // do whatcha want  }
I kno u want to read teams but maybe this helps...
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-27-2005 , 21:43  
Reply With Quote #7

a) you define "rounds" but use "num"
b) ResetHUD does not mean "spawn", it is called on multiple occassions, and it happens for everyone, so the variable would be off.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 01-27-2005 , 23:21  
Reply With Quote #8

ur best choice is register a team win event like when they play sound T wins or CT wins and count ur rounds from there.
Freecode is offline
Da Bishop
Senior Member
Join Date: Aug 2004
Location: Chester County PA
Old 01-28-2005 , 09:26  
Reply With Quote #9

or use logevent which is slightly better.
__________________
Anything that is done can only be done better by urself - since life is a opinion make it the way urs feel its best

~live by it
Da Bishop is offline
Send a message via MSN to Da Bishop
Damocles
Member
Join Date: Jan 2005
Old 01-28-2005 , 10:36  
Reply With Quote #10

what about this sort of thing...

Code:
register_event("TeamScore", "team_score", "a") // Code.... new ctscore = 0 // Round score for CTs new tscore = 0 // Round score for Ts // Code... public team_score() {      new team[32]     read_data(1,team,32)     if (equal(team,"CT"))         ctscore = read_data(2)     else if (equal(team,"TERRORIST"))         tscore = read_data(2)     return PLUGIN_CONTINUE }
Damocles is offline
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 19:20.


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