18.06.2014, 14:45
If you mean the Roadtrain truck, here's a really basic snippet that spawns a trailer attached to it.
pawn Код:
#include ZCMD
CMD:roadtrain(playerid,params[])
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
new roadtraintruck = CreateVehicle(515, X, Y, Z, 0, COLORID1, COLORID2); // Make sure you set the colors.
PutPlayerInVehicle(playerid, roadtraintruck, 0);
new roadtraintrailer = CreateVehicle(435, X, Y, Z, 0, COLORID1, COLORID2); // Colors here too.
AttachTrailerToVehicle(roadtraintrailer, roadtraintruck);
return 1;
}