Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » How do I get commands for my sever?
Re: How do I get commands for my sever? [message #318814 is a reply to message #318257] Sun, 24 February 2008 18:52 Go to previous messageGo to previous message
Commando Burton is currently offline  Commando Burton
Messages: 91
Registered: July 2007
Location: The Internet
Karma:
Recruit

Sniperhid wrote on Thu, 21 February 2008 00:19

const char *Msg3 = WideCharToChar(Msg);
	else if (strncmp(Msg3,"!killme",7) == 0) {	
 		if (obj){
 		Commands->Destroy_Object(obj);
		char message[256];
		sprintf(message,"cmsgp %d 90,250,90 [EKTRPG] You have been killed.",ID);
		Console_Input(message);
		return;
		}
 	}

the ID var is given in the chat hook: SSGM_Chat_Hook, yeah you can tell me off for not using the tokenized stuff, but this works perfectly fine.

Okay, how do I use this?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What to do with a mod
Next Topic: C&C Total Annihilation Update
Goto Forum:
  


Current Time: Fri Aug 16 04:16:03 MST 2024

Total time taken to generate the page: 0.00965 seconds