20.11.2014, 20:05
pawn Код:
new trailers[5];
pawn Код:
trailers[0] = AddStaticVehicleEx(...(;
trailers[1] = AddStaticVehicleEx(...(;
trailers[2] = AddStaticVehicleEx(...(;
trailers[3] = AddStaticVehicleEx(...(;
trailers[4] = AddStaticVehicleEx(...(;
pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
for(new trailerid=0; trailerid <sizeof(trailers); trailerid++){
if(trailerid != vehicleid)continue;
if(trailerid == vehicleid){
SetVehicleToRespawn(trailers[trailerid]);
}
}