Raised This Month: $32 Target: $400
 8% 

Rebooter


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   devicenull (200)
Poison_Jay
Senior Member
Join Date: May 2004
Old 07-10-2004 , 11:29   Rebooter
Reply With Quote #1

I Was Playing With My Buddy Admin In A Server When It Felt Laggy, I

Told Him To Try Rebooting But He Didn't Have Rcon XS, So I Thought

Maybe Make A Standalone Reboot Command...

I Know It Looks Like a 30Seconds Job But I Toke A Whole Hour...

and it might now work

(hey i'm really really new at plugins)
Attached Files
File Type: sma Get Plugin or Get Source (reboot.sma - 2574 views - 648 Bytes)
Poison_Jay is offline
Send a message via MSN to Poison_Jay
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 07-10-2004 , 11:41  
Reply With Quote #2

yeah works just like the amx_quit plugin.
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
Poison_Jay
Senior Member
Join Date: May 2004
Old 07-10-2004 , 11:56  
Reply With Quote #3

opps i did a seach and typed reboot but i didn't find any plugin, didn't know there's a amx_quit, sorry...
Poison_Jay is offline
Send a message via MSN to Poison_Jay
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 07-10-2004 , 12:02  
Reply With Quote #4

its cool good plugin
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
Poison_Jay
Senior Member
Join Date: May 2004
Old 07-10-2004 , 12:10  
Reply With Quote #5

problem is what if there's no auto rebooter...

well most server do...

maybe they should add this to the default amx commands
Poison_Jay is offline
Send a message via MSN to Poison_Jay
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 07-10-2004 , 12:35  
Reply With Quote #6

Code:
#include <amxmodx> public plugin_init() register_concmd("amx_restartserver","restarts",ADMIN_RCON,"Restarts server") public restarts(id) {     if (get_user_flags(id)&ADMIN_RCON)         server_cmd("restart")     return PLUGIN_HANDLED }

Theres the short way of doing it
If you use either "reload" or "restart" the clients will auto-reconnect after the server reboots ;)

Thats uh, 8 lines of code, and you could probably get it down farther if you tried

You do know you can do amx_rcon restart, too?
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
Poison_Jay
Senior Member
Join Date: May 2004
Old 07-10-2004 , 12:40  
Reply With Quote #7

you see, sometimes u dun wanna give people rcon cuz it's dangerous, but just give they the level to reboot incase of lag

and i want a hudmessage to appear 3seconds before reboot
Poison_Jay is offline
Send a message via MSN to Poison_Jay
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-10-2004 , 12:44  
Reply With Quote #8

yo man, in ur topic, take out Plugin:
that appears in ur topic when its approved
now it has 2 since it was approved
__________________
Burnzy is offline
Send a message via AIM to Burnzy
Poison_Jay
Senior Member
Join Date: May 2004
Old 07-10-2004 , 12:47  
Reply With Quote #9

done, thx for approvel devil
Poison_Jay is offline
Send a message via MSN to Poison_Jay
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 07-10-2004 , 13:03  
Reply With Quote #10

lmao devicenull != devil
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
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 01:30.


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