AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Advance Restart (https://forums.alliedmods.net/showthread.php?t=92715)

darklord1474 05-18-2009 17:11

Advance Restart
 
2 Attachment(s)
Version 2.2 is out!

Any problems or requests please post on this site.

http://wwww.panicsoftware.co.uk/projects/show/advancerestart


also all updates will be place on this site from now on.


Allows an admin to restart a server and warn the users that the server is about to be restarted.

This is my first plugin I've released (be gentle :])

To Do.
If you can think of anything else that you would want this plugin to do, please say.
Code:

-Reason for restart
-Admin Logging
-Stop restart command  - Done
-Timed Restarts with reasons stored in SQL
-Admin Menu with restart reasons.
-Options for different typed of Messaging (say,csay etc) - Done
-Translations?
-choice to use different sound files

Commands
Code:

  sm_restart - Restarts the server
    Usage: sm_restart <seconds Between 0 and 120>
  sm_stoprestart - Stops the restart
    Usage: sm_stoprestart

Cvars
Code:

// Sets whether messages are sent to hintsay
sm_ar_hintsay 1

//Sets whether messages are sent to chatsay
sm_ar_chatsay  1

//Sets whether messages are sent to centersay
sm_ar_centersay 1


MadMakz 05-18-2009 17:26

Re: Advance Restart
 
donno if itīs just me, but iīve seen _restart failing lot of times (crashing to dead).
i still donīt think thereīs any proper way to do a "failsafe" restart from within the game (exept "shutdown" on L4D maybe).

ty anyway, idea is good and might work for most!

darklord1474 05-19-2009 18:54

Re: Advance Restart
 
I couldn't find any but if anyone knows please tell me and i will update my plug-in.

-Sky 05-24-2009 17:58

Re: Advance Restart
 
hmm.. good if u can make it at Hint Area instead or Center

darklord1474 05-24-2009 18:21

Re: Advance Restart
 
yea, i was planning on making it do center say, chat say and hint say and then i will give options to allow you to choose. im also thinking of giving the choice of how many times it says in chat so they can choose if they want to spam chat out with "server restart" or not.

-Sky 05-25-2009 08:30

Re: Advance Restart
 
sorry for previous post. what i meant was it'll be great if you can make it display at Hint Area instead of Center. cos Center is too small to read. :)

DJ Tsunami 05-25-2009 13:33

Re: Advance Restart
 
You need to fill out the plugin description, version and public cvar fields for plugins to be approved.

darklord1474 05-25-2009 14:45

Re: Advance Restart
 
-Sky I've updated it so you can choose how you want it to be displayed.

is that what you meant?

-Sky 05-26-2009 00:44

Re: Advance Restart
 
absolutely.. nice work! best plug-in I've got! :)

DaFox 05-27-2009 07:49

Re: Advance Restart
 
You should merge the cvars into one, I.e.

sm_advrest_message #
1 (hint text only)
2 (chat text only)
4 (center text only)
5 (center + hint)
6 (center + chat)
7 (all 3)
3 (hint + chat)
ect


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

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