12.06.2015, 13:49
RO : Macar de ai fi cautat pe Wiki ,nu e greu, dar nah, lenea e mare. Uite cum se face:
EN : If only you'd have searched the wiki, its not hard, but meh, lazy people! Here is how to do that :
This should work, I didn't test it.
EN : If only you'd have searched the wiki, its not hard, but meh, lazy people! Here is how to do that :
PHP код:
new vehicleid = GetPlayerVehicleID(playerid); // Asta este tirul tau.
new Float:vehx, Float:vehy, Float:vehz; // cream variable sa stocam pozitia tirului tau
new Float:z_rot; // Rotatia masinii
GetVehiclePos(vehicleid, vehx, vehy, vehz); // Salvam pozitia tirului tau.
GetVehicleZAngle(vehicleid, z_rot);
new TrailerID = CreateVehicle(450, vehx+2, vehy+2, vehz+2, z_rot,3,77,9000); // Cream remorca la coordonatele tale curente.
AttachTrailerToVehicle(TrailerID, vehicleid); // Iar cu asta vei putea atasa remorca la tir.