Re: co-op server [message #220392 is a reply to message #220363] |
Tue, 19 September 2006 08:19 |
|
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)),
[Updated on: Tue, 19 September 2006 08:20] Report message to a moderator
|
|
|