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

Members Online

»
1 Active | 19 Guests
Online:

LATEST FORUM THREADS

»
water
CoD4 MP Mapping
ugw2gold
Starcraft 2
Rainbow HELP....
CoD4 MP 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, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: Announcer Help
L3uX
General Member
Since: Mar 14, 2012
Posts: 20
Last: May 6, 2013
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Monday, Jul. 23, 2012 12:35 pm
Hey guys,
i have create a announcer system but it dont work, i have create a thread on CheckTime and this looks;

Code:
	if(level.timelimit <= 0)
	{
		thread Time_Check();
		return;
	}


and the function:

Code:
	if( level.timelimit == 60)
	{
		IPrintlnBold("^2- T^7ime ^2L^7eft: ^560 ^2-");
		for(i=0;i < players.size;i++)
		{
			players[i] playLocalSound("wgc_60s");
		}
	}


if time is on 0:60 it dont do anythink.

edited on Jul. 23, 2012 01:30 pm by L3uX
Share |
kaje11
General Member
Since: Oct 16, 2010
Posts: 8
Last: Jul 23, 2012
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Monday, Jul. 23, 2012 01:01 pm
Code:
if(level.timelimit <= 0)

Basics of mathematic.
Share |
L3uX
General Member
Since: Mar 14, 2012
Posts: 20
Last: May 6, 2013
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Monday, Jul. 23, 2012 01:29 pm
Are you kidding me?

I will post the Printbold if the time is 0:60.
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Monday, Jul. 23, 2012 03:12 pm
are YOU kidding ME?
level.timelimit is the timeLIMIT not the time REMAINING.

You can easily calculate the time remaining. Take a good look at the original script that decides wheter or not the time is over.
Share |
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Why console gaming is dying
Quote:Consider this: Dedicated gaming sales — including living-room consoles...
Devs: Games are being dumb...
Click 'read more' to view the contents of this post.
Loadout
Gun Crafting to the Max. edited on Sep. 25, 2012 06:57 pm by Morp...
Introducing the Source Fil...
Surprised this wasn't made a long time ago. Sounds like a nice little feature.
Introducing the Source Fil...
The Source Filmmaker (SFM) is the movie-making tool built and used by us he...

Partners & Friends

»