Jump to content
Sign in to follow this  
MrJenn

How can I enable death message on my server

Recommended Posts

I can't use c++  

private string PlayerIdentityName = "empty"; string GetPlayerIdentityName() { return this.PlayerIdentityName; } void SetPlayerIdentityName(string name) { this.PlayerIdentityName = name; }

Then added in PlayerBase -> EEKilled

SurvivorBase sbKilled = this; if (killer.IsMan()) { Man manKiller = Man.Cast(killer); GetGame().ChatPlayer( 0, sbKilled.GetPlayerIdentityName() + " Killed By " + manKiller.GetIdentity().GetName()); } else { GetGame().ChatPlayer( 0, sbKilled.GetPlayerIdentityName() + " Killed by zombie/bleedout/fall?"); }

and added in PlayerBase -> OnConnect

SurvivorBase sb = this; sb.SetPlayerIdentityName(this.GetIdentity().GetName());

 

How can I add it in  playbase and survivorBase      ? 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×