MODSonline
  Welcome Guest to MODSonline Home | Forums | Register | Login
Main-Menu
Home
Login
Register
Add Download
Add News
Add Tutorial *
Forums

Advertise
Affiliate Store US *
Affiliate Store UK *
Affiliate Store CA *
Angry Letter Generator
Avatar Upload
Calendar of Games
Contact
Downloads
FAQs
Forums
Member List
Member Projects
News
News Grabber *
Policy
Polls
Private Messages
Reviews
Screenshot Gallery
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoDWW Mapping
CoD FAQs
HL2 Mapping
HL2 FAQs
SOF1 Mapping
Crysis Mapping
Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs
UT2K3 Mapping
SOF2 Mapping
SOF2 FAQs

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
Rainbowsix [Forum]
FiremanPaul [Forum]
cabelera85 [Downl]
OutPoursTh... [Forum]
Lee [Today]
LS-R1-mini [Forum]
fredisdead [Forum]
RePhLeX [Forum]

8 Members and 18 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Saturday, Nov. 22nd
CoD:WW Video Tutorial is up!
Friday, Nov. 21st
MODSonair Episode 154
Thursday, Nov. 20th
Call Of Duty World At War - Mod Tools
Wednesday, Nov. 19th
Half-Life 1 $0.98
Sunday, Nov. 16th
MODSonair 154 Live
Latest Poll
Would you pay for mod tools?
I would pay a one time fee for mod tools for my favorite title 8.42%
I would pay a monthly/yearly subsrciption fee for mod tools for my favorite title 0.5%
I already paid for the game - Tools should come bundled because I am just fixing what the developers broke 67.82%
100% definitely NOT! 19.31%
I haven't seen a game yet that wasn't 100% perfect when the developers released it 2.48%
Games are the devil! 1.49%
Read More...
16 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
Single PLayer Spawn Problem
CoD:WW Level Des.. Posts: (1) Views: (1) by Rainbowsix
compiling errors
CoD:WW Level Des.. Posts: (26) Views: (281) by COLMAC
Cod4 Loadscreen problem , what a suprise
CoD 4 Level Desi.. Posts: (1) Views: (17) by RePhLeX
Script compile error
CoD2 Scripting.. Posts: (2) Views: (16) by playername
Art of War Central Half-Life 2 Mods for Dummies
CoDWW Download
Forums
MODSonline.com 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: CoD 4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, rEdrUmMDK, Foxhound, Rasta, StrYdeR, The_Caretaker, batistablr, playername, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access 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: CoD 4 Scripting
Posted: Sunday, Jun. 15, 2008 01: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.
playername
Preferred Member
Since: Aug 24, 2006
Posts: 696
Last: Nov 22, 2008
[view latest posts]
Level 6
Forum Moderator
Category: CoD 4 Scripting
Posted: Monday, Jun. 16, 2008 02: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?

Few tips for coding.
1. Keep the script as short as possable.
2. Don't use comments unless you HAVE to point something out.
3. Don't over complicate the script, keep it orgainized and easy to read.

These help you find simple errors and makes it easy to make changes.
weestu
General Member
Since: Feb 28, 2006
Posts: 7
Last: Jun 22, 2008
[view latest posts]
Level 0
Category: CoD 4 Scripting
Posted: Monday, Jun. 16, 2008 05: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]
ahoji
General Member
Since: May 16, 2006
Posts: 74
Last: Jun 27, 2008
[view latest posts]
Level 3
Category: CoD 4 Scripting
Posted: Saturday, Jun. 21, 2008 05:37 pm
try to search for that script in stock files
The_Caretaker
Preferred Member
Since: Jun 8, 2004
Posts: 11559
Last: Oct 4, 2008
[view latest posts]
Level 10
Forum Moderator
Category: CoD 4 Scripting
Posted: Sunday, Jun. 22, 2008 04: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.
weestu
General Member
Since: Feb 28, 2006
Posts: 7
Last: Jun 22, 2008
[view latest posts]
Level 0
Category: CoD 4 Scripting
Posted: Sunday, Jun. 22, 2008 12: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]
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 4 : CoD 4 Scripting
All logos and trademarks and information in this site are property of MODSonline LLC © 2008.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
MODSonline Subscriptions
Partners
Call of Duty Headquarters
The Firing Box
CODAddicts - Call of Duty News & Downloads
Frag Universe
modbase.be
Battle for Europe COD2
XoXide
Ask About
Advertising
Friends
Volcano
After Life Gaming
CoD 4 Base
Ask About
Advertising
Link to Us
MODSonair
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
MODSonair Releases
MODSonair Episode 154
MODSonair Episode 153
MODSonair Episode 152
MODSonair Episode 151
Video server move
Next Show
The next MODSonair show will air LIVE on:
11/23/2008 12:00 EST

Time remaining:
Copyright © 2008 MODSonline
Tresware Content Management System Copyright © 2008 Tresware
Website Designed and Hosted   Tresware