Help with coding Road train for trucks
#8

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?
Reply


Messages In This Thread
Help with coding Road train for trucks - by NikiFor - 18.06.2014, 11:12
Re : Help with coding Road train for trucks - by S4t3K - 18.06.2014, 11:17
Re: Re : Help with coding Road train for trucks - by NikiFor - 18.06.2014, 11:22
Re: Re : Help with coding Road train for trucks - by NikiFor - 18.06.2014, 11:28
Re: Help with coding Road train for trucks - by Threshold - 18.06.2014, 12:31
Re: Help with coding Road train for trucks - by NikiFor - 18.06.2014, 13:38
Re: Help with coding Road train for trucks - by Cena44 - 18.06.2014, 14:45
Re: Help with coding Road train for trucks - by NikiFor - 18.06.2014, 18:57

Forum Jump:


Users browsing this thread: 3 Guest(s)