Raised This Month: $ Target: $400
 0% 

Solved [CSGO] Best way to detect First Round?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
FroGeX
Senior Member
Join Date: Aug 2020
Old 12-22-2022 , 20:42   Re: [CSGO] Best way to detect First Round?
Reply With Quote #3

Quote:
Originally Posted by Bacardi View Post
Don't know, what are you planning.


PHP Code:
public void OnPluginStart()
{
    
HookEvent("begin_new_match"match);                // trigger at round_start
    
HookEvent("round_announce_match_start"match);    // trigger at round_freeze_end
}

public 
void match(Event event, const char[] namebool dontBroadcast)
{
    
PrintToChatAll("%s - First round found!"name);

better
PHP Code:
public void OnPluginStart()
{
    
HookEvent("round_start"match);                // trigger at round_start
    
HookEvent("round_freeze_end"match);    // trigger at round_freeze_end
}

public 
void match(Event event, const char[] namebool dontBroadcast)
{
    
PrintToChatAll("%s - First round found!"name);

FroGeX is offline
 


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 13:16.


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