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

Members Online

»
0 Active | 73 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
Previous Page
subscribe
Author Topic: Rcon login in quickmenu
_INSANE_
General Member
Since: Nov 7, 2008
Posts: 352
Last: Jul 10, 2011
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Nov. 23, 2009 08:19 pm
Hmm.. It all looks fine to me.. [ohwell]

Do you get any errors?
Share |
n3BuL
General Member
Since: Nov 10, 2008
Posts: 44
Last: Jul 2, 2010
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Monday, Nov. 23, 2009 08: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
Share |
_INSANE_
General Member
Since: Nov 7, 2008
Posts: 352
Last: Jul 10, 2011
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Nov. 23, 2009 08:34 pm
Maybe something set up wrong somewhere.... Yeah, i've gotta go to work really soon anyway. Good luck.
Share |
n3BuL
General Member
Since: Nov 10, 2008
Posts: 44
Last: Jul 2, 2010
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Sunday, Nov. 29, 2009 08: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.
Share |
Betanub
General Member
Since: Dec 19, 2009
Posts: 8
Last: Jul 27, 2013
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Saturday, Dec. 19, 2009 01:19 pm
n3BuL, do you have an xfire by any chance? if you do add me :D xfire; plugbeta
Share |
n3BuL
General Member
Since: Nov 10, 2008
Posts: 44
Last: Jul 2, 2010
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Sunday, Dec. 20, 2009 11: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.
Share |
n3BuL
General Member
Since: Nov 10, 2008
Posts: 44
Last: Jul 2, 2010
[view latest posts]
Level 2
Category: CoD2 Scripting
Posted: Sunday, Dec. 27, 2009 08: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 !
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

»