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

Members Online

»
0 Active | 54 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 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: bold text in middle of screen
|S!T|
General Member
Since: Nov 8, 2007
Posts: 93
Last: Dec 9, 2013
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Sep. 23, 2009 02:54 pm
Hey guys,
iam looking for the function to get a text in the center of the screen that everybody can see!
I want to do it like this:

if any1 on the server break the rules, i just want to open console and then type something like

Code:

/rcon centertext  Warning [ClientID] - you break the rules

or like

/rcon centertext  Are there any mapwishes?



And this should come up like the Message of Today...in the middle of the screen!

I know that there is a function like this - i've seen it on a server long time ago!

I've got a bit scripting experience but not so much...
and pls excuse my english xD

hope anybody got an idea!

cya
Share |
COD4GRC
General Member
Since: Aug 12, 2007
Posts: 44
Last: Jan 30, 2010
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Wednesday, Sep. 23, 2009 03:20 pm
At least you need the function iprintlnbold("text")

maybe a client side wait thread to execute... :)
Share |
|S!T|
General Member
Since: Nov 8, 2007
Posts: 93
Last: Dec 9, 2013
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Sep. 23, 2009 03:25 pm
okay - i heard/read something about to iprintlnbold - but i really dont know how to use it ^^

and sry, but i dont know anything about a wait script, too ^^...
i've done some things in our mod like editing the weapon menu or the main screen in cod2...all other scripts i get from users here in the forum :)
Share |
sherlokpwnz
General Member
Since: May 1, 2009
Posts: 95
Last: Jan 13, 2010
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Sep. 23, 2009 03:34 pm
Trying getting rcon4cod2 and open up some of the files to read what the scripting they did and how it works. I know that when you do things it pops up a message saying it's a command given by rcon4cod2 tool. Maybe that might do the trick or help you out in someway.

Maybe theres a way you can just do a new cvar command and as the result of that command be a message in center of the screen.
Share |
|S!T|
General Member
Since: Nov 8, 2007
Posts: 93
Last: Dec 9, 2013
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Sep. 23, 2009 03:54 pm
i looked for rcon4cod2 - but its a stand-alone-program...im sure that i cant find anything there ^^
Share |
sherlokpwnz
General Member
Since: May 1, 2009
Posts: 95
Last: Jan 13, 2010
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Sep. 23, 2009 04:01 pm
well theres got to be dll's or some kind of file that has all the commands in it in order for it to know what buttoms does what command and what not. I mean it's got to have something stating send a message.
Share |
DemonSeed
General Member
Since: Apr 30, 2009
Posts: 1362
Last: Feb 19, 2018
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, Sep. 23, 2009 04:04 pm
iprintlnBold() is not a function you can use with rcon, as it isnt a console command.

As far as I know, there is no way to get a text message on the center of a screen except with a mod. So, unless you're prepared to change the status of your server from stock to modded, it cant be done.
Share |
DemonSeed
General Member
Since: Apr 30, 2009
Posts: 1362
Last: Feb 19, 2018
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, Sep. 23, 2009 04:05 pm
sherlokpwnz writes...
Quote:
well theres got to be dll's or some kind of file that has all the commands in it in order for it to know what buttoms does what command and what not. I mean it's got to have something stating send a message.


You wouldnt be able to introduce a new rcon function into rcon4cod2 without reverse engineering the .EXE, and that would be illegal without the owners/authors consent.
Share |
sherlokpwnz
General Member
Since: May 1, 2009
Posts: 95
Last: Jan 13, 2010
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Sep. 23, 2009 04:07 pm
not really. you could open it just to see how the function of posting a message on the screen and try to impliment it into gsc scripting. it's only stealing the authors work if it's the same coding but guessing as gsc is different than c+ or apache coding then it wouldn't be stealing work.
Share |
|S!T|
General Member
Since: Nov 8, 2007
Posts: 93
Last: Dec 9, 2013
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Sep. 23, 2009 04:45 pm
well, thank u guys first...we already got a mod running on our server ;)
Thats the thing - i just wanted to add it as a cvar or something like this! :))
like the rcon say function!

Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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

»