lfnetwork.com mark read register faq members calendar

Thread: I need some help...
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 01-28-2004, 09:31 PM   #1
Achilles87
 
Achilles87's Avatar
 
Join Date: Apr 2003
Posts: 93
I need some help...

Ok, I am a complete n00b at this, I just decided I wanted to make a series of admin mods. Can someone give me the basics, maybe some links to good tutorials related to this, tell me what programs I'd need? Thank you I'd really appreciatte it!
Achilles87 is offline   you may: quote & reply,
Old 01-30-2004, 10:17 PM   #2
Achilles87
 
Achilles87's Avatar
 
Join Date: Apr 2003
Posts: 93
Hmmm... you know, that really helped alot! C'mon, I know someone here knows what I need.
Achilles87 is offline   you may: quote & reply,
Old 01-30-2004, 10:26 PM   #3
VSYoda1
Rookie
 
VSYoda1's Avatar
 
Join Date: Dec 2003
Posts: 18
Well I'm a noob too but I'll help, I know a little about Admin commands (becuase Lee Oates taught me )

Code:
You start with your basic command structure something like:

	else if (Q_stricmp(cmd, "amyourcommand") == 0)
	{
		if (trap_Argc() > 1)
		{
			char sArg[MAX_STRING_CHARS];
			int entNum = 0;

			trap_Argv( 1, sArg, sizeof( sArg ) );

			entNum = G_ClientNumFromNetname(sArg);

			if (entNum >= 0 && entNum < MAX_GENTITIES)
			{
				gentity_t *targetEnt = &g_entities[entNum];
				
				if (targetEnt ->inuse && targetEnt ->client)
				{
					//Here is where you put where ever command you want like:
                                           targetEnt ->health = -999;
				}
			}
		}
	}
VSYoda1 is offline   you may: quote & reply,
Old 01-30-2004, 10:42 PM   #4
MasterSidious
Junior Member
 
MasterSidious's Avatar
 
Join Date: Oct 2003
Location: in game getting flamed and banned
Posts: 412
I can help too. I am trying to do this myself with only a little bit of C experience. I'm TRYING to get some source code for an admin mod from two different people but they can't seem to help.

Anyway, here's a good tut/resource(you're gunna have to take it slow, but it will get u there ):

very good cvar (e.g. admin password) and and admin cmds


And you're gunna need Visual C++ 7.0 (usually runs at $100 its called .NET)

That should do it. BTW, who is Lee Oates? Maybe she could help me too?

VSYoda1 do you know any way I could make an "/amlogin <password> cmd? Like some actual code? Just curious


FP>Sephious
67.15.20.187:29070 - FFA SO
67.15.21.115:29070 - CTF SO
67.15.18.232:29070 - Siege/FFA
Laming is tolerated
MasterSidious is offline   you may: quote & reply,
Old 01-31-2004, 04:15 PM   #5
Achilles87
 
Achilles87's Avatar
 
Join Date: Apr 2003
Posts: 93
ok thanks guys! You really helped! And Lee Oates is a famous admin modder.
Achilles87 is offline   you may: quote & reply,
Old 01-31-2004, 04:18 PM   #6
Achilles87
 
Achilles87's Avatar
 
Join Date: Apr 2003
Posts: 93
oh and I just orderd Visual C++ 5 Proffesional Edition, that should be fine, right?
Achilles87 is offline   you may: quote & reply,
Old 01-31-2004, 04:31 PM   #7
MasterSidious
Junior Member
 
MasterSidious's Avatar
 
Join Date: Oct 2003
Location: in game getting flamed and banned
Posts: 412
I'm sorry, but you're gunna need .NET for this. The Jedi Academy SDK (the source code you're gunna need to change) is in .sln which can only be run using .NET. I don't think you can change the .NET formatting (.sln) into the Visual C++ 5.0 format (I think that's .dsw).

BTW, anyway I could contact Lee Oates?


FP>Sephious
67.15.20.187:29070 - FFA SO
67.15.21.115:29070 - CTF SO
67.15.18.232:29070 - Siege/FFA
Laming is tolerated
MasterSidious is offline   you may: quote & reply,
Old 01-31-2004, 05:06 PM   #8
Achilles87
 
Achilles87's Avatar
 
Join Date: Apr 2003
Posts: 93
Ok, I found this, 'Microsoft Visual C++ .NET Standard 2002'

Would this work?
Achilles87 is offline   you may: quote & reply,
Old 01-31-2004, 06:06 PM   #9
MasterSidious
Junior Member
 
MasterSidious's Avatar
 
Join Date: Oct 2003
Location: in game getting flamed and banned
Posts: 412
That will work

BTW, I have now figured out how to do a lot of admin cmds like:
1. amlogin <password>
2. How to set a cvar that will set the password
3. How to make cmds work for yourself and separately how to make cmds work for you alone. So please PM me if you need some source code or anything

Keep in mind though that I'm learning this myself just now, but I have some source code already .


FP>Sephious
67.15.20.187:29070 - FFA SO
67.15.21.115:29070 - CTF SO
67.15.18.232:29070 - Siege/FFA
Laming is tolerated
MasterSidious is offline   you may: quote & reply,
Old 01-31-2004, 06:07 PM   #10
MasterSidious
Junior Member
 
MasterSidious's Avatar
 
Join Date: Oct 2003
Location: in game getting flamed and banned
Posts: 412
BTW, to everyone admin modder out there. I think that some good admin source code would be very good to give out to the public, even if that source code would be a source.txt


FP>Sephious
67.15.20.187:29070 - FFA SO
67.15.21.115:29070 - CTF SO
67.15.18.232:29070 - Siege/FFA
Laming is tolerated
MasterSidious is offline   you may: quote & reply,
Old 02-01-2004, 09:38 AM   #11
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,172
Quote:
Originally posted by Achilles87
ok thanks guys! You really helped! And Lee Oates is a famous admin modder.
I thought he did the duelers mod. I'd hardly consider that an admin mod.


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 02-01-2004, 02:09 PM   #12
Achilles87
 
Achilles87's Avatar
 
Join Date: Apr 2003
Posts: 93
Well he helped with Admin mods
Achilles87 is offline   you may: quote & reply,
Old 02-01-2004, 07:09 PM   #13
VSYoda1
Rookie
 
VSYoda1's Avatar
 
Join Date: Dec 2003
Posts: 18
Yah, Lee Oates is like the god of server side coding. I learned a lot from him. He's (or she, I haven't talked to him about anything more than coding) actually a very nice person and very helpful. He's working on JA Duelers Mod right now. I've got a some admin source code for using guns for specifying a target if you want that too?
VSYoda1 is offline   you may: quote & reply,
Old 02-01-2004, 08:05 PM   #14
MasterSidious
Junior Member
 
MasterSidious's Avatar
 
Join Date: Oct 2003
Location: in game getting flamed and banned
Posts: 412
Please give me all the source code you have to mastersidious_6@hotmail.com

I'm working on an admin variable right now that will end admin cmds if you're not an admin and how to declare this admin variable?

Thanks!


FP>Sephious
67.15.20.187:29070 - FFA SO
67.15.21.115:29070 - CTF SO
67.15.18.232:29070 - Siege/FFA
Laming is tolerated
MasterSidious is offline   you may: quote & reply,
Old 02-02-2004, 12:16 AM   #15
Achilles87
 
Achilles87's Avatar
 
Join Date: Apr 2003
Posts: 93
Yes please email me all the source codes to bears8703@yahoo.com .

Thank you so much!
Achilles87 is offline   you may: quote & reply,
Old 02-02-2004, 06:51 PM   #16
VSYoda1
Rookie
 
VSYoda1's Avatar
 
Join Date: Dec 2003
Posts: 18
I sent you guys the code, if you use it please give me credit.
VSYoda1 is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > I need some help...

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:13 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.