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

Members Online

»
0 Active | 90 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 General
General game questions, comments, and chat.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Menu Help - Mods
Ploxxy
General Member
Since: May 1, 2009
Posts: 170
Last: Aug 31, 2011
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoD2 General
Posted: Monday, Oct. 4, 2010 01:37 am
Hey all. Im trying to make it so a MENU such as *rcon.menu* for my mod only allows my GUID or NAME through but it never works. Any ideas?

if(response == "rcon")
{
if(self.name == "^2`^7pB^2[^7Ploxxy^2]")
{
iprintlnbold("ID Recognized: ^2Access Granted^7");
return;
self openMenu(game["menu_rcon"]);
}
else
{
iprintln("^1Error: Access is Denied");
return;
self closeMenu();
self openMenu(game["menu_quickmessage"]);
}
}
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 General
Posted: Monday, Oct. 4, 2010 05:20 am
well... your return;(s) are probably killing the thread...but try this:

I would rather go with GUID as anybody can rename to your name if they wanted to. Also, idk if the getGuid() function exists in cod2...i'm just going by my instinct.

Code:
if(response == "rcon")
{
	if(self getGuid() == "your GUID here")
	{
		iprintlnbold("ID Recognized: ^2Access Granted^7");
		self openMenu(game["menu_rcon"]);
	}
else
	{
		iprintlnbold("^1Error: Access is Denied");
		self closeMenu();
		self openMenu(game["menu_quickmessage"]);
	}
}
Share |
clanhelio
General Member
Since: Aug 30, 2008
Posts: 223
Last: Mar 24, 2011
[view latest posts]
Level 4
Category: CoD2 General
Posted: Monday, Oct. 4, 2010 07:07 am
That, but GUIDs don't go in quotes
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 General

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

»