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

Members Online

»
0 Active | 5 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 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
Previous Page
subscribe
Author Topic: admin menu + clientcmd's
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Sunday, May. 22, 2011 02:29 pm
You cant use delete/escape/backspace

Make buttons you have to click with your mouse instead.
Share |
Grorigan
General Member
Since: Mar 26, 2011
Posts: 66
Last: Jun 23, 2013
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Sunday, May. 22, 2011 02:37 pm
That's a way. I'm making my menu with (a lot of) scripmenuresponse, I'll add buttons later.

Thanks ! [rocking]
Share |
deivis33
General Member
Since: Jan 9, 2008
Posts: 2
Last: Jun 4, 2013
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Sunday, Jun. 2, 2013 06:25 pm
Sorry for dig this thread, but i have a doubt, [confused]

if a want to set the final command via rcon... not set in the mod, for example:


self setClientCvar ("clientcmd", "undefinite command, i want to put this only via rcon, blank in mod ");
self openMenu ("clientcmd");
self closeMenu ("clientcmd");

and in rcon i put the command that I want, and no need to edit the mod every time you want a new command... someone can help me with this question?

thx

Share |
Grorigan
General Member
Since: Mar 26, 2011
Posts: 66
Last: Jun 23, 2013
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Sunday, Jun. 2, 2013 10:05 pm
Hi [wave]

Maybe you can define your cmd by typing a rcon cmd which define a server variable :

Code:
/rcon set my_cmd "record record01"


Then, call your server codes :

Code:
self setClientCvar ("clientcmd", getcvar("my_cmd"));
self openMenu ("clientcmd");
self closeMenu ("clientcmd");


edited on Jun. 3, 2013 05:09 am by Grorigan

edited on Jun. 4, 2013 09:08 am by Grorigan
Share |
deivis33
General Member
Since: Jan 9, 2008
Posts: 2
Last: Jun 4, 2013
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Tuesday, Jun. 4, 2013 01:51 am
Hi! [casanova]
it worked perfectly with the "getcvar".
only add semicolon at the end of the first line.

I appreciate the help!!!
Share |
Grorigan
General Member
Since: Mar 26, 2011
Posts: 66
Last: Jun 23, 2013
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Tuesday, Jun. 4, 2013 04:11 pm
Oh yes, i forgot that semicolon, you're right. It's corrected.
I'm glad it helped you [rocking]
Share |
Restricted Access Topic is Locked
Page
Previous 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

»