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

Members Online

»
0 Active | 76 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 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: thread custom tables on an online server
kimistatheone
General Member
Since: Mar 1, 2012
Posts: 47
Last: May 2, 2013
[view latest posts]
Level 2
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, May. 16, 2012 01:39 pm
hello.

i have a mod and a server. if i change something in the mod, i have to restart my server or use a maprotation.
i would like to apply the changes without restart/maprot.

i try write somthing, but didnt works.

Code:


setcvar ("fvs", "maps/mp/force::init()");

slow()
{
	setcvar("slow", "");
	while(1)
	{	
	wait 1;
	if(getcvar("slow") !="")
		{
fvs = getcvar("fv");
thread fvs;
		}
	setcvar("slow", "");
	}
}



is it immpossible to solve it?
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, May. 16, 2012 06:13 pm
the engine reads all your scripts during starting sequence of your server
this way you can delete/modify/whatever your script files, the engine doesnt care about that while it is running
so you !!cannot!! change your scripts while the server is running
also
'level thread maps\mp\gametypes::getCvar( "function" );'
will never ever work, you need to run a functionPointer and getCvar() returns a string..
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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

»