Add a little more debug info to MQGate hack detection.

This commit is contained in:
JJ 2013-11-15 19:31:43 -05:00
parent 08b5225a13
commit 4c6fce5d5c

View File

@ -977,7 +977,9 @@ void Client::CheatDetected(CheatTypes CheatType, float x, float y, float z)
case MQGate: case MQGate:
if (RuleB(Zone, EnableMQGateDetector)&& ((this->Admin() < RuleI(Zone, MQGateExemptStatus) || (RuleI(Zone, MQGateExemptStatus)) == -1))) { if (RuleB(Zone, EnableMQGateDetector)&& ((this->Admin() < RuleI(Zone, MQGateExemptStatus) || (RuleI(Zone, MQGateExemptStatus)) == -1))) {
Message(13, "Illegal gate request."); Message(13, "Illegal gate request.");
database.SetMQDetectionFlag(this->account_name,this->name, "/MQGate", zone->GetShortName()); char hString[250];
sprintf(hString, "/MQGate used at %.2f, %.2f, %.2f", GetX(), GetY(), GetZ());
database.SetMQDetectionFlag(this->account_name, this->name, hString, zone->GetShortName());
if(zone) if(zone)
{ {
this->SetZone(this->GetZoneID(), zone->GetInstanceID()); //Prevent the player from zoning, place him back in the zone where he tried to originally /gate. this->SetZone(this->GetZoneID(), zone->GetInstanceID()); //Prevent the player from zoning, place him back in the zone where he tried to originally /gate.