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

Members Online

»
0 Active | 64 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: small answer
mike93
General Member
Since: Feb 22, 2009
Posts: 27
Last: Jan 5, 2010
[view latest posts]
Level 2
Category: CoD4 Scripting
Posted: Thursday, Aug. 20, 2009 03:48 pm
anyone know how i can make this text?
Share |
Pedsdude
General Member
Since: Sep 4, 2004
Posts: 1
Last: Aug 20, 2009
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Thursday, Aug. 20, 2009 04:33 pm
Nice, that's from my map :)

Create a trigger_multiple at the end of your map, and give it a targetname, for example, of 'the_end'. Then have the following thread in your .gsc:

Code:
endofmap()
{
trigger = getent("the_end","targetname");

	while (1)
	{
		trigger waittill ("trigger", user );
		if ( isPlayer( user ) && isAlive( user ) && isdefined( user.done ) )
					{
					wait 0.5;
					}
		else
			{
user iprintlnbold ("Congratulations, " + user.name + ", you have completed the map!");
user iprintlnbold ("^1-^9= ^1CoD^8Jumper^3.^7com ^3- ^7For all your CoDJumping needs! ^9=^1-");		
			user.done = true;
			}
	}
}


The user.done helps to determine if they've triggered it before, so that it doesn't repeat every time they reach it.
Share |
mike93
General Member
Since: Feb 22, 2009
Posts: 27
Last: Jan 5, 2010
[view latest posts]
Level 2
Category: CoD4 Scripting
Posted: Thursday, Aug. 20, 2009 04:34 pm
thanks

edited on Aug. 20, 2009 12:57 pm by mike93
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

»