AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [CS:GO] How to find the current number and findout is it real round started? (https://forums.alliedmods.net/showthread.php?t=338193)

warrangie 06-16-2022 07:53

[CS:GO] How to find the current number and findout is it real round started?
 
At the beginning of a competitive game, the server fires the 'roundstart' and 'roundend' events several times, which is why I can't tell if these are real rounds or not. How to understand that the round is real? I mean that now they will play.

And how to get the real round number on the 'roundstart' event other than code below?
PHP Code:

(GetTeamScore(2) + GetTeamScore(3) + 1

I googled for quite a long time, but did not find any real solution :cry:

eyal282 06-19-2022 17:05

Re: [CS:GO] How to find the current number and findout is it real round started?
 
Quote:

Originally Posted by warrangie (Post 2781776)
At the beginning of a competitive game, the server fires the 'roundstart' and 'roundend' events several times, which is why I can't tell if these are real rounds or not. How to understand that the round is real? I mean that now they will play.

And how to get the real round number on the 'roundstart' event other than code below?
PHP Code:

(GetTeamScore(2) + GetTeamScore(3) + 1

I googled for quite a long time, but did not find any real solution :cry:

Did you try checking if warmup is active via GameRules_GetProp?

warrangie 06-20-2022 06:39

Re: [CS:GO] How to find the current number and findout is it real round started?
 
Yep, but I'm not sure is it right way.

eyal282 06-20-2022 13:11

Re: [CS:GO] How to find the current number and findout is it real round started?
 
Quote:

Originally Posted by warrangie (Post 2781981)
Yep, but I'm not sure is it right way.

Just try it.

You can use message senders like PrintToChatAll to send "debug" messages that will tell you the current warmup status and you can evaluate if it's doing what you intend for it to do.

warrangie 06-20-2022 13:29

Re: [CS:GO] How to find the current number and findout is it real round started?
 
Okay, thank you. But what about round number?

eyal282 06-23-2022 06:08

Re: [CS:GO] How to find the current number and findout is it real round started?
 
Quote:

Originally Posted by warrangie (Post 2782002)
Okay, thank you. But what about round number?

What is round number?

Edit: Can you check what this prints across several round_start events and/or a command you use during theround?

Code:

PrintToChatAll(GameRules_GetProp("m_totalRoundsPlayed"))


All times are GMT -4. The time now is 21:09.

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