Available Auto Restart Round [ZE]

Unpaid Requests, Public Plugins
Post Reply
User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

Auto Restart Round [ZE]

#1

Post by Spir0x » 6 years 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

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#2

Post by Spir0x » 6 years ago

[mention]TheWhitesmith[/mention] can you convert it to work with our mod bro ?

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 6 years ago
Contact:

#3

Post by Rain1153 » 6 years 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: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#4

Post by Spir0x » 6 years 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.

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#5

Post by Raheem » 6 years ago

Spir0x wrote: 6 years 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?
He who fails to plan is planning to fail

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#6

Post by Spir0x » 6 years ago

you didn't give me nothin on telegram.

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 6 years ago
Contact:

#7

Post by Rain1153 » 6 years ago

Spir0x wrote: 6 years 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
Posts: 2214
Joined: 7 years ago
Contact:

#8

Post by Raheem » 6 years 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)
	}
}
He who fails to plan is planning to fail

User avatar
TheWhitesmith
Member
Member
Morocco
Posts: 33
Joined: 6 years ago
Location: Temara/Rabat
Contact:

#9

Post by TheWhitesmith » 6 years 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 ][/size]
IP: 149.202.251.74:27016

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#10

Post by Spir0x » 6 years ago

Raheem wrote: 6 years 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.

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#11

Post by Raheem » 6 years ago

Center chat message is better i think, And it's simple you can change it to Text HUD message.
He who fails to plan is planning to fail

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 6 years ago
Contact:

#12

Post by Rain1153 » 6 years ago

Sometime's this plugin makes the server crash so advicing you guys not to use it when the server has many players?
LOL

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#13

Post by Spir0x » 6 years ago

dude this plugin is supported with a special ze_core not with default one... i already explained it 1 month ago but i didn't find the topic on any section.

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 6 years ago
Contact:

#14

Post by Rain1153 » 6 years ago

But it still crashes thats a major problem bro..i hope raheem fixes it
LOL

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#15

Post by Spir0x » 6 years ago

for me the plugin is working fine without any problem.
try to explain more to understand you how it works and when ?

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 6 years ago
Contact:

#16

Post by Rain1153 » 6 years ago

the mod you are using is v 1.2 right?....
sometimes this plugin makes the server crash in the first round as soon as the countdown finishes!
LOL

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#17

Post by Spir0x » 6 years ago

yea i'm using latest update bro and there is no bug in this plugin.

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#18

Post by johnnysins2000 » 6 years ago

Rain1153 wrote: 6 years ago the mod you are using is v 1.2 right?....
sometimes this plugin makes the server crash in the first round as soon as the countdown finishes!
There maybe another plugin which crashing your server
Nobody Is That Busy If They Make Time :roll:

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 8 guests