AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Help] Team Scores (https://forums.alliedmods.net/showthread.php?t=63573)

emoD 11-24-2007 16:53

[Help] Team Scores
 
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 :cry:

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.

_Master_ 11-26-2007 08:05

Re: [Help] Team Scores
 
TeamScore event
1st: STRING - team_name ( either TERRORIST or CT )
2nd: SHORT - score

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


All times are GMT -4. The time now is 01:18.

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