Auto Restart Round [ZE]
Auto Restart Round [ZE]
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
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
[mention]TheWhitesmith[/mention] can you convert it to work with our mod bro ?
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
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 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
you didn't give me nothin on telegram.
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
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.
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:
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
- TheWhitesmith
- Member
- Posts: 33
- Joined: 6 years ago
- Location: Temara/Rabat
- Contact:
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
IP: 149.202.251.74:27016
ok i'll test it and tell you how it's working ..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) } }
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.
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
Sometime's this plugin makes the server crash so advicing you guys not to use it when the server has many players?
LOL
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.
But it still crashes thats a major problem bro..i hope raheem fixes it
LOL
for me the plugin is working fine without any problem.
try to explain more to understand you how it works and when ?
try to explain more to understand you how it works and when ?
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!
sometimes this plugin makes the server crash in the first round as soon as the countdown finishes!
LOL
yea i'm using latest update bro and there is no bug in this plugin.
-
- Veteran Member
- Posts: 678
- Joined: 7 years ago
- Location: Paraguay
- Contact:
There maybe another plugin which crashing your server
Nobody Is That Busy If They Make Time
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
Sign in
Who is online
Users browsing this forum: No registered users and 1 guest