Reklam
uint8 sType;
std::string sKilled;
std::string sDeath;
uint16 GetX, GetZ;
pkt.SByte();
pkt >> sType >> sKilled >> sDeath >> GetX >> GetZ;
if (g_pMain->DeathNone)
return;
if (g_pMain->DeathAll)
{
if (sType == 1)
g_pMain->WriteChatAddInfo(D3DCOLOR_ARGB(255, 254, 128, 254), false, string_format("*** %s has defeated %s - ( %d, %d ) ***", sKilled.c_str(), sDeath.c_str(), GetX, GetZ).c_str());
else if (sType == 2)
g_pMain->WriteChatAddInfo(D3DCOLOR_ARGB(255, 197, 209, 189), false, string_format("*** %s has defeated %s - ( %d, %d ) ***", sKilled.c_str(), sDeath.c_str(), GetX, GetZ).c_str());
else
g_pMain->WriteChatAddInfo(D3DCOLOR_ARGB(255, 255, 255, 0), false, string_format("*** %s has defeated %s - ( %d, %d ) ***", sKilled.c_str(), sDeath.c_str(), GetX, GetZ).c_str());
}
else if (g_pMain->DeathParty)
{
if (sType == 1)
g_pMain->WriteChatAddInfo(D3DCOLOR_ARGB(255, 254, 128, 254), false, string_format("*** %s has defeated %s - ( %d, %d ) ***", sKilled.c_str(), sDeath.c_str(), GetX, GetZ).c_str());
else if (sType == 2)
g_pMain->WriteChatAddInfo(D3DCOLOR_ARGB(255, 197, 209, 189), false, string_format("*** %s has defeated %s - ( %d, %d ) ***", sKilled.c_str(), sDeath.c_str(), GetX, GetZ).c_str());
}
else if (g_pMain->DeathMe)
{
if (sType == 1)
g_pMain->WriteChatAddInfo(D3DCOLOR_ARGB(255, 254, 128, 254), false, string_format("*** %s has defeated %s - ( %d, %d ) ***", sKilled.c_str(), sDeath.c_str(), GetX, GetZ).c_str());
}
Evet nerden yapmam gerekiyorbu sistem sorunlu acs kısmından düzeltilmesi gerekiyor.
Knk normalde death yazmaması lazım kodlara bakarsantam olarak neyi değiştirmek istiyorsun ?? Db'den okuyor olabilir db içindeki notice kısımlarınada bir bak