Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Add Scripts
Re: Add Scripts [message #300976 is a reply to message #300952] Tue, 04 December 2007 11:52 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
Add this to gmmain.cpp and compile it, then when you type "!help" in team chat it will page you the string in the quote marks.
This is based on ssgm.


class helpChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
Console_Input(StrFormat("ppage %d available commands to use in this server are !rules !host !servername !version",ID).c_str());

	}
};
ChatCommandRegistrant<helpChatCommand> helpChatCommandReg("!help",CHATTYPE_TEAM,0,GAMEMODE_ALL);



 
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: Erorr with game-pending patch
Next Topic: Help!
Goto Forum:
  


Current Time: Fri Dec 20 21:59:07 MST 2024

Total time taken to generate the page: 0.01380 seconds