AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   [REQ] Module (https://forums.alliedmods.net/showthread.php?t=125418)

-B1ng0- 04-28-2010 06:31

[REQ] Module
 
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.

Seta00 04-28-2010 17:15

Re: [REQ] Module
 
Quote:

Originally Posted by -B1ng0- (Post 1163138)
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?

-B1ng0- 04-28-2010 17:20

Re: [REQ] Module
 
Quote:

Originally Posted by Seta00 (Post 1163755)
You mean executing commands on server shutdown?! Or only if you use the function provided by the module?

On server shutdown

fysiks 04-28-2010 17:51

Re: [REQ] Module
 
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.

AntiBots 04-28-2010 17:51

Re: [REQ] Module
 
I don't understand :P

Seta00 04-28-2010 21:05

Re: [REQ] Module
 
Quote:

Originally Posted by -B1ng0- (Post 1163768)
On server shutdown

What types of commands? Server commands or external commands? Can you be more detailed?

-B1ng0- 04-29-2010 06:58

Re: [REQ] Module
 
Quote:

Originally Posted by Seta00 (Post 1163952)
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 :)

Seta00 04-29-2010 07:57

Re: [REQ] Module
 
Quote:

Originally Posted by -B1ng0- (Post 1164238)
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.

-B1ng0- 04-30-2010 11:23

Re: [REQ] Module
 
Quote:

Originally Posted by Seta00 (Post 1164266)
I'll code something for you as soon as I get home.

Thx

Seta00 05-01-2010 15:04

Re: [REQ] Module
 
After coding the whole thing, I found out there's no way to differ server shutdown from changelevel... :cry:

You can always modify your HLDS launcher script to execute the SQL commands after HLDS quit.


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

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