Re: Making a Command [message #411182 is a reply to message #411163] |
Tue, 17 November 2009 17:15 |
|
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
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|