Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » SSGM Chat Hook
Re: SSGM Chat Hook [message #274634 is a reply to message #274298] Fri, 20 July 2007 22:48 Go to previous messageGo to previous message
Genesis2001
Messages: 1397
Registered: August 2006
Karma:
General (1 Star)
Stupid edit button disappeared >.>


Nevermind on the "Commands->____" part xD.

Where can I find a list of the -exact- parameters of the Commands-> function?



Also, I need help with the donate command...Logic is working, but I don't know the correct syntax for some of the Commands->___

ie: What do I put for the "GameObject *" parameter when giving money to another player that doesn't trigger the command.

class DonateChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
		// Usage: !donate <nick> <amt>
		// Text[1] - Nick
		// Text[2] - Amt
		int Amt = Text[2];
		char Nick[20] = Commands->Get_ID(Text[1]);
		Commands->Give_Money(ID,Commands->Get_Money(ID)-Amt), true);
		Commands->Give_Money(ID,Commands->Get_Money(ID)+Amt), true);
		Console_Input(StrFormat("ppage %d You have donated %d credits to %d.",ID,Text[2],Text[1]).c_str());
		Console_Input(StrFormat("ppage %d %d has donated you %d credits.",Nick,ID,Text[2]).c_str());
	}
}
ChatCommandRegistrant<DonateChatCommand> DonateChatCommandReg("!don8;!donat;!doante;!donate;!d",CHATTYPE_TEAM,2,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
Previous Topic: 3ds max 9 problem
Next Topic: Anti Alias without 3.4.1
Goto Forum:
  


Current Time: Mon Jul 07 15:57:51 MST 2025

Total time taken to generate the page: 0.00846 seconds