If you want to just teleport from one coord to another one without changing angles (Camera position), according to your code you should do like this:
PHP Code:
TeleportEntity(client, DP, NULL_VECTOR, NULL_VECTOR);
Example of usage angles.
If you want teleport one player to any other player, you probably want to set his crosshair in the same place to crosshair of that second player.
Then you can do:
PHP Code:
void TeleportToPlayer(int target, int otherPlayer)
{
float otherPlayerOrigin[3];
float otherPlayerAngles[3];
GetClientAbsOrigin(otherPlayer, otherPlayerOrigin);
GetClientEyeAngles(otherPlayer, otherPlayerAngles);
TeleportEntity(target, otherPlayerOrigin, otherPlayerAngles, NULL_VECTOR);
}
By the way, angles have only 2 dimensions. X and Y. ang[2] (z) always equals zero.