Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 102 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Quit the server via code?
Hajas
General Member
Since: Feb 25, 2008
Posts: 37
Last: Oct 2, 2018
[view latest posts]
Level 2
Category: CoD4 Scripting
Posted: Tuesday, Feb. 18, 2014 09:05 pm
Hello,

anyone figured out which function the Quit command calls to shutdown the server?

or any other way to force the server to Quit via CODE?

thank you
Share |
Ni3ls
General Member
Since: Nov 7, 2008
Posts: 256
Last: Sep 9, 2017
[view latest posts]
Level 5
Category: CoD4 Scripting
Posted: Wednesday, Feb. 19, 2014 02:43 pm
/killserver?
Share |
Hajas
General Member
Since: Feb 25, 2008
Posts: 37
Last: Oct 2, 2018
[view latest posts]
Level 2
Category: CoD4 Scripting
Posted: Wednesday, Feb. 19, 2014 08:54 pm
not exaclty... this is a server command that we can't (at least I don't know how) input via script to the server... :(

it's like the Quit or Status commands...

in Quake engine we have the function Cbuf_ExecuteText

with that we can send any command to the server via code like we were in the console.

for exemple:

Code:
Cbuf_ExecuteText(EXEC_NOW, "quit");


then the server will quit... should have some similar function in COD4 engine too, but don't know which the function is.

with that function will solve several of my problems, like some commands can't be replicated with perfection via code.

any other ideas/inputs will be great.

thanks!

edited on Feb. 19, 2014 01:57 pm by Hajas
Share |
Hajas
General Member
Since: Feb 25, 2008
Posts: 37
Last: Oct 2, 2018
[view latest posts]
Level 2
Category: CoD4 Scripting
Posted: Thursday, Feb. 20, 2014 08:18 pm
I figure out a way to suceed without the need of restart the server.

I'll make a new post with the new problem.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»