Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » c++ simple commands
Re: c++ simple commands [message #335260 is a reply to message #335218] Sat, 14 June 2008 08:47 Go to previous messageGo to previous message
HeavyX101- Left is currently offline  HeavyX101- Left
Messages: 633
Registered: April 2008
Location: WindowsJail=ZipFolder
Karma:
Colonel
This one is what i made to change your chars model, but it crashed the server.
class char_havoc_ChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
		GameObject *obj = Get_GameObj(ID);
Commands->Set_Model(obj,"c_ag_havoc.w3d");
Console_Input(StrFormat("cmsg 255,255,255 [C++: ^ %d = Model Changed ^ ] ",ID).c_str());
	}
};
ChatCommandRegistrant<char_havoc_ChatCommand> char_havoc_ChatCommandReg("!havoc",CHATTYPE_ALL,0,GAMEMODE_AOW);


This account is no longer being active.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Renegade Resurrection 1.1 is out!
Next Topic: Veteran Plugin.
Goto Forum:
  


Current Time: Tue Dec 24 11:38:59 MST 2024

Total time taken to generate the page: 0.00737 seconds