Raised This Month: $51 Target: $400
 12% 

[REQ] Module


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
-B1ng0-
Member
Join Date: Nov 2009
Old 04-28-2010 , 06:31   [REQ] Module
Reply With Quote #1

Hello guys!
I don't know if it posible but i say....
I want a module with one public (public srvshutdown) and when i close server console or shudown server with this public execute last commands.

if possible and someone knows how to do it will be very good.

Thanks and sory for my bad english.
-B1ng0- is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 04-28-2010 , 17:15   Re: [REQ] Module
Reply With Quote #2

Quote:
Originally Posted by -B1ng0- View Post
Hello guys!
I don't know if it posible but i say....
I want a module with one public (public srvshutdown) and when i close server console or shudown server with this public execute last commands.

if possible and someone knows how to do it will be very good.

Thanks and sory for my bad english.
You mean executing commands on server shutdown?! Or only if you use the function provided by the module?
Seta00 is offline
-B1ng0-
Member
Join Date: Nov 2009
Old 04-28-2010 , 17:20   Re: [REQ] Module
Reply With Quote #3

Quote:
Originally Posted by Seta00 View Post
You mean executing commands on server shutdown?! Or only if you use the function provided by the module?
On server shutdown
-B1ng0- is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-28-2010 , 17:51   Re: [REQ] Module
Reply With Quote #4

All cvars will be reset to what is in server.cfg and amxx.cfg or whatever else is loaded at map start. Unless you are wanting to write to a file (or something similar) then it won't do any good. FYI.
__________________
fysiks is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 04-28-2010 , 17:51   Re: [REQ] Module
Reply With Quote #5

I don't understand
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 04-28-2010 , 21:05   Re: [REQ] Module
Reply With Quote #6

Quote:
Originally Posted by -B1ng0- View Post
On server shutdown
What types of commands? Server commands or external commands? Can you be more detailed?
Seta00 is offline
-B1ng0-
Member
Join Date: Nov 2009
Old 04-29-2010 , 06:58   Re: [REQ] Module
Reply With Quote #7

Quote:
Originally Posted by Seta00 View Post
What types of commands? Server commands or external commands? Can you be more detailed?
Ohh i want when i close server console or shutdown server to exectue an sql update or insert
-B1ng0- is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 04-29-2010 , 07:57   Re: [REQ] Module
Reply With Quote #8

Quote:
Originally Posted by -B1ng0- View Post
Ohh i want when i close server console or shutdown server to exectue an sql update or insert
I'll code something for you as soon as I get home.
Seta00 is offline
-B1ng0-
Member
Join Date: Nov 2009
Old 04-30-2010 , 11:23   Re: [REQ] Module
Reply With Quote #9

Quote:
Originally Posted by Seta00 View Post
I'll code something for you as soon as I get home.
Thx
-B1ng0- is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 05-01-2010 , 15:04   Re: [REQ] Module
Reply With Quote #10

After coding the whole thing, I found out there's no way to differ server shutdown from changelevel...

You can always modify your HLDS launcher script to execute the SQL commands after HLDS quit.
Seta00 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 10:07.


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