(\ /) _ ($ __ $ ) _ (\ /)
-
Автор темы
- #1
Шапка, Я пытался, но я далбаеб.
useless code, дахуя ошибок.
C++:
if (g_cfg.misc.chat) {
player_info_t userid_info, attacker_info, getlocalplayer;
auto getlocalplayer = event->GetInt(crypt_str("getlocalplayer"));
auto userid = event->GetInt(crypt_str("userid")), getlocalplayer = event->GetInt(crypt_str("getlocalplayer")), attacker = event->GetInt(crypt_str("attacker"));
auto say = "say ";
static std::string trashtalk1[] =
{
crypt_str(".32"),
crypt_str("3213"),
crypt_str("3213."),
crypt_str("1233"),
};
std::string p = say + trashtalk1[rand() % 4];
if (!strcmp(event->GetName(), "player_death")) {
if (m_engine()->GetPlayerForUserID(attacker) == m_engine->GetPlayerForUserID(getlocalplayer))
{
m_engine->ServerCmd(p.data());
}
}
}