[SOLVED][HELP] Setting team scores
Hi, I used the following method to set team scores on the scoreboard.
It works fine, but as the new round starts, the team scores set back according to the original values which they previously had. They do not continue according to the new values provided. Code:
|
Re: [HELP] Setting team scores
Store the score in array, and when the round starts, set it again
|
Re: [HELP] Setting team scores
Quote:
That can be done, but I was wondering if it could somehow just carry on using the new scores. Setting every round doesn't seem like the optimum way. Isn't there any way I can edit the variables where the actual scores are stored in the game? |
Re: [HELP] Setting team scores
I guess you can't. Maybe it is possible with Orpheu
|
Re: [HELP] Setting team scores
Quote:
It would be great if someone could provide the code. :oops: |
Re: [HELP] Setting team scores
You don't need orpheu.
|
Re: [HELP] Setting team scores
Try to add in plugin_init :
PHP Code:
Also, you have to understand that "TeamScore" message is just used to set the visual part of score on client hud, if you want to change the real value, you need to set some internal data that can only be accessed with orpheu module. Code i gave you will block messages that the game is sending, so only messages from the plugin gonna be received by players, it should be fine. |
Re: [HELP] Setting team scores
Thanks. But there's a small problem in applying that way. If I use sv_restart at some point, the team scores will not set back to 0-0, they will still be set according to g_tscore/g_ctscore.
|
Re: [HELP] Setting team scores
PHP Code:
|
Re: [HELP] Setting team scores
1 Attachment(s)
If you have Orpheu installed, then this is the easy way of life:
Spoiler
|
| All times are GMT -4. The time now is 10:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.