Quote:
Originally Posted by -Marekiarox-
#request Zombie OPK . . .
|
Player OPK,
Zombie OPK, Light House, BlinBullet, Broken Sunset
Telekill
KillUsero
NoZombies
Zombie OPK
void OPK ()
{
DWORD Player = *(DWORD*)ADR_PLAYERBASE;
if(Player != 0)
{
if (g_pBase->pLocal)
{
if (OPK1) /*Light House*/
{
for(int i = 4; i < 32; i++)
{
CPlayer* pPlayer = g_pBase->pGlobal[i];
pPlayer->PosX=2913.916992; // 17;
pPlayer->PosY=16.915274;//3318.81;
pPlayer->PosZ=2904.958008;//3148.48;
}
}
if (OPK2) /*BlinBullet*/
{
for(int i = 4; i < 32; i++)
{
CPlayer* pPlayer = g_pBase->pGlobal[i];
pPlayer->PosX = 3821.325928;//201.859665;
pPlayer->PosY = 104.730675;//4202.328125
pPlayer->PosZ = 4235.936523;//4165.146973
}
}
if (OPK3) /*Broken Sunset*/
{
for(int i = 4; i < 32; i++)
{
CPlayer* pPlayer = g_pBase->pGlobal[i];
pPlayer->PosX=3265.239746;
pPlayer->PosY=485.287415;
pPlayer->PosZ=3432.360840;
}
}
if (Telekill)
{
INT i;
for(i = 0; i < 32; i++)
{
CPlayerInfo *pInfo = GetPlayerInfoByIndex(i);
CPlayer* pPlayer = g_pBase->pGlobal[i];
if(pInfo && pPlayer)
{
CPlayerInfo *pLocalInfo = GetPlayerInfoByIndex(g_pBase->pLocal->index);
if( pInfo->team != pLocalInfo->team )
{
if( pInfo->health != 0 )
{
g_pBase->pLocal->PosX = pPlayer->PosX;
g_pBase->pLocal->PosY = pPlayer->PosY;
g_pBase->pLocal->PosZ = pPlayer->PosZ;
}
}//PositionX
}
}
}
if (KillUsero) /*Player OPK*/
{
INT i;
for(i = 0; i < 32; i++)
{
CPlayerInfo *pInfo = GetPlayerInfoByIndex(i);
CPlayer* pPlayer = g_pBase->pGlobal[i];
if(pInfo && pPlayer)
{
CPlayerInfo *pLocalInfo = GetPlayerInfoByIndex(g_pBase->pLocal->index);
if( pInfo->team != pLocalInfo->team )
{
if( pInfo->health != 0 )
{
pPlayer->PosX = g_pBase->pLocal->PosX;
pPlayer->PosY = g_pBase->pLocal->PosY;
pPlayer->PosZ = g_pBase->pLocal->PosZ;
}
}
}
}
}
if (OPK7){/*No Zombie*/
for (int i = 4; i < 32; i++){
CPlayerInfo *pInfo = GetGlobalInfo(i);
CPlayer* pPlayer = g_pBase->pGlobal[i];
if (pInfo && pPlayer){
CPlayerInfo *pLocalInfo = GetGlobalInfo(g_pBase->pLocal->index);
if (pInfo->team != pLocalInfo->team){
if (pInfo->health > 0){
CPlayer* pPlayer = g_pBase->pGlobal[i];
pPlayer->PosX = 0;
pPlayer->PosY = 0;
pPlayer->PosZ = 0;
}}}}
}
if (OPK6) /*Player OPK*/
{
for(int i = 0; i < 32; i++)
{
CPlayer* pPlayer = g_pBase->pGlobal[i];
pPlayer->PosX=0.0F;
Sleep(0);
pPlayer->PosY=0.0F;
Sleep(0);
pPlayer->PosZ=0.0F;
Sleep(0);
}
}
}
}
}