eXtreme_David

Port

May 9th, 2011
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.49 KB | None | 0 0
  1. stock Port(playerid, Float:x, Float:y, Float:z)
  2. {
  3.    new
  4.    Float:ox,
  5.    Float:oy,
  6.    Float:oz;
  7.    GetPlayerPos(playerid, ox, oy, oz);
  8.    printf("x: %f, y: %f, z: %f\nox: %f, oy: %f, oz: %f\n\trez: %f", x, y, z, ox, oy, oz, (((ox + oy + oz) >= (x + y + z)) ? ((ox + oy + oz) - (x + y + z)) : ((x + y + z) - (ox + oy + oz))));
  9.    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SetPlayerPos(playerid, x, y, z);
  10.    SetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
  11.    return true;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment