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

Members Online

»
0 Active | 7 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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: say all center message
weestu
General Member
Since: Feb 28, 2006
Posts: 7
Last: Jun 22, 2008
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Sunday, Jun. 15, 2008 05:16 pm

Hi,
Im using an rcon command monitor. _cmdmonitor.gsc has the followng script in it :-

sayAll(Message, CenterScreen)
{
if(CenterScreen == 1)
{
iprintlnbold(Message);
setdvar("sayallcenter", "");
}
else
{
iprintln(Message);
setdvar("sayall", "");
}
}

This works no problem with cod4 and when using /rcon set sayallcenter command, Message comes across middle of screen, but i would like to have the meesage with a glow effect and sound, in the style of "you've earned UAV support" so i could print a message like Admin Says etc..... at anytime. Ive looked in _hud_message.gsc and can see all the oldnotifymessage and notify message commands, but could anyone tell me where to start compiling the gsc so i could incorperate into the rcon command monitor? Thanks.
Share |
playername
Preferred Member
Since: Aug 24, 2006
Posts: 821
Last: Apr 15, 2011
[view latest posts]
Level 7
Forum Moderator
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Monday, Jun. 16, 2008 06:23 pm
What do you mean by the line:
but i would like to have the message with a glow effect and sound?

Have the message that pops up glowing and play a sound?

nullFew tips for coding.
1. Keep the script as short as possible.
2. Don't comment every line. Only comment portions where they may be needed to point something out.
3. Don't over complicate the script, keep it organized and easy to read.

These help you find simple errors and makes it easy to make changes.
Share |
weestu
General Member
Since: Feb 28, 2006
Posts: 7
Last: Jun 22, 2008
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Monday, Jun. 16, 2008 09:08 pm
playername writes...
Quote:
What do you mean by the line:
but i would like to have the message with a glow effect and sound?

Have the message that pops up glowing and play a sound?



Yes, same as the "UAV, HELECOPTER, AIRSTRIKE" messages that glow on screen, with sound. [drink]
Share |
ahoji
General Member
Since: May 16, 2006
Posts: 74
Last: Jun 27, 2008
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Saturday, Jun. 21, 2008 09:37 pm
try to search for that script in stock files
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD4 Scripting
Posted: Sunday, Jun. 22, 2008 08:07 am
"where to start compiling the .gsc"... ???
A .gsc file doesn't have to be compiled, it is just ran by the engine as it is.
Share |
weestu
General Member
Since: Feb 28, 2006
Posts: 7
Last: Jun 22, 2008
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Sunday, Jun. 22, 2008 04:11 pm
I thought a gsc would have to be implemented, as /rcon set sayallmessage doesnt work, unless with a command monitor/rcon tool? Maybe im getting confused [banghead]
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

»