Raised This Month: $ Target: $400
 0% 

[Help] Team Scores


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
emoD
Junior Member
Join Date: Oct 2007
Old 11-24-2007 , 16:53   [Help] Team Scores
Reply With Quote #1

Hello,

I Searched For An Hour But I Don't Find How To Fix It.
This Team Score Plugin on De_dust2 Map Count Only Counter-Terrorist's Score, on Cs_assault Map Count Only Terrorist's Score.
I Don't Know What To Do , Plz Help Me

Code:
new team_wins[2] public plugin_init() {  register_plugin(Plugin, Version, Author)    register_event("TeamScore", "team_score", "a")  register_event("HLTV", "new_round", "a", "1=0", "2=0") } public team_score() {  new team[2]  read_data(1, team, 1)    if(team[0] == 2)   team_wins[0] = read_data(2)    else if(team[0] == 1)   team_wins[1] = read_data(2)    return PLUGIN_CONTINUE } public new_round() {  set_hudmessage(255, 255, 255, 0.01, 0.18, 0, 6.0, 12.0)  show_hudmessage(0, "CT %d / TS %d", team_wins[0], team_wins[1])  client_print(0, print_chat,"C %d | %d T", team_wins[0], team_wins[1]) }


EDIT: I Just Need To Count Both Team Score Like There. Score_T For Terrorist Score And Score_CT For Counter-Terrorist Score.

Last edited by emoD; 11-24-2007 at 17:21.
emoD is offline
_Master_
Senior Member
Join Date: Dec 2006
Old 11-26-2007 , 08:05   Re: [Help] Team Scores
Reply With Quote #2

TeamScore event
1st: STRING - team_name ( either TERRORIST or CT )
2nd: SHORT - score

team[0] is either 'C' or 'T' not 0/1
_Master_ is offline
Reply


Thread Tools
Display Modes

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


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