23.12.2018, 17:57
Quote:
try making a timer and when timer end then try to attach trailer in public timerend?
|
Quote:
forward OnTrailerAttached(); public OnTrailerAttached() { for(new x; x < 4; x++) AttachTrailerToVehicle(utilitytrailer[x], NVTransportas[x]); } new NVTransportas[4]; new utilitytrailer[4]; OnGameModeInit() { NVTransportas[0] = CreateVehicle(583, -3779.2019, -1880.6560, 5.2844, 90.0000, -1, -1, 100); NVTransportas[1] = CreateVehicle(583, -3778.9314, -1884.0042, 5.2844, 90.0000, -1, -1, 100); NVTransportas[2] = CreateVehicle(583, -3778.3508, -1887.5313, 5.2844, 90.0000, -1, -1, 100); NVTransportas[3] = CreateVehicle(583, -3777.9119, -1890.9458, 5.2844, 90.0000, -1, -1, 100); utilitytrailer[0] = CreateVehicle(611, -3775.2961, -1880.6464, 5.4584, 90.0000, -1, -1, 100); utilitytrailer[1] = CreateVehicle(611, -3775.0056, -1884.0587, 5.4584, 90.0000, -1, -1, 100); utilitytrailer[2] = CreateVehicle(611, -3774.0906, -1890.9784, 5.4584, 90.0000, -1, -1, 100); utilitytrailer[3] = CreateVehicle(611, -3774.3333, -1887.6206, 5.4584, 90.0000, -1, -1, 100); SetTimer("OnTrailerAttached", 5000, false); } |