09-25-2012, 18:39
Hi
can someone help me about this problem :
Error 1 'Addon.CPlugin' does not contain a definition for 'PlayerSuicide'
---------------------------------------
public bool warnPlayer(ServerClient target, string reason)
{
int num = 0;
reason = reason.Trim();
reason = this.reasonParser(reason);
string message = "";
if (this.playerWarnings.TryGetValue(target.XUID, out num))
{
num++;
if (num >= this.kickWarnings)
{
message = base.GetServerCFG("Admin", "warnkickmessage", "<playername> was kicked for <reason>").Replace("<playername>", target.Name).Replace("<reason>", reason).Replace("<warningcount>", num.ToString());
base.ServerSay(message, true);
base.PlayerSuicide(target.ClientNum);
this.playerWarnings.Remove(target.XUID);
this.warningTime.Remove(target.XUID);
this.playerWarnings.Add(target.XUID, 0);
return true;
}
----------------------------------------------------------
can someone help me about this problem :
Error 1 'Addon.CPlugin' does not contain a definition for 'PlayerSuicide'
---------------------------------------
public bool warnPlayer(ServerClient target, string reason)
{
int num = 0;
reason = reason.Trim();
reason = this.reasonParser(reason);
string message = "";
if (this.playerWarnings.TryGetValue(target.XUID, out num))
{
num++;
if (num >= this.kickWarnings)
{
message = base.GetServerCFG("Admin", "warnkickmessage", "<playername> was kicked for <reason>").Replace("<playername>", target.Name).Replace("<reason>", reason).Replace("<warningcount>", num.ToString());
base.ServerSay(message, true);
base.PlayerSuicide(target.ClientNum);
this.playerWarnings.Remove(target.XUID);
this.warningTime.Remove(target.XUID);
this.playerWarnings.Add(target.XUID, 0);
return true;
}
----------------------------------------------------------