Location Spam (phook paste ready)

Начинающий
Статус
Оффлайн
Регистрация
31 Окт 2017
Сообщения
16
Реакции[?]
1
Поинты[?]
0
so yea i just gonna share my location spammer for phook if you need any help just responde to this thread

and dont forget to like the post if you use this code :^)

Код:
void misc::LocationSpam()
{
    static auto iDelay = 0;
    iDelay++;
    C_BaseEntity *pLocal = g_EntityList->GetClientEntity(g_Engine->GetLocalPlayer());
    std::string x = "x";
    int iNameIndex = -1;
    for (int i = 0; i <= g_Globals->maxClients; i++)
    {

        C_BaseEntity* pEntity = g_EntityList->GetClientEntity(i);



        if (!pEntity)
            continue;

        if (pEntity == pLocal)
            continue;

        if (!pEntity->IsPlayer())
            continue;

        if (pEntity->GetTeamNum() == pLocal->GetTeamNum())
            continue;

        if (pEntity->IsDormant())
            continue;

        if (!pEntity->IsAlive())
            continue;


        auto wep = pEntity->m_hMyWeapons();
        auto weaponID = *reinterpret_cast<int*>(DWORD(wep) + offsetz.DT_BaseAttributableItem.m_iItemDefinitionIndex);
        auto Location = reinterpret_cast<char*>(DWORD(pEntity) + offsetz.DT_BasePlayer.m_szLastPlaceName);
        auto Health = *reinterpret_cast<int*>(DWORD(pEntity) + offsetz.DT_BasePlayer.m_iHealth);

        player_info_t info;
        iNameIndex = pEntity->GetIndex();
        g_Engine->GetPlayerInfo(iNameIndex, &info);
        //info = pEntity->GetPlayerInfo();


        int xiDelay = 200;

        if (iDelay > xiDelay)
            iDelay = 0;

        if (iDelay == xiDelay)
        {
            char pszBuffer[6969];
            sprintf_s(pszBuffer, "say_team %s | %d HP | %s | %s", info.name, Health, Location, x.c_str());

            g_Engine->ClientCmd(pszBuffer);
        }

    }
}
 
Сверху Снизу