int * bfx = (int *) BLUEFLAGX; int * bfy = (int *) BLUEFLAGY; int * rfx = (int *) REDFLAGX; int * rfy = (int *) REDFLAGY; if (hackStatus[3] == true) { if (GetAsyncKeyState(VK_PRIOR)!=0){ if (getplayerteam(*playerid) == 1) { coords->x=*bfx; coords->y=*bfy; } else if (getplayerteam(*playerid) == 2) { coords->x=*rfx; coords->y=*rfy; } } if (GetAsyncKeyState(VK_NEXT)!=0){ if (getplayerteam(*playerid) == 1) { coords->x=*rfx; coords->y=*rfy; } else if (getplayerteam(*playerid) == 2) { coords->x=*bfx; coords->y=*bfy; } } }