its so easy to see, that this telekill is bullshit
i marked u the points why red
first red point u loop directly 0x32, thats ok(except that playerinfo not get NPC's, they have no index, make 16 then there is not so much unusefully looped)
second red point is just an if, im sure it works, but im sure u always teleport to all players
how i would do it, with ur code:
Code:VOID _cTelekill() { if(cItem.telekill) { DWORD dwPlayerPointer = *(DWORD*)dwDecypt(ADR_PLAYERBASE); if(dwPlayerPointer != 0) { for(int i = 0; i < 16; i++) { CPlayer* pPlayerA = pBase->player[i]; PlayerInfo* pPlayer = (PlayerInfo*)0x37817368;//0x3780A0A8; PlayerInfo* pLocal = (PlayerInfo*)0x37817368;//0x3780A0A8; if(pPlayerA && pInfoA) { while(pInfoA->team != pLocalInfoA->team && Ingame() && TelekillIsOn && pLocal->IsDead == false && pPlayer->IsDead == false)//if is not my team and is ingame and telekill is on and u not dead and enemy not dead { pBase->local->pos1 = pPlayerA->pos1; pBase->local->pos2 = pPlayerA->pos2; pBase->local->pos3 = pPlayerA->pos3; } } } } } }