Raised This Month: $ Target: $400
 0% 

[REQ] Restart after mapchange


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HalfLife
Senior Member
Join Date: Aug 2013
Location: I'll tell you later ;)
Old 08-31-2013 , 10:17   [REQ] Restart after mapchange
Reply With Quote #1

Hi, I need a very very very simple plugin as you can see the title. Just restart the server after 7 seconds of mapstart:
PHP Code:
server_cmd("restart"
__________________
If you need any help regarding your HL Server, PM me and I can help you
My Tutorials:
How to install and use your SQL Database using AMX Mod X Plugins
HalfLife is offline
akash_guptacosmos
Senior Member
Join Date: May 2013
Location: India,Kolkata
Old 08-31-2013 , 10:33   Re: [REQ] Restart after mapchange
Reply With Quote #2

plugin already exists
https://forums.alliedmods.net/showthread.php?p=346147
Edit it
__________________
Quote:
Originally Posted by joropito View Post
I use orpheu to cook pizza
Like my page Please

https://www.facebook.com/LolXdTRolled
akash_guptacosmos is offline
HalfLife
Senior Member
Join Date: Aug 2013
Location: I'll tell you later ;)
Old 08-31-2013 , 10:43   Re: [REQ] Restart after mapchange
Reply With Quote #3

Quote:
Originally Posted by akash_guptacosmos View Post
__________________
If you need any help regarding your HL Server, PM me and I can help you
My Tutorials:
How to install and use your SQL Database using AMX Mod X Plugins
HalfLife is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-31-2013 , 10:57   Re: [REQ] Restart after mapchange
Reply With Quote #4

Why would you want to create an infinite loop of restarts?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
HalfLife
Senior Member
Join Date: Aug 2013
Location: I'll tell you later ;)
Old 08-31-2013 , 11:05   Re: [REQ] Restart after mapchange
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
Why would you want to create an infinite loop of restarts?
Because one of my plugins has a bug that sometimes server gets stuck after map change so restart will fix it as I tried.
__________________
If you need any help regarding your HL Server, PM me and I can help you
My Tutorials:
How to install and use your SQL Database using AMX Mod X Plugins

Last edited by HalfLife; 08-31-2013 at 11:06.
HalfLife is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-31-2013 , 11:14   Re: [REQ] Restart after mapchange
Reply With Quote #6

Quote:
Originally Posted by HalfLife View Post
Because one of my plugins has a bug that sometimes server gets stuck after map change so restart will fix it as I tried.
But restarting the server 7 seconds after the plugin starts will cause it to only ever be up for 7 seconds. Plus, if you server hangs, a plugin isn't going to help you since it won't even be running
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
HalfLife
Senior Member
Join Date: Aug 2013
Location: I'll tell you later ;)
Old 08-31-2013 , 11:20   Re: [REQ] Restart after mapchange
Reply With Quote #7

Quote:
But restarting the server 7 seconds after the plugin starts will cause it to only ever be up for 7 seconds.
You mean the plugin will stop working?
Quote:
Plus, if you server hangs, a plugin isn't going to help you since it won't even be running
No, server does not hang and you can write in the console. But a plugin stops the server responding to the player. I tried many ways but I can't fix it specially because I have 99 plugins running in my server if I was going to disable them 1 by 1 my day and night was fucked up. The good thing is that it doesn't happen most of the time, otherwise my server will stop forever and it will not hang even to get restarted by HLSM.
__________________
If you need any help regarding your HL Server, PM me and I can help you
My Tutorials:
How to install and use your SQL Database using AMX Mod X Plugins
HalfLife is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 08-31-2013 , 11:37   Re: [REQ] Restart after mapchange
Reply With Quote #8

which plugin is causing the problem?
someone can fix it.
sami_spt is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-31-2013 , 11:45   Re: [REQ] Restart after mapchange
Reply With Quote #9

Quote:
Originally Posted by HalfLife View Post
You mean the plugin will stop working?
Since you can't understand, here is the script....

Code:
#include <amxmodx>

public plugin_init()
    set_task(7.0, "restart")

public restart()
    server_cmd("restart");
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
HalfLife
Senior Member
Join Date: Aug 2013
Location: I'll tell you later ;)
Old 08-31-2013 , 11:49   Re: [REQ] Restart after mapchange
Reply With Quote #10

Quote:
Originally Posted by YamiKaitou View Post
Since you can't understand, here is the script....

Code:
#include <amxmodx>

public plugin_init()
    set_task(7.0, "restart")

public restart()
    server_cmd("restart");
Oh lol got it so it will restart forever Okay okay I will try to fix it other way
__________________
If you need any help regarding your HL Server, PM me and I can help you
My Tutorials:
How to install and use your SQL Database using AMX Mod X Plugins
HalfLife 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 00:05.


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