Quote:
Originally Posted by Cena44
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; }
|
Edit: i think that is not this but i can put in this code 2 trailers attached in the truck? Like truck+trailer+trailer?