Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Code/Source Request Crates
Re: Code/Source Request Crates [message #325517 is a reply to message #325515] Mon, 07 April 2008 15:09 Go to previous messageGo to previous message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma:
General (3 Stars)
Permabanned for trying and failing DDoS
Ok this is a C++ Thread,
Nice Code, anyways Clients need Scripts 2.* to use this Function.
It Displays the Purchase terminal, NOT the Sidebar. Enjoy:


// !PCT
class PCTframeChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
		GameObject *obj = Get_GameObj(ID);
	if(Get_Object_Type(obj) == 0)
	    {
		Display_NOD_Player_Terminal_Player(obj);
		}
		else 
		if(Get_Object_Type(obj) == 1)
		{
		Display_GDI_Player_Terminal_Player(obj);
		}
	}
	};
ChatCommandRegistrant<PCTframeChatCommand> PCTframeChatCommandReg("!pct",CHATTYPE_ALL, 0, GAMEMODE_ALL);

[Updated on: Mon, 07 April 2008 15:10]

Report message to a moderator

 
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: C++ IntelliSense
Next Topic: Texture Rotation of Treads (Tank-Tracks)
Goto Forum:
  


Current Time: Tue Jan 28 16:52:00 MST 2025

Total time taken to generate the page: 0.00736 seconds