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 #411182 is a reply to message #411163] Tue, 17 November 2009 17:15 Go to previous messageGo to previous message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma:
Colonel

reborn wrote on Tue, 17 November 2009 15:09

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);


do i compile that in ssgm or scripts?


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
 
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:43:12 MST 2024

Total time taken to generate the page: 0.00660 seconds