Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock Port(playerid, Float:x, Float:y, Float:z)
- {
- new
- Float:ox,
- Float:oy,
- Float:oz;
- GetPlayerPos(playerid, ox, oy, oz);
- 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))));
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SetPlayerPos(playerid, x, y, z);
- SetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment