Raised This Month: $32 Target: $400
 8% 

(Req CSGO) Round start countdown


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
game.pwd
Junior Member
Join Date: Mar 2019
Old 04-08-2020 , 07:23   (Req CSGO) Round start countdown
Reply With Quote #1

Hello guys , anyone knows an working plugin for round start countdown

For example when a new round starts there is a countdown with sound and hint message

Thank you
game.pwd is offline
DiogoOnAir
Senior Member
Join Date: Jul 2018
Location: Portugal
Old 04-11-2020 , 23:28   Re: (Req CSGO) Round start countdown
Reply With Quote #2

Add me on discord or steam!
__________________
I accept Private(Paid) plugins requests
If you like my job donate me Here
Feel free to add me on Steam
Feel free to add me on Discord DiogoOnAir | Config & Developer#7961
Check my website
If you want to buy any server, you can buy it from here!
Datacenters around the world!
DiogoOnAir is offline
LuqS
AlliedModders Donor
Join Date: Jun 2019
Location: Israel
Old 04-15-2020 , 06:45   Re: (Req CSGO) Round start countdown
Reply With Quote #3

Only Count-Down and current round (also you need to have warmup enabled because it effects the round counting):

PHP Code:
#include <sourcemod>

#pragma newdecls required
#pragma semicolon 1

int g_iCurrentRound;
int g_iWarmupTime;

public 
Plugin myinfo 
{
    
name "Round-Start Counter"
    
author "LuqS",
    
description ""
    
version "1.0"
    
url "https://steamcommunity.com/id/LuqSGood"
};

public 
void OnPluginStart()
{
    if (
GetEngineVersion() != Engine_CSGO)
        
SetFailState("This plugin is for CSGO only.");
    
    
HookEvent("round_start"Event_RoundStart);
}

public 
void OnMapStart()
{
    
g_iCurrentRound = -2// Because game only starts on the Third occurrence of "round_start" event (Source: https://forums.alliedmods.net/showthread.php?t=201793)
}

public 
Action Event_RoundStart(Event event, const char[] namebool dontBroadcast)
{
    if(
g_iCurrentRound++ >= 0)
    {
        
g_iWarmupTime GetConVarInt(FindConVar("mp_freezetime")) - 1;
        
CreateTimer(1.0Timer_FreezeTimeEnd_TIMER_REPEAT);
    }
}

public 
Action Timer_FreezeTimeEnd(Handle timer)
{
    if(
g_iWarmupTime <= 0)
    {
        
PrintCenterTextAll("GL HF!");
        return 
Plugin_Stop;
    }
    
    
PrintCenterTextAll("Current Round: %d\nRound Start In:%d Seconds"g_iCurrentRoundg_iWarmupTime--);
    return 
Plugin_Continue;

Attached Files
File Type: sp Get Plugin or Get Source (RoundStartCounter.sp - 146 views - 1.2 KB)
__________________
You like my work? You want to support?
Consider Donating!

Need signatures / offsets for CS:GO?
Contact me:
LuqS is offline
Reply



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 20:54.


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