Plugin Available Auto Restart Round [ZE]

Unpaid Requests, Public Plugins
User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 633
Joined: 2 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

Auto Restart Round [ZE]

#1

Post by Spir0x » 1 Year Ago

Hi please can anyone convert this plugin to ze ?
When map changed first round stay "30" seconds with cvars on this plugin & round will be restarted.
https://forums.alliedmods.net/showthrea ... 8?p=789518
I trynna make money, not friends.

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 633
Joined: 2 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

#2

Post by Spir0x » 1 Year Ago

@TheWhitesmith can you convert it to work with our mod bro ?
I trynna make money, not friends.

Rain1153
Senior Member
Senior Member
India
Posts: 277
Joined: 1 Year Ago
Has thanked: 2 times
Been thanked: 1 time
Age: 18
Contact:

#3

Post by Rain1153 » 1 Year Ago

Hey bro i'm using this plugin for the similar situation https://forums.alliedmods.net/showthread.php?p=939384 Trust me this one is cool
LOL

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 633
Joined: 2 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

#4

Post by Spir0x » 1 Year Ago

you are using this on zombie escape with this mod ? are you sure
i tryed it yesterday and nothin work like the one i gived.
I trynna make money, not friends.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1962
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 21
Contact:

#5

Post by Raheem » 1 Year Ago

Spir0x wrote:
1 Year Ago
you are using this on zombie escape with this mod ? are you sure
i tryed it yesterday and nothin work like the one i gived.
One i told you to test on telegram not working?
You don't know? Learn and you will know.

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 633
Joined: 2 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

#6

Post by Spir0x » 1 Year Ago

you didn't give me nothin on telegram.
I trynna make money, not friends.

Rain1153
Senior Member
Senior Member
India
Posts: 277
Joined: 1 Year Ago
Has thanked: 2 times
Been thanked: 1 time
Age: 18
Contact:

#7

Post by Rain1153 » 1 Year Ago

Spir0x wrote:
1 Year Ago
you are using this on zombie escape with this mod ? are you sure
i tryed it yesterday and nothin work like the one i gived.
it worked bro for me the round restarted after "n" time which is set in cvar..Just set the required cvars
also put this amx_restart_round "1"
LOL

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1962
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 21
Contact:

#8

Post by Raheem » 1 Year Ago

As all these plugins won't work with our Mod, I coded one for our Mod but HOW IT'S WORKING? Simply it will restart in x seconds the first round after map changes. Game must start and it only will restart after map change. restart_time 30 This CVAR you can use to set restart time.

Why i may use this? I asked same question when ArMaGeDDoN tells me to develop one for him, I see it's useless but he tells me: First round after map changes maybe there is some players still downloading or not all players come in so it's better to restart this first round so we don't loose it.

Here it's:

Code: Select all

#include <zombie_escape>

#define TIMER_TASK 2018

// Pointers
new g_pCvarRestartTime

// Variables
new bool:g_bFirstRound = false, g_iCounter

public plugin_init()
{
	register_plugin("First Round Restart", "1.0", "Raheem")
	
	// Cvars
	g_pCvarRestartTime = register_cvar("restart_time", "30") // Restart time in seconds
	
	// Initial Values (-1 Hard Coded Value)
	g_iCounter = get_pcvar_num(g_pCvarRestartTime) - 1
}

public ze_game_started()
{
	if (!g_bFirstRound)
	{
		g_bFirstRound = true
		server_cmd("sv_restartround %d", get_pcvar_num(g_pCvarRestartTime))
		set_task(1.0, "TimeCounter", TIMER_TASK, _, _, "a", get_pcvar_num(g_pCvarRestartTime))
	}
}

public TimeCounter()
{
	new iNum = g_iCounter --
	new szNum[32]
	
	if (iNum <= 0)
		return
	
	client_print(0, print_center, "Round Will Restart IN: %d!!!", iNum)
	
	if (iNum < 11)
	{
		num_to_word(iNum, szNum, charsmax(szNum))
		client_cmd(0,"speak ^"vox/%s^"", szNum)
	}
}
You don't know? Learn and you will know.

User avatar
TheWhitesmith
Member
Member
Morocco
Posts: 33
Joined: 2 Years Ago
Location: Temara/Rabat
Has thanked: 1 time
Been thanked: 2 times
Age: 19
Contact:

#9

Post by TheWhitesmith » 1 Year Ago

You can also edit the ze_core to make it recognize the first round and add 30 sec to the set zombie countdown. Maybe?
[SYA] CSGO-Mod for CS 1.6 [ Cases/Keys/Rank ]
IP: 149.202.251.74:27016

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 633
Joined: 2 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

#10

Post by Spir0x » 1 Year Ago

Raheem wrote:
1 Year Ago
As all these plugins won't work with our Mod, I coded one for our Mod but HOW IT'S WORKING? Simply it will restart in x seconds the first round after map changes. Game must start and it only will restart after map change. restart_time 30 This CVAR you can use to set restart time.

Why i may use this? I asked same question when ArMaGeDDoN tells me to develop one for him, I see it's useless but he tells me: First round after map changes maybe there is some players still downloading or not all players come in so it's better to restart this first round so we don't loose it.

Here it's:

Code: Select all

#include <zombie_escape>

#define TIMER_TASK 2018

// Pointers
new g_pCvarRestartTime

// Variables
new bool:g_bFirstRound = false, g_iCounter

public plugin_init()
{
	register_plugin("First Round Restart", "1.0", "Raheem")
	
	// Cvars
	g_pCvarRestartTime = register_cvar("restart_time", "30") // Restart time in seconds
	
	// Initial Values (-1 Hard Coded Value)
	g_iCounter = get_pcvar_num(g_pCvarRestartTime) - 1
}

public ze_game_started()
{
	if (!g_bFirstRound)
	{
		g_bFirstRound = true
		server_cmd("sv_restartround %d", get_pcvar_num(g_pCvarRestartTime))
		set_task(1.0, "TimeCounter", TIMER_TASK, _, _, "a", get_pcvar_num(g_pCvarRestartTime))
	}
}

public TimeCounter()
{
	new iNum = g_iCounter --
	new szNum[32]
	
	if (iNum <= 0)
		return
	
	client_print(0, print_center, "Round Will Restart IN: %d!!!", iNum)
	
	if (iNum < 11)
	{
		num_to_word(iNum, szNum, charsmax(szNum))
		client_cmd(0,"speak ^"vox/%s^"", szNum)
	}
}
ok i'll test it and tell you how it's working ..

i requested it before Armageddon i think.

then why : client_print(0, print_center, "Round Will Restart IN: %d!!!", iNum)
i think if you change it to blue hud chat one is better.
I trynna make money, not friends.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests