13.08.2014, 22:22
I have this code and i want to attach the trailer to the another one... someone can help me? sorry my english...
(See the image to understand whats is happening)
(See the image to understand whats is happening)
Код:
CMD:train(playerid,params[]) { new Float:vX, Float:vY, Float:vZ; GetPlayerPos(playerid, vX, vY, vZ); new veh = CreateVehicle(515, vX, vY, vZ, 0, 0, 1, -1), trail = CreateVehicle(591, vX, vY, vZ, 0, 0, 1, -1); PutPlayerInVehicle(playerid, veh, 0); AttachTrailerToVehicle(trail, veh); AttachTrailerToVehicle(CreateVehicle(435, vX, vY, vZ, 0, 0, 1, -1), trail); return 1; }