Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Abagail's SendVehicleToPlayer - Include Version 2 //
- stock SendVehicleToPlayer(vehid, playerid, putin = -1) {
- new Float: x, Float: y, Float: z;
- GetPlayerPos(playerid, x, y, z);
- new vw = GetPlayerVirtualWorld(playerid);
- new int = GetPlayerInterior(playerid);
- SetVehiclePosEx(vehid, x, y, z, vw, int);
- if(putin = -1) return 1;
- if(putin = 1) return PutPlayerInVehicle(playerid, vehid);
- return 1;
- }
- 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
- {
- SetVehiclePos(id, x, y, z);
- LinkVehicleToInterior(id, int);
- SetPlayerVirtualWorld(id, vw);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement