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

Members Online

»
0 Active | 37 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: promodlive all versions with custome message and sounds
embodio
General Member
Since: Sep 10, 2012
Posts: 13
Last: Oct 7, 2014
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Monday, Oct. 6, 2014 08:49 am
hello guys! I have create promodlive mod with firstblood round (sounds-messages), headshot (sound-messages) , finalkillcam , suicide sound. When I add my script with killspree (when one player do more kills from 1) then always take script error from the console! If any guy know cod4 scripting plz reply me for help! Thanks advance!

Code:
Killspree(sMeansOfDeath, attacker)
{
    attacker.kill_spree++;
    killcount = self.kill_spree;
    
	if(killcount == 2)
	{
		wait 0.9;
		iprintln("^5" + attacker.name + "^7 is on a ^1KILLING SPREE!");
		attacker iprintlnBold("^1You ^3are on a ^1KILLING SPREE!");
	}
	else if(killcount == 3)
	{
		wait 0.9;
		iprintln("^1" + attacker.name + "^7 is on an ^1ULTRAKILL!");
		attacker iprintlnBold("^1You ^7are on an ^1ULTRA KILL!");
	}
	else if(killcount == 4)
	{
		wait 0.9;
		iprintln("^1" + attacker.name + "^7 is ^1DOMINATING!");
		attacker iprintlnBold("^1You ^7are ^1DOMINATING!");
	}
	else if(killcount == 5)
	{
		wait 0.9;
		iprintln("^1" + attacker.name + "^7 is ^1GODLIKE!");
		attacker iprintlnBold("^1ARE YOU GOD?!");
	}
	else if(killcount == 6)
	{
		wait 0.9;
		iprintln("^1" + attacker.name + "^7 is ^1HOLYSHIT!");
		attacker iprintlnBold("^1ARE YOU HOLY!");
	}
}


because it is not work (always say the first message), I want to transform like that!
Code:
my_number = 5;
switch( my_number )
{
	case 5:
		self IprintLnBold( "The number is 5" );
		break;
	case 6:
		self IprintLnBold( "The number is 6" );
		break;
	case 7:
		self IprintLnBold( "The number is 7" );
		break;
	default:
		self IprintLnBold( "The number is not 5, 6, or 7" );
		break;
}

Is it possible?
edited on Oct. 6, 2014 04:18 am by embodio
Share |
embodio
General Member
Since: Sep 10, 2012
Posts: 13
Last: Oct 7, 2014
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Tuesday, Oct. 7, 2014 03:28 pm
Hello again lock this post I fix the sound problems now all works nice! Thanks!
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

»