Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Making a Command (Need Help)
Re: Making a Command [message #411163 is a reply to message #411141] Tue, 17 November 2009 14:09 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
class rescueChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType){
if (strcmp(The_Game()->MapName, "CnC_Mesa.mix") == 0) {
Console_Input(StrFormat("ppage %d The objective for this map is to take the hostage to blah blah blah",ID).c_str());
	}
else if (strcmp(The_Game()->MapName, "CnC_Hourglass.mix") == 0) {
Console_Input(StrFormat("ppage %d The objective for this map is to take the hostage to blah blah blah",ID).c_str());
}
    }

};
ChatCommandRegistrant<rescueChatCommand> rescueChatCommandReg("!rescue",CHATTYPE_TEAM,0,GAMEMODE_ALL);



 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: "Renegade" model
Next Topic: Updating UberMapPack (once again)
Goto Forum:
  


Current Time: Sun Dec 22 07:40:28 MST 2024

Total time taken to generate the page: 0.01212 seconds