Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » co-op server
Re: co-op server [message #220392 is a reply to message #220363] Tue, 19 September 2006 08:19 Go to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Ivan275 wrote on Tue, 19 September 2006 09:22

[
			else if (!Is_Soldier(shooter))
			{
				char KillMsg[512];
				sprintf(KillMsg,"The %s killed %s (%s)",Translate_Preset(shooter),Get_Player_Name(obj),Get_Preset_Info(obj));
				FDSMessage(KillMsg,"_PLAYERKILL");
			}
			else if (Get_Player_ID(shooter)==-1)
			{
				char KillMsg[512];
				sprintf(KillMsg,"The %s killed %s (%s)",Translate_Preset(shooter),Get_Player_Name(obj),Get_Preset_Info(obj));
				FDSMessage(KillMsg,"_PLAYERKILL");
			}
			else
			{
				std::string killer(Get_Player_Name(shooter)),




it can be done like this:

			else if (!Is_Soldier(shooter) || Get_Player_ID(shooter)==-1)
			{
				char KillMsg[512];
				sprintf(KillMsg,"The %s killed %s (%s)",Translate_Preset(shooter),Get_Player_Name(obj),Get_Preset_Info(obj));
				FDSMessage(KillMsg,"_PLAYERKILL");
			}
			else
			{
				std::string killer(Get_Player_Name(shooter)),



Razz Razz Razz



[Updated on: Tue, 19 September 2006 08:20]

Report message to a moderator

Previous Topic: new scripts.dll feature planned for 3.0, feedback wanted
Next Topic: CnC Reborn : Titan Version 2
Goto Forum:
  


Current Time: Wed Jan 08 12:58:34 MST 2025

Total time taken to generate the page: 0.00556 seconds