Guest User

SendVehicleToPlayer.inc V2

a guest
Jan 4th, 2014
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.53 KB | None | 0 0
  1. // SendVehicleToPlayer by: Abagail //
  2.  
  3. stock SetVehiclePosEx(id, float: x, float: y, float: z, vw, int) // id = VehicleID, X, X Coords, Y, Coords,  Z, Coords, VW = Virtual World, Int = Interior
  4. {
  5. SetVehiclePos(id, x, y, z);
  6. LinkVehicleToInterior(id, int);
  7. SetPlayerVirtualWorld(id, vw);
  8. }
  9.  
  10. stock SendVehicleToPlayer(vehid, playerid) {
  11. new Float: x, Float: y, Float: z;
  12. GetPlayerPos(playerid, x, y, z);
  13. new vw = GetPlayerVirtualWorld(playerid);
  14. new int = GetPlayerInterior(playerid);
  15. SetVehiclePosEx(vehid, x, y, z, vw, int);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment