RSS Forums RSS
Please support our C advertiser: Programming Forums
Views: 1175 | Replies: 1
Reply
Join Date: Jul 2005
Posts: 1
Reputation: erfg1 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
erfg1 erfg1 is offline Offline
Newbie Poster

News Go to website, via command

  #1  
Jul 14th, 2005
I play a game called JediKnight 3. I got the source code online from a website, and I wanted to do a command but don't know how to even start it.

Under the g_cmds.c file is where we execute commands. Such as /sit and you will begin the sit animation and actually sit your character down.

Now I want to type in a command and make it take me to a website and minimize the program im in. (jamp.exe)

void ClientCommand( int clientNum ) {
	gentity_t *ent;
	char	cmd[MAX_TOKEN_CHARS];

	ent = g_entities + clientNum;
	if ( !ent->client ) {
		return;		// not fully in game yet
	}


	trap_Argv( 0, cmd, sizeof( cmd ) );

	//rww - redirect bot commands
	if (strstr(cmd, "bot_") && AcceptBotCommand(cmd, ent))
	{
		return;
	}
	//end rww
				else if (Q_stricmp(cmd, "emotes") == 0)
	{
		trap_SendServerCommand( clientNum, va("print \"\n^3___________________________\n       ^3*^1EMOTES^3*\n^3---------------------------\n^7/sit <--- Sit down.\n"));
	}


That's how we would do someting like /emotes then it would tell us all the emotes in the game. But how would I make it minimize the game, and go to a website?

Any help is GREATLY appreciated.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2004
Posts: 6,585
Reputation: Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of 
Rep Power: 31
Solved Threads: 501
Super Moderator
Narue's Avatar
Narue Narue is offline Offline
Expert Meanie

Re: Go to website, via command

  #2  
Jul 14th, 2005
>I play a game called JediKnight 3.
Jedi Academy?

>I got the source code online from a website
[edit]
Issue resolved.
[/edit]
I'm here to prove you wrong.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 9:33 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC