Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:trailer(playerid, params[])
- {
- new veh[2], Float:Pos[4]; new Float:vhealth;
- GetPlayerPos(playerid, Float:Pos[0], Float:Pos[1], Float:Pos[2]); GetPlayerFacingAngle(playerid, Float:Pos[3]);
- HouseTrailer = CreateObject(3171, 0.00724, -1.84854, -0.96500, 0.00000, 0.00000, 180.00000);
- veh[0] = CreateVehicle(479, Float:Pos[0], Float:Pos[1], Float:Pos[2], Float:Pos[3], -1, -1, 50000); veh[1] = CreateVehicle(606, Float:Pos[0], Float:Pos[1], Float:Pos[2], Float:Pos[3], -1, -1, 50000);
- AttachObjectToVehicle(HouseTrailer, veh[1], 0.00724, -1.84854, -0.96500, 0.00000, 0.00000, 180.00000);
- PutPlayerInVehicle(playerid, veh[0], 0);
- AttachTrailerToVehicle(veh[1], veh[0]);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- GetVehicleHealth(veh[1], vhealth);
- if(vhealth < 50) {
- DestroyObject(HouseTrailer); DestroyVehicle(veh[1]); }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement