This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

the event TeamScore


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
breaddawson
Senior Member
Join Date: Jul 2004
Location: Beijing,China
Old 11-02-2004 , 00:12   the event TeamScore
Reply With Quote #1

i know this event can be used to get the team's score
just like this

Code:
register_event("TeamScore","new_score","a")

but what i'm puzzled is that
it seems if u write like this
the function new_score will be called both at round_start and round_end
or something else
anyway,it'll be called twice together

er,i just want to be clear
when will the event TeamScore occur?

thx!
__________________
i'm bread dawson ,a chinese boy
wish u be happy~
breaddawson is offline
Send a message via ICQ to breaddawson Send a message via MSN to breaddawson
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 11-02-2004 , 08:09  
Reply With Quote #2

I'm pretty sure it occurs when you juust said. You can "force" an update to go to all the clients though.
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
breaddawson
Senior Member
Join Date: Jul 2004
Location: Beijing,China
Old 11-02-2004 , 08:41  
Reply With Quote #3

i just wrote a plugin to test it
just like this

Code:
#include <amxmodx> new score=0; public plugin_init() {     register_event("TeamScore","team","a");     return PLUGIN_CONTINUE; } public team(id) {     client_print(id,print_chat,"the %d st time",++score);     return PLUGIN_CONTINUE; }


and if u test it
u will find when the round is ended
it print out "the 1 st time"& "the 2st time"together
why?
does the event tell u the t's score and the ct's score one by one?
for example like this
if the round is ended ant ct:t is 2:0
then the event's format is like this
Code:
CT 2
then
Code:
TERRORIST 0
or

Code:
TeamScore CT 2
then
Code:
TeamScore TERRORIST 0
__________________
i'm bread dawson ,a chinese boy
wish u be happy~
breaddawson is offline
Send a message via ICQ to breaddawson Send a message via MSN to breaddawson
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 10:20.


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