Raised This Month: $12 Target: $400
 3% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
warrangie
Junior Member
Join Date: Aug 2020
Old 06-16-2022 , 07:53   [CS:GO] How to find the current number and findout is it real round started?
Reply With Quote #1

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
warrangie is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 06-19-2022 , 17:05   Re: [CS:GO] How to find the current number and findout is it real round started?
Reply With Quote #2

Quote:
Originally Posted by warrangie View Post
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
Did you try checking if warmup is active via GameRules_GetProp?
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
warrangie
Junior Member
Join Date: Aug 2020
Old 06-20-2022 , 06:39   Re: [CS:GO] How to find the current number and findout is it real round started?
Reply With Quote #3

Yep, but I'm not sure is it right way.
warrangie is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 06-20-2022 , 13:11   Re: [CS:GO] How to find the current number and findout is it real round started?
Reply With Quote #4

Quote:
Originally Posted by warrangie View Post
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.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334

Last edited by eyal282; 06-20-2022 at 13:11.
eyal282 is offline
warrangie
Junior Member
Join Date: Aug 2020
Old 06-20-2022 , 13:29   Re: [CS:GO] How to find the current number and findout is it real round started?
Reply With Quote #5

Okay, thank you. But what about round number?
warrangie is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 06-23-2022 , 06:08   Re: [CS:GO] How to find the current number and findout is it real round started?
Reply With Quote #6

Quote:
Originally Posted by warrangie View Post
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"))
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334

Last edited by eyal282; 06-23-2022 at 06:10.
eyal282 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 08:22.


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