AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Can anyone help? (https://forums.alliedmods.net/showthread.php?t=24713)

silversinner 03-01-2006 12:14

Can anyone help?
 
Hey im new to these forums... For the last 2 years ive been using amxmodx plugins for not only my server but with helping friends with their servers aswell, and its come to the time where I'd like to start scripting amx plugins my self, not only for my benifit but for my friends and plain stranger's who would like to use them. Anyway my question is can anyone help me with this plugin i am going to make? It is going to be an amx_restart plugin (Yes i know its already posted but its not what i needed) basicly my friend who has a wicked ass dedicated! After about 11 - 13 hours of it being conastantly up HLTV fails and closes the server down... Now i just need a little help on how to create a plugin that will restart the server automaticly rather then him having to come on every 10 hours and resetting it him self cause its basicly becoming his life making sure the server up!... But also for the sake of it i thought "Why not also add a amx_restart command" That non-god admins can use to reset server anyway.. now all i am asking for is someone can help me witha command that completly restarting a server? Now i know there is sv_restart but that just restarts the rounds back to 0 and all the frags ect. I want something that will restart the ENTIRE server?

If anyone can help i'll really appreciate it!

Sincerly
Silversinner

VEN 03-01-2006 12:26

You can't do that with simple command. You can shutdown the server and then start it again with some kind of program automatically.

silversinner 03-01-2006 12:39

well something has to go into register_srvcmd("amx_restart" "" "") And i know it is possilbe to restart a server from a command maybe not a simple one... i said that wrong.... BUt i do know it is possilb eot restart theenitre server from a command ! Look at this:

http://forums.alliedmods.net/showthread.php?p=204799

Surely there is a way to make that automatic and restart the server after a desired amount of time... And also make a command that can set the amount of time ? I may be going totally down the wrong road with this... Well anyway... Ive searched high and low for a program that does that.... i know there are scripts that do it but i havnt been able to find any

VEN 03-01-2006 13:42

That plugin simply executes two command from the server console ("restart" and "quit") but this is not same as ENTIRE server restart.
You can't do what you want with plugin.


All times are GMT -4. The time now is 20:20.

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