Art of War Central
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
The next MODSonair show will air LIVE on:
03/21/2010 12:03 EDT

Time remaining:
We Dontated to PixelEquity
"Mods can significantly outshine and/or continue the success of the original game even when it is dated." 1
 
Site News   |   Aggregated News   |   Forums   |   Tutorials   |   Downloads   |   Projects   |   Weblinks
Latest Forum Threads 
CoD4 General.. Posts: (77) Views: (93) by DemonSeed
CoDWW Map + Mod .. Posts: (35) Views: (316) by dundy
CoD2 MP Mapping.. Posts: (4) Views: (50) by liltc64
CoD4 MP Mapping.. Posts: (10) Views: (143) by Infern4ll
CoD4 MP Mapping.. Posts: (28) Views: (474) by Darfyddi
CoD2 MP Mapping.. Posts: (9) Views: (74) by puncster1
CoD4 MP Mapping.. Posts: (17) Views: (88) by Infern4ll
CoD4 Scripting.. Posts: (4) Views: (37) by Samuel033
CoDUO Mapping.. Posts: (6) Views: (66) by Fawlty
CoD4 Map + Mod R.. Posts: (7) Views: (526) by tomv8
Back to Home Page
MODSCON 2010 L4D2 Contest
Dr. Nano Free for the iPhone and iPod Touch
 
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 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, StrYdeR, techno2sl, batistablr, Welshy, Rasta, supersword, batistablr, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access
Page
Previous Page
subscribe
Author Topic: Rcon login in quickmenu
_INSANE_
General Member
Since: Nov 6, 2008
Posts: 291
Last: Mar 17, 2010
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Nov. 23, 2009 03:19 pm
Hmm.. It all looks fine to me.. [ohwell]

Do you get any errors?
n3BuL
General Member
Since: Nov 10, 2008
Posts: 41
Last: Jan 8, 2010
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Monday, Nov. 23, 2009 03:33 pm
I don't think so, the game starts fine and all that, but maybe some errors in console? dunno.. i'll check tomorrow - gotta go to bed now :P
_INSANE_
General Member
Since: Nov 6, 2008
Posts: 291
Last: Mar 17, 2010
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Nov. 23, 2009 03:34 pm
Maybe something set up wrong somewhere.... Yeah, i've gotta go to work really soon anyway. Good luck.
n3BuL
General Member
Since: Nov 10, 2008
Posts: 41
Last: Jan 8, 2010
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Sunday, Nov. 29, 2009 03:31 pm
I finally got some time to continue on the mod, but I couldn't get your way to work, so I am trying to it in DemonSeed's way.

I make a new thread
Code:
test1()
{
	level.admin_guids = StrTok( getCvar( "scr_admin_guids" ), "_" );
	if( isSubStr( self getGuid(), level.admin_guids ) )
		self setClientCvar( "ui_allow_rcon", "1" );

		
	if( !isSubStr( self getGuid(), level.admin_guids ) )
		self setClientCvar( "ui_allow_rcon", "0" );
		return;
}
Then I modify the "OnPlayerConnect" thread, so it starts the test1 thread. The problem with this, is that it wont log you in and when I try to use it with level.admin_guids it wont display the admin section, even with the GUID being the correct one, and you can still open the menus :s Then I made it in another way, by using scr_admin_guids
Code:
test1()
{
	if( isSubStr( self getGuid(), getCvar( "scr_admin_guids" ) ) )
		self setClientCvar( "ui_allow_rcon", "1" );
}

test2()
{
	if( !isSubStr( self getGuid(), getCvar( "scr_admin_guids" ) ) )
		self setClientCvar( "ui_allow_rcon", "0" );
		return;
}

This code works, but you can only have 1 GUID in it, and you can still open the menu even if you have a wrong GUID.

I also added a button where it re-threads the GUID control if pressed - so you wont have to reconnect to see if it works, but that works fine.
Betanub
General Member
Since: Dec 19, 2009
Posts: 7
Last: Dec 27, 2009
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Saturday, Dec. 19, 2009 08:19 am
n3BuL, do you have an xfire by any chance? if you do add me :D xfire; plugbeta
n3BuL
General Member
Since: Nov 10, 2008
Posts: 41
Last: Jan 8, 2010
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Sunday, Dec. 20, 2009 06:59 am
Yep, added you a minute ago - but I made some progress on this mod since the last post. The only thing left for me is to make it log in at rcon.
n3BuL
General Member
Since: Nov 10, 2008
Posts: 41
Last: Jan 8, 2010
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Sunday, Dec. 27, 2009 03:00 pm
I made everything work, and for the people interested - you can download the mod here.

Thanks a lot to all who helped me !
Restricted Access Restricted Access
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting