Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM 4.0 Plugin] Building Revival Console Commands
Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #469352 is a reply to message #461332] Fri, 15 June 2012 14:23 Go to previous messageGo to previous message
triattack is currently offline  triattack
Messages: 14
Registered: May 2011
Karma:
Recruit
if you want to revive custom buildings by preset you could use this

class CommandREVIVEBUILDING :
	public ConsoleFunctionClass
{
public:
	const char* Get_Name() 
	{ 
		return "revivebuilding"; 
	}
	const char* Get_Help() 
	{ 
		return "REVIVEBAR - Revives a building for a team usage: revivebuilding <team> <building>."; 
	}
	void Activate(const char* argumentsString)
	{
		CommandLineParser arguments(argumentsString);
		int team = arguments.getInt();
		const char * building = arguments.getString();
		if(Find_Building_By_Preset(team,building))
		{
			Revive_Building(Find_Building_By_Preset(team,building);
		}

	}
};


haven't tested the console part as the rest wouldn't work but i know the rest works as i used that in my building revival plugin for apb that works for gamma till version 2.1.1
 
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
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Model Replacement] Nod Power Plant Interior
Next Topic: [SSGM 4.0 Plugin] TeamDonate Plugin
Goto Forum:
  


Current Time: Mon Jan 06 23:40:06 MST 2025

Total time taken to generate the page: 0.01019 seconds