Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Plugins for SSGM
Re: Plugins for SSGM [message #268797 is a reply to message #268789] Tue, 26 June 2007 00:33 Go to previous messageGo to previous message
Whitedragon is currently offline  Whitedragon
Messages: 832
Registered: February 2003
Location: California
Karma:
Colonel
Here's some more info in ChatCommandClass. Somehow this didn't get into the released version.

class TestChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
		/* Text is a tokenized version of the command parameters.
		   Text[1] would get the first word after the command.
		   Text(1) would get everything after the command.
		   Text(2,4) would get words 2 through 4.
	   */
		Console_Input(StrFormat("ppage %d loltest parameters: %s",ID,Text(1).c_str()).c_str());
	}
};
ChatCommandRegistrant<TestChatCommand> TestChatCommandReg(
"!test",/* Name of the command. Seperate multiple names with ;. */
CHATTYPE_ALL, /* What type of chat the command can be triggered in. CHATTYPE_ALL, CHATTYPE_TEAM, and CHATTYPE_PUBLIC */
1, /* How many parameters the command needs. !Donate, for example, would need two. One would be the name of the player and the other would be the amount .*/
GAMEMODE_ALL /* The game mode that this command can be used in. */
);


Black-Cell.net
Network Administrator (2003 - )

DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )

Dragonade, Renegade's first server side modification
Lead coder (2005 - )

[Updated on: Tue, 26 June 2007 00:34]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Script Request
Next Topic: Roadkill script?
Goto Forum:
  


Current Time: Sat Dec 21 12:01:26 MST 2024

Total time taken to generate the page: 0.00711 seconds